All ESP32 iPhone Agent notes
Project-specific notes

These instructions concern ESP32 iPhone Agent by Henry Yuan. Other projects in this index use different firmware, apps and protocols.

View the project profile

Build your first iPhone agent

The complete path from a blank board to your first task.

ESP32 iPhone Agent connects a vision model to a real iPhone through an ESP32-S3. The app route needs no computer during a task. Install the official TestFlight beta or build with Mac/Xcode; matching firmware can also be prepared using the official web installer in desktop Chrome/Edge.

Before you begin

Have these ready:

  • An ESP32-S3 with PSRAM and native USB. The documented test board is the plain Seeed Studio XIAO ESP32S3 with 8 MB PSRAM.
  • An iPhone matching your app (1.0.9+ needs iOS 16.4+), with cellular data available for the default hotspot setup. For a Lightning model, see the powered camera-adapter setup.
  • Mac, Xcode and an Apple ID for source builds. For TestFlight, use the official invitation and matching firmware channel in installation.
  • A vision-capable model endpoint that accepts images through an OpenAI-compatible chat API.

This guide follows the default board-hotspot setup, using cellular data for the model. The hardware guide also explains home Wi-Fi configuration in App 1.0.7+ that uses your router for mirroring and model access. Check those requirements before buying a board or adapter.

1. Get the source

Clone the project and enter its directory. All commands in this guide are run from that directory unless stated otherwise.

git clone https://github.com/onehumanbeing/esp32-iphone-agent.git
cd esp32-iphone-agent
git checkout v1.0.14

Source steps are pinned to v1.0.14 (4786f42). On December 3 the official changelog lists 1.0.13 build 29 in TestFlight and 1.0.14 build 30 in Beta App Review; check the build offered on your phone. TestFlight XIAO firmware is v0.2.16. Default flash.sh now builds USB and Bluetooth in one image; USB starts with the relative pointer, with optional absolute input. See installation and firmware for OTA and older-board limits.

Keep the app and firmware on the same checkout. Use the prebuilt TestFlight route if you do not need a source build.

2. Flash the board

Install arduino-cli, the ESP32 3.3.x board core, and NimBLE-Arduino 2.5.1. Connect the board to your Mac with a USB data cable, then use the project’s hardware/flash.sh script.

arduino-cli lib install "NimBLE-Arduino@2.5.1"
hardware/flash.sh

See firmware setup for board cores, ports and recovery. hardware/flash.sh supplies the required BLE buffer configuration; 1.0 app video itself now uses Wi-Fi TCP.

3. Install the iPhone app

Copy the local configuration, then set your signing team and a unique bundle identifier in the new file.

cp ios/Config/Local.xcconfig.example ios/Config/Local.xcconfig
open ios/IPhoneAgent.xcodeproj

In Xcode, choose the IPhoneAgent scheme and your connected iPhone, then build and run. A free Apple ID can sign a development build, but it needs re-signing every seven days. Optional entitlements need special attention on a free account; read Install the iOS app.

4. Complete the four setup checks

Move the board from the Mac to your iPhone and open ESP32 Agent. The setup flow checks:

  1. Plug Me In — find the board and pair over Bluetooth.
  2. Let Me See the Screen — join the board’s hotspot, then select ESP32 Agent in Control Center → Screen Mirroring.
  3. Let Me Use the Pointer — enable AssistiveTouch and let the app calibrate the pointer.
  4. Give Me a Brain — enter your model endpoint, API key, and image-capable model.

Use the connection guide for each check and the model guide to verify the endpoint.

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.

5. Run a small first task

Try “Open Settings and go to Wi-Fi.” Use the instruction in English if your model or phone interface works best that way. Tap Start, keep the phone unlocked, and watch the agent work. Stop from the Dynamic Island when available, or return to the app to stop it.

App 1.0.5 improved app-name lookup and typing in Chinese and other scripts. Verify the text on screen before submitting it. See input troubleshooting for keyboard limits.

Check the result

Open Runs and replay the task. A model reporting completion is not independent confirmation that the task succeeded. Check the final screen yourself, and export the run if you need to inspect an error.

If setup stalls, follow troubleshooting in the order of the four setup checks. You do not need to reinstall everything to isolate one failed connection.

Model options in 1.0.11

The endpoint/key steps apply to your own API; ChatGPT sign-in is a separate route. Since build 29, Manina AI / Jev is also selected first with an own model, but needs separate consent; see model data paths. 1.0.14 announces iOS 27+ Screen Recording while its build is still under review. Source defaults remain AirPlay; check capture conditions.

Project sources

README.mdCHANGELOG.mdhardware/flash.sh