Skip to content
HardwareLab

ESP32 iPhone Agent

v2 of Henry Yuan's (@iamhenryyuan) agent: just the phone and an ESP32-S3 board.

Hardware:
Seeed XIAO ESP32S3 (plain, 8MB PSRAM; any ESP32-S3 with native USB + PSRAM), iPhone on iOS 18+ with cellular data, Lightning to USB Camera Adapter (Lightning iPhones only), Mac with Xcode (one-time flash and build only), Vision-model API key (OpenAI-compatible)
Difficulty:
Intermediate
Creator:
@iamhenryyuan
Est. cost:
$7.00

An ESP32-S3 board lets an AI model use a real iPhone: no computer at run time, no jailbreak.

The creator: @iamhenryyuanOriginal post

By @iamhenryyuan

Posted

Watch v2 on X

v1 (legacy) demo · Video by @iamhenryyuan. Watch on YouTube

What it does

v2 of Henry Yuan's (@iamhenryyuan) agent: just the phone and an ESP32-S3 board. The ESP32-S3 is both the AirPlay receiver and a USB mouse and keyboard, and an iPhone app runs the agent against any OpenAI-compatible vision model. Every run is kept on the phone and can be replayed step by step. Code: onehumanbeing/esp32-iphone-agent (MIT).

What you need

Difficulty
Intermediate
License
No license stated

Parts

  • Seeed XIAO ESP32S3 (plain, 8MB PSRAM; any ESP32-S3 with native USB + PSRAM) (board)
  • iPhone on iOS 18+ with cellular data, Lightning to USB Camera Adapter (Lightning iPhones only), Mac with Xcode (one-time flash and build only), Vision-model API key (OpenAI-compatible)
AI model or service
Any OpenAI-compatible vision model (planner + actor)

Full build guide

Full instructions: View original

How it works

The iPhone mirrors its screen over AirPlay to the ESP32-S3, which runs its own Wi-Fi hotspot and passes the H.264 stream to the ESP32 Agent app on the same phone over Bluetooth (BLE). The board is also plugged in as a USB mouse and keyboard, so with AssistiveTouch a click is a tap and a drag is a swipe. The app sends what it sees to any OpenAI-compatible vision model, which plans and acts, and it calibrates the pointer itself. The phone reaches the model over cellular data. No computer at run time and no jailbreak. Setup: 1) flash the board with arduino-cli (ESP32 core 3.3.x, NimBLE-Arduino 2.5.1) using hardware/flash.sh; 2) build the iOS app in Xcode (a free Apple ID works, re-signed every 7 days); 3) in the app, pair over Bluetooth, join the board's hotspot and pick Screen Mirroring, then "ESP32 Agent", turn on AssistiveTouch and enter the model endpoint and key; 4) type a task and press Start. v1 (a Mac or Linux computer running UxPlay and a Python server) is kept on the repo's legacy branch and tag v0.1.0.

Like this build? Get the weekly builds

Every Thursday: the 5 best gadget hacks you can copy. Free.

Built something? Submit a build

Why it's interesting

The clever part is that the ESP32 is both the agent's eyes and hands. The board opens its own Wi-Fi hotspot and appears in the iPhone's Screen Mirroring list, forwarding the H.264 AirPlay stream to an iPhone app over BLE without decoding it. It also acts as a USB mouse and keyboard, so with AssistiveTouch on, clicks become taps and drags become swipes. The app sends screenshots to any OpenAI-compatible vision model and runs a planner and an actor. Because the pointer is relative, the app re-homes it in a corner and corrects misses before precise taps. The README's warning: only follow its own install steps and never run commands posted in issues. The older computer-based version is kept on a legacy branch.

Source: github.com/onehumanbeing/esp32-iphone-agent#readme

Hardware

  • Seeed XIAO ESP32S3 (plain, 8MB PSRAM; any ESP32-S3 with native USB + PSRAM)
  • iPhone on iOS 18+ with cellular data
  • Lightning to USB Camera Adapter (Lightning iPhones only)
  • Mac with Xcode (one-time flash and build only)
  • Vision-model API key (OpenAI-compatible)

Where to buy

More ESP32 buildsMore Seeed XIAO builds

This page is a short summary written by HardwareLab. Build steps, code and photos belong to the creator; follow “View original” for the full project.

Featured? Add this badge

Built this? Paste the badge into your README. It links back to this page.

Featured on HardwareLab

Markdown

[![Featured on HardwareLab](https://hardwarelab.dev/badge.svg)](https://hardwarelab.dev/projects/esp32-iphone-agent/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w)

HTML

<a href="https://hardwarelab.dev/projects/esp32-iphone-agent/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w"><img src="https://hardwarelab.dev/badge.svg" alt="Featured on HardwareLab" width="188" height="20"></a>