ESP32 iPhone Agent is an open-source AI agent project whose goal is to let AI models directly operate a real iPhone without requiring a jailbreak, a computer, or a developer account. Its core idea is to use an inexpensive ESP32 development board (such as the Seeed XIAO ESP32S3, about $7) as the AI's "eyes" and "hands": the board receives the iPhone's screen mirroring via AirPlay and forwards the H.264 video stream over Wi-Fi to the app on the phone; at the same time, the board simulates a standard mouse and keyboard via USB HID or Bluetooth HID, working with the iPhone's AssistiveTouch to enable tapping, swiping, dragging, and typing.
Main capabilities include: the phone-side app decodes the screen stream and sends screenshots to any OpenAI-compatible vision model (supporting vLLM, SGLang, llama.cpp, Ollama, and cloud APIs), with a planner and an executor working together to perform actions such as tap, swipe, draw, type, key press, return to home screen, and finish; support for long tasks (no 40-step limit, and stopped runs can be continued); each run can be replayed step by step on the phone and its trajectory exported; support for controlling the iPhone from coding agents such as Claude Code, Cursor, and Cline via an MCP server and CLI; an Android version is provided (pairing via Bluetooth, the app takes screenshots itself, supports Android 6.0+).
How to use: after purchasing the development board, you can flash the firmware online through the Chrome or Edge browser (manina.ai/install), or compile locally with arduino-cli; install the TestFlight version of the app on the iPhone (or build it yourself with XcodeGen), and follow the app's four-step guide to complete Bluetooth pairing, screen mirroring, pointer calibration, and model configuration; then enter the task goal and start. You can also install the esp32agent CLI via npm to use it as an MCP server.
Applicable scenarios: automated testing, repetitive phone operations, accessibility exploration, AI agent research, etc. Limitations include: screen mirroring resolution of 480×1040, up to 5 fps, and each step takes several seconds (mostly spent on model inference); iOS does not mirror password entry, Apple Pay, DRM video, and other such screens; mirroring stops after the screen is locked; the development board only supports 2.4 GHz Wi-Fi; Chinese input is done through the Pinyin keyboard, and the clipboard is not supported; iPhone landscape apps are not yet supported; the AirPlay source must be an iPhone, and macOS screen mirroring is not supported. The project uses an open-source license; when using it, you must retain the LICENSE and credit the original author.