onehumanbeing/esp32-iphone-agent
HF Paper ↗AirPlay and ESP32-S3 HID bring vision agents to real iPhones
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Manina splits iPhone control between ESP32-S3 firmware and a SwiftUI app. The firmware in hardware/ receives AirPlay screen mirroring and forwards H.264 unchanged over Wi-Fi TCP port 7201 to the app on the same phone. The app decodes the stream, sends screenshots to a vision endpoint, and runs the planner and actor. BLE carries board commands and status; the board presents as a standard mouse and keyboard via USB or Bluetooth HID, and iOS AssistiveTouch turns pointer clicks and drags into touch actions.
The app lives in ios/, with bundled planner and actor prompts sourced from prompts/. The Arduino firmware uses ESP32 core 3.3.x and NimBLE-Arduino 2.5.x. For desktop agents, the npm esp32agent CLI exposes an MCP server and connects directly to the board over Bluetooth or shared Wi-Fi; it does not depend on the iPhone app. The server/ directory is the legacy computer-side implementation, not a dependency of the current app-mode stack.
Key Capabilities & Differentiators
The app selects vision models through an OpenAI-compatible endpoint, with a separate planner and actor if desired. Supported serving options include cloud APIs and self-hosted vLLM, SGLang, llama.cpp, and Ollama, provided the chosen model and endpoint accept images. Model IDs can be entered directly, and extra JSON can be merged into chat requests. Finished runs record planner and actor calls, requests carrying screenshots, and reported token usage. If any call omits usage, the total is marked partial rather than counting the missing usage as zero.
The action set includes taps, swipes, drawing, typing, key presses, and going Home. Mirroring runs at 480 × 1040 and up to 5 fps. A Live Activity shows background run state, and Siri, Shortcuts, widgets, and Control Center can trigger saved tasks. The v1.0.13 Shortcuts action returns the answer, status, and run ID for subsequent steps. The v1.0.13.1 release adds calibration-free USB tapping and, on the bring-your-own-key path, lets Manina handle routine open, tap, and type steps by default while the selected model plans and checks.
Trade-offs & Limitations
Compared with WebDriverAgent, CoreDevice, and similar developer-tool setups, the app path does not need a connected Mac, Developer Mode, or a jailbreak during operation. Its screen-and-pointer approach can interact with visible controls regardless of how an app exposes them to developer tooling, but it gives up structured element access. Each step takes a few seconds, mostly spent on model calls. Locking the phone stops mirroring; passcode entry, Apple Pay, and DRM video may be unavailable to the agent. iPhone landscape apps are not supported.
The board adds a device to flash, power, and connect. Its hotspot does not provide internet, so cloud inference there depends on cellular data; on a shared LAN, client isolation or blocked mDNS can prevent discovery. A cloud vision endpoint receives screenshots, so assess provider handling before using sensitive accounts or screens. The shared free model service can return HTTP 503; a reachable self-hosted endpoint is an alternative if you can operate the model stack. MIT covers the repository code, but the Manina-4B-HD-1.0 weights have a separate non-commercial research license.
Hardware & Deployment Guide
Start with the plain Seeed Studio XIAO ESP32S3, the tested board with 8 MB PSRAM, priced at about $7. Flash it from Chrome or Edge on a computer, then install the phone app and complete Bluetooth pairing, AirPlay mirroring, AssistiveTouch setup, and vision endpoint configuration. The App Store build requires iOS 18 or later; TestFlight 1.0.9 and later supports iOS 16.4 or later. USB-C iPhones connect directly for wired input; Lightning models require a compatible USB camera adapter. In hotspot mode, a remote endpoint is reached over cellular. Alternatively, join the board to a 2.4 GHz LAN that allows peer connectivity and mDNS.
For source builds, hardware/flash.sh applies the firmware's BLE buffer configuration, and the iOS app uses Xcode with a project generated by XcodeGen. A free Apple ID can sign the app but requires re-signing every seven days; without the paid Hotspot Configuration capability, join the hotspot manually. To self-host inference, point the app at a reachable vision endpoint; there is no model inference on the ESP32-S3. For computer-side MCP use, run npx -y esp32agent mcp with board firmware v0.2.2 or later. The Android OSS release 0.2.4 is a separate build for Android 6.0 or later, using your own provider key and the Android-specific board firmware.
esp32agent CLI connects over Bluetooth or shared Wi-Fi with board firmware v0.2.2 or later, without the iPhone app.Real-iPhone workflow prototypes, assisted repetitive tasks, and MCP-driven UI checks that can rely on visible controls and ordinary pointer input.
You need deterministic element-level assertions, sub-second interactions, locked-device execution, or access to screens that iOS does not mirror.
Quick Start & Installation
arduino-cli lib install "NimBLE-Arduino@2.5.1"
hardware/flash.sh # optional: [serial port] [--debug]Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| esp32-iphone-agent ★ | 5.9k | +425 | Swift | MIT | AirPlay and ESP32-S3 HID bring vision agents to real iPhones |
| cua | 34.1k | +973 | Rust | MIT | Rust-backed sandboxes and cross-OS desktop controls for computer-use agents |
| n8n | 213.1k | +787 | TypeScript | — | Visual Node.js platform for self-hosted workflows and multi-step AI agents |
| browser-use | 122.7k | +477 | Python | MIT | Python REPL and CDP for adaptive browser automation |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/onehumanbeing/esp32-iphone-agent.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about esp32-iphone-agent
Does a desktop MCP client need the Manina iPhone app?
esp32agent CLI talks to the board over Bluetooth or a shared Wi-Fi network. That path requires firmware v0.2.2 or later but does not require the iPhone app or TestFlight.What hardware do I need, and where does VRAM matter?
Can I use the code and bundled model options commercially?
When should I choose this over a WebDriverAgent-style stack?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy