Skip to content

About

Manina AI: let an AI model use a real iPhone with a $7 ESP32: AirPlay eyes, USB HID hands, any OpenAI-compatible vision model. No Mac, no developer account, no jailbreak.

Topics

Resources

Contributing

Security policy

Stars

5.9k stars

Watchers

21 watching

Forks

Latest commit

 

History

424 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 iPhone Agent

English · 中文 · 日本語 · Français · Português · Español
Deutsch · 한국어 · Italiano · Türkçe · Bahasa Indonesia · Русский

An AI agent that uses a real iPhone like a person.
A $7 ESP32-S3 board is its eyes (AirPlay) and hands (USB or Bluetooth HID). No jailbreak, no computer, open source.
Works on every iPhone from iPhone 8 to the latest (iOS 16.4+) and on Android 6.0+.

GitHub stars Hugging Face Model: Manina-4B-HD-1.0 Hugging Face Demo Space arXiv: 2612.00985 Papers with Code: #3 on iOSWorld (Vision-only) ScreenSpot-v2 mobile: 96.81% CI License: MIT iOS 16.4+ Android 6.0+

The agent doing a Duolingo lesson on a real iPhone
A real iPhone completing a Duolingo lesson on its own (8× speed, zero human touch). Full video · ⭐ Star on GitHub

Start in three steps

1. Get the board 2. Flash in one click 3. Install the app
A plain Seeed Studio XIAO ESP32S3 (~$7, not Sense or Plus).
Which board to buy →
Plug into Chrome or Edge and flash over USB. Nothing to install.
Flash the board →
Install ESP32 Agent and follow its four guided steps.
Get it on TestFlight →

Prefer plug-and-play? Manina AI hardware waitlist · Setup guide · Docs · Changelog · Troubleshooting
Featured on Hackaday · Digital Trends · Ruanyf Weekly #415 · Seeed Studio  |  X @iamhenryyuan · Xiaohongshu · manina.ai
Guides: Let an AI control an iPhone · iPhone MCP server · Claude Code on iPhone · iPhone automation without jailbreak

Phone-Use Models & Recent Highlights

Model Role & Highlights Links
Manina‑4B‑HD‑1.0 Open-weight 4B grounding (Qwen/Qwen3.5-4B, zero user data). Single pass (<= 1,280 visual tokens, no zoom): 485 / 501 (96.81%) on ScreenSpot-v2 mobile (93.36% on unlabeled icons; only two 72B models on the public leaderboard score higher) and 1,198 / 1,272 (94.18%) (support_kl) / 1,200 / 1,272 (94.34%) (support_kl_iou) overall. 🤗 Weights
🤗 Demo
📄 arXiv
Manina‑4B‑Lite‑1.0 Live Locate & Act engine (640 tokens): 84 ms /v1/locate · 113 ms /v1/act (server P50, A100), handling 50%+ of live steps across 2,250+ TestFlight users. Drive Android over USB in the Web Playground or iPhone via ESP32-S3 (npm i -g esp32agent; Manina CLI — OpenCode for Phone-Use coming soon). ⚡ Playground
📖 API Docs
  • Android app (android/). Same agent on Android 6.0+ (Android 7.0+ on Google Play with built-in free AI, no account needed): the board pairs over Bluetooth while the app captures the screen natively.
  • USB or Bluetooth HID (App 1.0.8+, fw v0.2.7+). Switch between wired USB and cable-free Bluetooth in the app—Lightning iPhones work without a camera adapter when the board is powered externally (built on @cy41's work in #94).
  • Audio & long runs. On-device AirPlay audio transcription for listening/voice prompts (how it works), built-in free AI line (or bring any OpenAI-compatible vision key), unlimited steps with pause/resume, and step-by-step replay (export traces).

Why a Board

Most iPhone agents tether your phone to a Mac running Xcode, Developer Mode, and WebDriverAgent. Here the $7 ESP32-S3 board replaces the computer—once flashed, the iPhone runs tasks completely on its own.

ESP32 iPhone Agent Computer-tethered agents
WebDriverAgent, CoreDevice, idevice
What you need An iPhone and a $7 board A Mac, Xcode, developer tools
Setup Browser flash + TestFlight + 4 guided steps Clone, build, install dependencies, sign helper app
iPhone changes AssistiveTouch on (guided in-app) Developer Mode, USB trust and pairing
While it runs Just the phone—take it anywhere Computer stays awake and connected
Apps & audio Every app on screen + AirPlay audio Limited to debug/accessibility interfaces

Tradeoffs: you buy a $7 board, each step takes a few seconds, and hotspot mode uses cellular data (or join a 2.4 GHz home Wi-Fi in Settings › Board to use LAN instead).

Note

Shared free line busy (HTTP 503)? Switch to your own OpenAI-compatible or Manina API key in Settings › Model, or ping @iamhenryyuan.

How It Works

New here? Read AI control for iPhone and how Manina AI works.

iPhone ──Screen Mirroring (Wi-Fi)──▶ ESP32-S3 (AirPlay, H.264 TCP :7201)
  ▲                                                  │
  └── USB / Bluetooth HID ◀── BLE commands ◀── ESP32 Agent app (same iPhone)
  • Eyes (AirPlay). The board runs a Wi-Fi hotspot (ESP32 Agent in Screen Mirroring) or joins your 2.4 GHz Wi-Fi, forwarding raw H.264 frames over TCP :7201 without decoding on the MCU.
  • Hands (USB or Bluetooth HID). Standard mouse + keyboard; AssistiveTouch turns pointer clicks and drags into taps and swipes.
  • Closed-loop brain (the app). Decodes frames in the background (with Dynamic Island status), runs planner + actor models, homes and visually recalibrates the relative pointer before fine taps, verifies screen changes, and records every run for replay.

ESP32 Agent app: real phone vs. AirPlay mirror and pointer calibration
Left: real iPhone vs. AirPlay mirror seen by the agent. Right: automatic pointer calibration. (Legacy Mac/Python v0.1.0: v0.1.0 / legacy · docs/legacy.md)

Hardware & Quick Start

Warning

Only follow install instructions in this repository or on manina.ai. Never run "quick install" one-liners (iex(irm ...), etc.) posted in issues or comments.

Part Notes
ESP32-S3 board Plain Seeed Studio XIAO ESP32S3 (8 MB PSRAM; not Sense or Plus), ~$7 (Amazon* · where to buy).
USB-C cable Short USB-C data cable, e.g. Anker 60W 1 ft* (or external USB power in Bluetooth mode).
iPhone iOS 18+ (App Store) or iOS 16.4+ on TestFlight (incl. iPhone 8 / X). USB-C plugs in directly; Lightning uses Bluetooth mode or a Camera Adapter.
Vision model Built-in free line, Manina API, or any OpenAI-compatible vision endpoint.

* Affiliate link (Amazon Associate). Full hardware & adapter notes: hardware guide · setup guide.

  1. Flash the board in Chrome/Edge at manina.ai/install over USB (~30 seconds).
  2. Install ESP32 Agent from TestFlight.
  3. Complete the 4 guided steps in-app: pair BLE → Screen Mirroring to ESP32 Agent → enable AssistiveTouch (auto-calibrated) → pick the free AI line or add an API key.
  4. Run a task: type a goal ("Open Settings and go to Wi-Fi") and tap Start (also triggerable via Siri, Shortcuts, widgets, or Control Center).
Experimental boards & building firmware / iOS app from source (Xcode & arduino-cli)
  • Experimental boards: M5Stack StopWatch (round-screen ESP32-S3 with battery, Bluetooth-only; flash at manina.ai/install?board=m5stopwatch, TestFlight 1.0.9+). Custom Bluetooth HID & Zectrix Note 4 docs: docs/bluetooth-hid.md · docs/note4-bluetooth.md.
  • Build & flash firmware from source (arduino-cli + ESP32 core 3.3.x + [email protected]; always use flash.sh so nimble_cfg.h BLE buffer sizes apply):
    arduino-cli lib install "[email protected]"
    hardware/flash.sh   # optional: [serial port] [--debug]
    # StopWatch also needs: [email protected] and [email protected]
  • Build the iOS app from source (generated via XcodeGen from ios/project.yml; works with a free Apple ID, manual Wi-Fi password fallback without paid Hotspot Configuration):
    cp ios/Config/Local.xcconfig.example ios/Config/Local.xcconfig
    # Set DEVELOPMENT_TEAM & IA_BUNDLE_ID, then run IPhoneAgent:
    open ios/IPhoneAgent.xcodeproj

Use from a Coding Agent (MCP & CLI)

Drive a real iPhone from your computer over Bluetooth or Wi-Fi (esp32agent net join) via esp32agent (board fw v0.2.2+, MCP Registry io.github.onehumanbeing/esp32agent, no iOS app required). Guides: iPhone MCP server · Claude Code walkthrough · CLI docs · Agent skill · llms.txt (full) · esp32-iphone-agent MCP server on Glama

# Claude Code plugin (MCP server + skill)
/plugin marketplace add onehumanbeing/esp32-iphone-agent
/plugin install esp32agent@manina

# Or register the MCP server directly
claude mcp add esp32agent -- npx -y esp32agent mcp
MCP setup for Cursor, Cline, DeepSeek Harness (dsh), and Hermes Agent

Cursor, Cline & standard MCP clients (mcpServers JSON):

{
  "mcpServers": {
    "esp32agent": { "command": "npx", "args": ["-y", "esp32agent", "mcp"] }
  }
}

DeepSeek Harness (integrations/dsh · demo video) & Hermes Agent (integrations/hermes):

dsh plugin --profile web add dsh-esp32agent
hermes plugins install \
  onehumanbeing/esp32-iphone-agent/integrations/hermes --enable

Showcase: natural-language E2E tests with Midscene

Midscene runs aiAct / aiAssert / aiQuery tests with step-by-step replay reports on a stock iPhone through this board, via @midscene/ios-esp32 (a Midscene Connect adapter over esp32agent). No Developer Mode, Xcode signing, or WebDriverAgent. Built by @await-ovo (#227). Full guide.

npx @midscene/ios-esp32   # start Midscene Connect at http://127.0.0.1:5820
import { agentOverConnectProtocol } from '@midscene/connect';

const agent = await agentOverConnectProtocol({ url: 'http://127.0.0.1:5820' });
await agent.aiAct('Open Settings and tap General');
await agent.aiAssert('The General settings page is visible');

Architecture, Limitations & Reference

ios/        SwiftUI iOS app: BLE, H.264 decode, agent loop, replay, widgets
android/    Kotlin/Compose Android app + BLE pen firmware (android/firmware/)
hardware/   ESP32-S3 firmware: BLE GATT, hotspot, AirPlay, USB/BLE HID
prompts/    Plain-text planner & actor prompts bundled into the app
harness/    Wireless devicectl loop (Mac → iPhone app → board OTA → logs)
docs/       BLE protocol (ble-protocol.md), trace export, board notes
  • Key limitations: AirPlay source must be an iPhone/iPad (macOS Screen Mirroring is unsupported); mirrored stream is 480×1040 up to 5 fps; iOS hides passcode, Apple Pay, and DRM video over AirPlay; keep the phone unlocked in portrait (iPad supports both orientations full-screen); Chinese input types pinyin via Ctrl+Space (no emoji). Stuck? See troubleshooting.
Custom models, prompts, wireless dev harness & roadmap
  • Models & prompts: Any OpenAI-compatible vision API works (vLLM, SGLang, llama.cpp, Ollama, cloud APIs) with separate planner/actor selection and Settings → Model → Advanced → Extra body JSON (for api.deepseek.com, {"thinking":{"type":"disabled"}} is sent by default unless overridden). Prompts live in prompts/. Developed with nvidia/Qwen3.8-Flash-Next-NVFP4 on dual DGX Sparks (TensorFold).
  • Wireless harness & protocol: harness/app.sh, harness/fw.sh, harness/run.sh, and harness/logs.sh automate wireless builds and tests over devicectl (harness/README.md). Host BLE simulator: hardware/tools/board_test.py (hardware/tools/README.md). Protocol & remote logs: docs/ble-protocol.md · docs/remote-debug-log.md.
  • Roadmap: Shipped standalone board+app loop, iPad portrait/landscape, Android port, Bluetooth HID, and pinyin input. Next: iPhone landscape apps, multi-action steps, and in-app model recommendations (suggested by @asharthinks).
Related projects & comparison
Project Approach Difference from this project
VersaiOS UxPlay mirroring + ESP32-S3 BLE mouse + vision model Needs a computer; single-tap instructions
ja1chen/actell iPhone agent app via Apple CoreDevice debug channel Needs Developer Mode and Developer Disk Image
AidenAI-IO/aiden-firmware HDMI capture + USB HID + multimodal model External capture hardware; mainly Android
yoyicue/glassbox PicoKVM HDMI capture + USB HID Requires macOS controller + PicoKVM
boboabw/phone-agent ESP32-S3 BLE HID + AssistiveTouch iPhone app Closest approach; this project adds on-board AirPlay eyes
VKCOM/devicehub ESP32 Bluetooth mouse for iOS device farms Device-farm hardware only, no AI agent

WebDriverAgent/XCUITest tools such as mobile-mcp and Midscene require a Mac and code signing.

FAQ (iPhone AI agent, MCP, models & compatibility)
  • How can an AI agent control a real iPhone without jailbreak or Xcode? A $7 Seeed Studio XIAO ESP32S3 board receives the iPhone screen over AirPlay Screen Mirroring and acts as a standard USB or Bluetooth HID mouse/keyboard with AssistiveTouch—stock iOS stays unmodified and no computer is needed at runtime.
  • How do I connect Claude Code, Codex, or Cursor to a real iPhone? Install the MCP server with claude mcp add esp32agent -- npx -y esp32agent mcp (or Codex codex mcp add esp32agent -- npx -y esp32agent mcp), pair over Bluetooth (esp32agent pair), and feed manina.ai/llms.txt to your agent.
  • What is the difference between Manina-4B-HD-1.0 and Manina-4B-Lite-1.0? Manina-4B-HD-1.0 (arXiv:2612.00985) is our open-weight 1,280-token single-pass grounding model (96.81% on ScreenSpot-v2 mobile, non-commercial research license); Manina-4B-Lite-1.0 is our hosted commercial Locate & Act API (84 ms /v1/locate · 113 ms /v1/act P50 on A100). The app also supports any OpenAI-compatible vision endpoint.
  • Does it work with Lightning iPhones and Android phones? Yes—Lightning iPhones (iOS 16.4+ on TestFlight, iOS 18+ on App Store) work wirelessly in Bluetooth HID mode or wired with a Camera Adapter; Android 6.0+ works via the android/ app or directly over USB in the Web Playground.

Citation, License & Community

If you use Manina-4B-HD-1.0 in your research, please cite our technical report (arXiv:2612.00985):

@misc{yuan2026manina4bhd,
  title         = {Manina-4B-HD-1.0: Single-Pass Mobile GUI Grounding
                   at a 1,280-Token Visual Budget},
  author        = {Henry Yuan},
  year          = {2026},
  eprint        = {2612.00985},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  url           = {https://arxiv.org/abs/2612.00985}
}

Contributors & Star History

Thanks to @cy41 · @shinjiyu · @Yi-111-a · @buddyh · @djs-91 · @EliotAndres · @lukas-1997 · @mvanhorn.

Contributors Star History chart

About

Manina AI: let an AI model use a real iPhone with a $7 ESP32: AirPlay eyes, USB HID hands, any OpenAI-compatible vision model. No Mac, no developer account, no jailbreak.

Topics

Resources

Contributing

Security policy

Stars

5.9k stars

Watchers

21 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages