All ESP32 iPhone Agent notes
These instructions concern ESP32 iPhone Agent by Henry Yuan. Other projects in this index use different firmware, apps and protocols.
View the project profileHow ESP32 iPhone Agent works
Follow the screen-to-model-to-action loop and understand each connection.
The current system consists of an iPhone, an ESP32-S3, and a vision-model endpoint. The iPhone app runs the agent. The board receives the screen and supplies mouse and keyboard input.
The 1.0 app is now on main
Since TestFlight 1.0.2 / v0.2.4, app video uses Wi-Fi TCP 7201, with commands and status over BLE. App 1.0.8 adds switchable USB/Bluetooth input. The diagram shows current main; see installation for matching versions and review status.
The board buffers a GOP (keyframe and following frames) without decoding. The app decodes it into model screenshots. The default hotspot setup uses cellular data for the model; the optional home Wi-Fi / LAN mode joins a shared router.
iPhone screen → AirPlay / Wi-Fi → ESP32-S3
ESP32-S3 → H.264 / Wi-Fi TCP → iPhone app → vision model
iPhone app → BLE commands → ESP32-S3 → USB / Bluetooth HID → iPhone
The release describes preserving full GOP buffers and improved Wi-Fi reconnects. These changes do not establish that every video failure is fixed: a November 4 maintainer reply confirms remaining video send failed / video frozen reports. See troubleshooting. This site has not tested hardware.
Wi-Fi is the normal app video route. The upstream Wi-Fi guide documents BLE video fallback when iOS Local Network permission is denied.
CLI and app use different transports
The computer runs the agent and sends commands through esp32agent; the board still receives AirPlay and drives USB HID. Since CLI 0.1.2 with firmware v0.2.3 or later, the CLI can move video and commands to TCP 7202 on the board’s network, with BLE for pairing and fallback. This port serves the CLI, while TCP 7201 serves the app’s video. See CLI setup.
With TestFlight 1.0.2 and firmware v0.2.4, the app can optionally transcribe phone audio delivered via AirPlay and feed text into the agent. It is off by default. CLI 0.1.3 added listen: it can read the app’s transcription when sharing is enabled, or use raw Wi-Fi audio and whisper.cpp on the computer. See the official changelog. The USB microphone idea is still a proposal. The Siri AI preview remains disabled by default.
Experimental calls and texts
App 1.0.5 added Call and Text templates. Calls use iOS Live Speech to speak and read iOS Live Captions from the mirrored screen, a separate path from AirPlay audio transcription. Follow Manina AI’s setup guide. It requires Keep Call Captions → 1 Hour so the captions appear in mirroring; Apple explains that participants hear a transcription announcement. Captions visible to the agent can become model input. The maintainer’s device notes #150 report delays and misheard words and rule out FaceTime through this path. 1.0.6 changes call controls but does not establish reliable calls. Watch what is sent or spoken, especially where caption errors would matter.
A community Wi-Fi transport preview
The separate kkive fork at 3ab15cf, on wifi-transport-v0.2 rather than its default main, adds token-authenticated TCP for H.264 video and normal control commands. BLE provisions the token, carries background wake/status events and remains the fallback. This is a derivative of ESP32 iPhone Agent by Henry Yuan, separate from the published upstream 1.0 app route; upstream --sta alone does not add this transport.
Its field-test checklist requires matching fork firmware and app builds. The HID-command-to-decoded-frame target is ≤1 second, excluding model inference; it is not a published measured result. At this commit, CI 41192021174 passed firmware, server and iOS simulator jobs; 41192021127 built an unsigned IPA, which still needs signing. Neither establishes device compatibility or reliable background recovery, and this site has not run the workflow on hardware. The maintainer’s October 31 reply invites smaller PRs after 1.0 reaches main; it does not mean these changes have merged.
1.0.14 announces on-device Screen Recording for iOS 27+ iPhone, with whole-screen permission per task; build 30 is still in beta review. The board only supplies input on that route. Source defaults and iPad keep AirPlay; SDK, background and signing conditions still apply. It does not make model requests offline.
Brain: the iPhone app and model
A planner and actor translate the task and screenshots into operations such as tapping, swiping, drawing, typing, pressing keys, and going home. The model endpoint can be a cloud API or a reachable self-hosted service.
The agent runs in the background while interacting with other apps. A Live Activity can show its progress on supported devices. Model reasoning is not performed on the ESP32.
Hands: USB or Bluetooth input
Current main supports USB or Bluetooth mouse and keyboard.
1.0.8 / dual-input v0.2.7 incorporates #94. On a standard XIAO, choose USB or Bluetooth in Settings › Board › Input. The board restarts; start Screen Mirroring again. Bluetooth mode powers the board separately from a USB charger or power bank, with nothing plugged into the phone. Lightning phones need no camera adapter in this mode, and the phone’s charging port stays free.
Check two links: select the board in the app and accept iOS pairing, then pair it as a mouse/keyboard under Settings › Accessibility › Touch › AssistiveTouch › Devices › Bluetooth Devices. An app connection does not prove pointer readiness. Keep AssistiveTouch on and recalibrate. Bluetooth Home uses a gesture or the system AssistiveTouch path; video still uses Wi-Fi. See the official Bluetooth guide.
Unattended runs and confirmation
1.0.7 adds Unattended, which remains off by default. It skips or stops unanswered prompts after two minutes and waits for link recovery or model backoff; it does not automatically approve risky actions or type an unlock passcode. Look ahead becomes on by default in 1.0.11: it requests the next step as the screen settles, cancels if it moves, and checks again before acting. This can produce model requests that are not used. 1.0.8 requires confirmation before irreversible steps in every mode. Source safeguards are not measured reliability or task success rates.
Closing the loop
App 1.0.13 build 29 and firmware 0.2.11 add Settings › Board › Pointer for a unified XIAO in USB mode. Since 0.2.12, USB starts Relative; an existing choice is kept. Choosing Absolute restarts the board and skips calibration, but AssistiveTouch and a visible-pointer check remain necessary. Bluetooth keeps relative input: #203 records stuck input with experimental absolute BLE. USB calibration and Bluetooth calibration are separate; switching links requires a matching calibration. #209 reports wrong-way USB absolute gestures after landscape apps in build 29. The changelog says a later build fixes it, but the issue remains open and this site has not verified a device fix. Choose Relative if affected.
Why use a board?
The ESP32 bridges two interfaces iOS already supports: a mirrored screen and a mouse/keyboard. It provides the physical input path; seeing a phone’s screen on another device alone does not supply that path to an on-phone agent.
This makes the approach useful for experimentation across app screens without building a dedicated integration for each one. It does not remove all setup requirements: the app uses TestFlight or a source/Xcode installation, and unsupported screen content remains invisible.
Current version and legacy version
The v0.1.0 release used a Mac or Linux computer for UxPlay and a Python server. That version remains on the legacy branch. The 1.0 app route moves the AirPlay receiver onto the board and the agent into the iPhone app.
The legacy branch is maintained separately. On October 19, 2026, #23 added calibration samples across a 3×3 screen grid and optional precise taps through the API, CLI, and MCP. This records that historical legacy merge; it does not define every calibration capability in the later 1.0 app.
Merged the same day, #24 lets the old Mac-hosted server paste a single line of non-ASCII text, including Chinese, through Universal Clipboard. The Mac and iPhone need the same Apple Account, Handoff, Bluetooth, and Wi-Fi enabled. Linux and Windows do not support this paste path, and the board still types only ASCII key by key. iOS may ask for paste permission. A failed transfer can paste the phone’s previous clipboard even when the server returns ok; inspect the field or screenshot before submitting. This account is based on upstream source and contributor reports, not device tests by this site.
Merged on October 20, 2026, #27 stops legacy actions with a clear error when the phone does not respond. Configuring its optional standalone AirPlay receiver also preserves mirroring across server restarts. The legacy web UI and API now listen on 127.0.0.1 by default. Cross-device access requires configuring HOST as described in that branch; the API has no password, so restrict access to a controlled network. Legacy also has separate C3 Bluetooth HID firmware; each variant needs its own firmware and connection instructions.
Merged into legacy on October 21, #36 adds Windows code paths for flashing under Git Bash and running the computer-hosted server. Its pinned Windows instructions cover an MSYS2-built UxPlay executable, the UXPLAY setting, Windows virtual-environment paths, and firewall access for UxPlay and Python. Non-ASCII paste still requires a Mac. The contributor explicitly did not test a real Windows COM-port flash or phone mirroring through MSYS2 UxPlay; CI coverage is not that device test. This does not replace Xcode installation for the current iPhone app.
Use the current setup guide for a new installation. Only follow legacy instructions when intentionally using the old architecture.
A separate Windows port
Published on October 23, 2026, grandexecuti/esp32-iphone-agent-windows at 8992f4b is an independently maintained derivative of the computer-hosted architecture. Its Windows capture code uses software decoding and fixed-size I420 frames through a named pipe, bypassing the GPU rendering that failed on the author’s development machine. This is separate from upstream legacy #36 and the current iPhone app.
The author’s technical notes cover Bonjour/firewall discovery, receiver configuration and frame alignment. They also report entering Pinyin with ASCII keys and committing the first Chinese candidate with key space; candidate clicks failed in that setup. This does not establish direct Unicode typing or general input-method compatibility. The report does not identify an iPhone/iOS test matrix, and this site’s review found no public Actions runs. We reviewed source and the author’s account, not Windows hardware behavior; use that port’s own setup and check the entered text on the phone.
A related Safari approach
The independently maintained iPhone Agent Harness explores screen capture and model calls in Safari, local WebRTC commands to an ESP32, and Bluetooth mouse/keyboard input from the board. The author’s pinned README lists iOS/iPadOS 27+ and a separate firmware and browser-installation workflow. Follow that project’s system and hardware requirements for this route. This site has not tested the Harness workflow.
At the reviewed Harness revision b30060b, ordinary model APIs connect directly from the browser, while its ChatGPT subscription route uses a project-hosted or self-hosted relay. That relay handles selected task context, images, model output, and a short-lived access token. Browser-local storage does not mean this traffic stays on the phone.
The project’s architecture document says the relay application does not persist this traffic or log bodies or credentials; it separately notes that these rules do not cover all metadata handled by hosts or model providers. The relay code forwards authorization and request content. This site has not audited the running relay or tested subscription login. These are the independent Harness project’s data paths, separate from the native ESP32 Agent app described on this site.
An experimental Chinese-input fork
The separate VoicePilot fork at 116ed55 adds a Shortcuts dictation entry and code that converts short Han-only phrases to Pinyin, sends ASCII keys, then asks the vision loop to select and verify an iOS input-method candidate. It does not add direct Unicode HID typing or Japanese input support to upstream main.
The pinned local validation record covers a Windows firmware build and host C tests. Later on October 22, the same commit’s CI run passed firmware, server, and iOS simulator jobs, and its IPA workflow passed simulator testing and an unsigned device archive, uploading a VoicePilot-unsigned-IPA artifact. These runs supersede the document’s pending cloud-build note. The IPA still needs the user’s signing; no real-iPhone Siri, input-method candidate, or HID result is established by these builds. This site reviewed the sources and public CI records, not device behavior.
Long press and opening apps in current source
1.0.11.1 adds tap X Y hold; 1.0.12 adds hold-then-drag and improves opening apps by name. 1.0.13 distinguishes leaving Spotlight from an app actually opening, and hands terms or permission dialogs to you. Upstream’s iPhone 13 Pro opening-app sample is a limited author test, not a general success rate. Use the available build and check the resulting screen.