rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
An AI agent uses a real iPhone like a person.
It even made a phone call on its own. No jailbreak, no developer account, open source.
If this is useful, a ⭐ helps a lot
Try on TestFlight · Flash the board · Not a developer? · Watch the demo · Docs · Changelog
English · 简体中文

A real iPhone doing a Duolingo lesson by itself, sped up 8×. Nobody touches the screen.
Featured on Hackaday · Digital Trends · Ruanyf Weekly #415 · Seeed Studio
Follow along: X @iamhenryyuan · Xiaohongshu · YouTube demo · DeepSeek Harness demo · manina.ai
Building on this project? Keep the LICENSE and credit ESP32 iPhone Agent by Henry Yuan in your README and posts. See NOTICE.
Don't want to flash a board yourself? A ready-to-plug Manina device is coming. Join the waitlist.

Get it on TestFlight (App Store listing in review). Needs board firmware v0.2.4. Full changelog.
Most iPhone agents run on a computer. Before the first task you install Xcode, turn on Developer Mode, pair the phone over USB and type commands into a terminal, and the computer has to stay on for every task after that. Fine for a developer, a wall for everyone else. Here the board does the computer's job, so the phone is all you need.
| ESP32 iPhone Agent | Computer-tethered agents WebDriverAgent, CoreDevice, idevice |
|
|---|---|---|
| What you need | An iPhone and a $7 board | A Mac (often a recent macOS), full Xcode, developer tools |
| Setup | Flash in the browser, install from TestFlight, four guided steps in the app | Terminal: clone, build, install dependencies, sign the helper app |
| Changes on the iPhone | AssistiveTouch on (the app walks you through it) | Developer Mode, USB trust and pairing |
| While it runs | Just the phone. Take it anywhere | The computer stays on and connected |
| Apps it can use | Any app a person can use: it sees the screen and moves a pointer | What the debug and accessibility interfaces expose |
| Hears the phone | Yes (App 1.0.2) | Usually not |
The honest costs: you buy a $7 board, each step takes a few seconds (most of it the model), and the phone uses cellular data while it runs because the board's hotspot takes the Wi-Fi.
Stuck? See troubleshooting or mail support@manina.ai.
[!NOTE] Free line busy or failing? The free model line is shared and can be busy or return errors (HTTP 503) for a while, so a run may stall or fail every step. Switch to your own API key in Settings › Model to keep going, and let us know on X: @iamhenryyuan.
New to the idea? Start with AI control for iPhone, then how Manina works.
iPhone ──Screen Mirroring (Wi-Fi)──▶ ESP32-S3: AirPlay receiver ──Wi-Fi TCP :7201──▶ ESP32 Agent app (same iPhone)
▲ own hotspot, H.264 passthrough decode → vision model → action
└──────── USB HID mouse + keyboard ◀──────────── BLE commands ◀──────────────────────┘

Left: the real phone. Right: what the agent sees through the board's AirPlay mirror. The second shot is the pointer calibration.
The first version (v0.1.0) ran on a Mac/Linux computer with UxPlay and a Python server. It is kept as tag
v0.1.0 and branch
legacy; see docs/legacy.md.
Supported boards and setup details: hardware guide. Picking a board, cables and adapters, or stuck during setup: setup guide.
| Part | Notes |
|---|---|
| ESP32-S3 board | Tested with a Seeed Studio XIAO ESP32S3 (plain version, 8 MB PSRAM; not Sense, not Plus). About $7 (Amazon*). Any ESP32-S3 with native USB on its USB-C port and PSRAM should work. |
| USB-C cable | Short USB-C to USB-C, e.g. Anker 60W, 1 ft, 2-pack*. |
| iPhone | iOS 18 or later, with cellular data (the Wi-Fi is taken by the board's hotspot). USB-C models plug in directly; Lightning models need a Lightning to USB Camera Adapter. The phone powers the board. |
| Vision model | Any OpenAI-compatible chat API that accepts images: a cloud API or your own server. |
| Mac with Xcode | Only to flash the board and build the app once. Not needed at run time. With the TestFlight app, Xcode is not needed for the app. |
* Affiliate link. As an Amazon Associate I earn from qualifying purchases.
[!WARNING] Only follow the install steps in this README. Never run commands from issues or comments (for example a "quick install" one-liner such as PowerShell
iex(irm ...)); these are not from the maintainers.
Install arduino-cli, the ESP32 core 3.3.x and NimBLE-Arduino 2.5.x, then:
arduino-cli lib install "NimBLE-Arduino@2.5.1"
hardware/flash.sh # optional: [serial port] [--debug]
Always build with flash.sh: it applies the BLE buffer sizes in hardware/hid_bridge/nimble_cfg.h.
No Mac or toolchain? Install the firmware from Chrome or Edge over USB instead.
Easiest: join the TestFlight beta on your iPhone and install ESP32 Agent from there, then go to step 3.
Or build it yourself:
cp ios/Config/Local.xcconfig.example ios/Config/Local.xcconfig # set DEVELOPMENT_TEAM and IA_BUNDLE_ID
open ios/IPhoneAgent.xcodeproj # run the IPhoneAgent scheme on your iPhone
The project is generated with XcodeGen from ios/project.yml
(cd ios && xcodegen). A free Apple ID can sign it (re-sign every 7 days). The one-tap hotspot join needs the
Hotspot Configuration capability (a paid account); without it the app shows the hotspot password to join by hand.
Plug the board into the iPhone and open ESP32 Agent. Setup walks through four steps and checks each one itself:
Type a goal (for example "Open Settings and go to Wi-Fi") and press Start. Stop it from the Dynamic Island, or come back to the app. Siri, Shortcuts, widgets and Control Center can run saved tasks.
The esp32agent CLI (npm, npx -y esp32agent mcp) is an MCP server, so a coding agent on your computer can see
and drive the iPhone through the board (board firmware v0.2.2 or later); see iPhone as an MCP server. This repository is also a plugin with that
MCP server and an agent skill (skills/manina/SKILL.md). In Claude Code (walkthrough):
/plugin marketplace add onehumanbeing/esp32-iphone-agent
/plugin install esp32agent@manina
Or add only the MCP server:
claude mcp add esp32agent -- npx -y esp32agent mcp
Cursor, Cline and other MCP clients:
{
"mcpServers": {
"esp32agent": {
"command": "npx",
"args": ["-y", "esp32agent", "mcp"]
}
}
}
DeepSeek Harness (dsh): install the plugin in integrations/dsh, which adds the same MCP server and skill (demo video):
dsh plugin --profile web add dsh-esp32agent
The CLI talks to the board from your computer over Bluetooth, or over your Wi-Fi once both are on it (esp32agent net join),
so it works without the iPhone app or TestFlight.
Commands and options are in the CLI reference and cli/README.md.
api.deepseek.com) thinks at high effort unless told otherwise, so the app sends
{"thinking":{"type":"disabled"}} there unless that JSON already contains thinking; use
{"thinking":{"type":"enabled"},"reasoning_effort":"low"} to keep a little reasoning.prompts/ and bundled with the app: edit them, rebuild, done.usage. Missing usage is left absent (never coerced to 0); the run total is marked partial if any call
omitted it. A short task is typically a few planner calls plus one actor call per step — each actor step sends
a fresh screenshot — so image tokens dominate cost. Giving the planner a cheaper model while keeping a stronger
actor is usually the best tradeoff.ios/ the app (SwiftUI): BLE link, H.264 decode, agent, setup, replay, Live Activity, widgets; tests
prompts/ planner / actor prompts used by the app
hardware/ ESP32-S3 firmware (Arduino): BLE GATT, hotspot, AirPlay receiver, USB HID; flash script,
host tests, Mac BLE test harness (hardware/tools)
docs/ BLE protocol, legacy version notes
harness/ wireless development loop: Mac → iPhone app (Wi-Fi install) → board (firmware through the app)
server/ legacy v0.1.0 computer-side server; not used by this version (see server/README.md)
Debugging without the phone app: hardware/tools/board_test.py plays the app over BLE from a Mac
(hardware/tools/README.md). Board ↔ app protocol: docs/ble-protocol.md.
With the board plugged into a test iPhone and the iPhone on the Mac's Wi-Fi, everything goes through devicectl,
no cable: harness/app.sh builds and installs the Debug app, harness/fw.sh builds the firmware and copies it
into the app, which installs it on the board (rolls back by itself if the new image fails), harness/run.sh "<task>"
runs a task and harness/logs.sh pulls the log. BLE from the Mac is only for the one-time net sta. Setup
(Lightning iPhones: camera adapter), security: harness/README.md.
Phone out of reach (e.g. on cellular): the optional, off-by-default remote debug log uploads the app's text log to a server you run.
If something doesn't work (no ESP32 Agent in Screen Mirroring, the board not connecting), see troubleshooting.
Only automate devices and accounts you own or are allowed to use, and respect the terms of the apps involved. The agent acts with your hands: watch it, and keep the stop button within reach.
Issues and pull requests are welcome; see CONTRIBUTING.md. Start from the latest main
and open pull requests against main. Before opening a pull request, update your branch from the latest
main (fetch and rebase, or merge in the latest main). Security reports: SECURITY.md.
The latest code is on main; release-1.0 is the version submitted to TestFlight and App Store review, and is no longer the branch for contributions.
Questions or feedback: support@manina.ai · Website: manina.ai
| Project | Approach | Difference from this project |
|---|---|---|
| VersaiOS | UxPlay mirroring + ESP32-S3 Bluetooth mouse + vision model | Needs a computer; one tap per instruction |
| ja1chen/actell | Agent app on the iPhone via Apple's CoreDevice debug channel | Needs Developer Mode and a Developer Disk Image |
| AidenAI-IO/aiden-firmware | HDMI capture + USB keyboard/mouse + multimodal model | Capture hardware; mainly Android |
| yoyicue/glassbox | PicoKVM HDMI capture + USB HID | macOS controller and PicoKVM |
| boboabw/phone-agent | ESP32-S3 Bluetooth HID + AssistiveTouch, agent as an iPhone app | Closest to this version; this one also brings the eyes (AirPlay on the board) |
| VKCOM/devicehub | ESP32 Bluetooth mouse for iOS device farms | Device-farm tooling, no AI agent |
WebDriverAgent/XCUITest-based tools such as mobile-mcp and Midscene need a Mac and code signing.
UxPlay (the AirPlay receiver the firmware's is ported from) · NimBLE-Arduino · Arduino ESP32 core and TinyUSB
Building on this project? Keep the LICENSE and credit ESP32 iPhone Agent by Henry Yuan in your README, demos and posts. See NOTICE.
MIT, except hardware/hid_bridge/src/airplay/ (ported from UxPlay), which is
GPL-3.0; the firmware binary that links it is therefore
distributed under GPL-3.0. Files under skills/ are MIT-0 (MIT No Attribution);
the rest of the repository keeps the license above.
Thanks to everyone who has helped build ESP32 iPhone Agent: @cy41 · @shinjiyu · @Yi-111-a · @buddyh · @djs-91 · @EliotAndres · @lukas-1997 · @mvanhorn. Pull requests start from the latest main.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、llm、mcp-server。