cccat6/iphone-agent-harness
关于
Automate your real iPhone from Safari with a $2 ESP32. No Mac, no APP, and no jailbreak. Local conversations, your choice of AI, and community skills.
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +3
- 1个月
- +19
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文iPhone Agent Harness
Let AI automate your iPhone.
English · 简体中文 · 繁體中文 · 日本語 · Русский · Deutsch · Français · Español
📱 Open Harness · ⚡ Browser installer · 📖 Full guide · 🧩 Skill community · 🗺️ Architecture
Give your iPhone a task in plain language: inspect a screen, enter text, adjust a control or follow a short workflow across apps. A small powered ESP32 bridge supplies Bluetooth input while Safari runs the conversation and screen capture.
- Install in your browser. Choose your ESP32 and flash its firmware with desktop Chrome or Edge.
- Keep your phone wireless. Leave the powered bridge on a shelf or in a room corner within Bluetooth range.
- Use your normal Wi-Fi. The phone and bridge share your home or office network. Open Safari to start a task.
| Order takeaway | Set an alarm |
|---|---|
https://github.com/user-attachments/assets/7601869f-7cc6-445e-b64d-0073a8bf657d |
https://github.com/user-attachments/assets/d72669a6-e150-40d7-ba2f-1d9586d9c2ea |
AI orders takeaway on an iPhone. The agent selects MIXUE drinks, sets ice and sugar, and works through checkout. The video ends with the delivered order.
⚙️ How it works
Safari captures the phone screen and sends selected context to your chosen AI. The Harness validates an action plan, sends it directly to the ESP32 over local WebRTC, and the bridge delivers Bluetooth mouse/keyboard input. The next screen observation closes the loop.
flowchart LR
subgraph Phone["iPhone / iPad"]
Harness["Safari · Harness"]
Apps["iPhone / iPad apps"]
Storage[("Local browser storage<br/>Sessions · images · keys")]
Apps -->|Screen sharing| Harness
Harness <--> Storage
Shortcut["Apple Shortcuts<br/>iOS clipboard"]
end
Harness <-->|API / MCP| AI["Your chosen AI"]
Harness <-->|ChatGPT subscription| Relay["Stateless relay"]
Relay <--> AI
Harness <-->|WebRTC · local Wi-Fi| Bridge["ESP32 bridge"]
Bridge -->|Bluetooth keyboard / mouse| Apps
Bridge -->|Local HTTP · text| Shortcut
Shortcut -->|Copy confirmed| Harness
🔌 Choose a board
Recommended development boards: C6, S3 and C3. Choose a USB board with an onboard antenna. Other brands and models meeting the table’s requirements are supported too.
| Chip | Flash | Board names / search keywords | Reference prices: Taobao / AliExpress / Amazon US |
|---|---|---|---|
| ESP32-C6 | 4 MB+ | SuperMini · Zero · DevKitM-1 · DevKitC-1 · WROOM-1 N8 |
¥10–15 / US$2–4 / US$14 (3 boards) |
| ESP32-S3 | 4 MB+ | DevKitC-1 N8R2 / N8R8 / N16R8 · SuperMini · Zero · WROOM-1 N16R8 |
¥10–25 / US$3–7 / US$19 (3 boards) |
| ESP32-C3 | 4 MB+ | SuperMini · MINI · Zero · DevKitM-1 · MINI-1 N4 |
¥3–10 / US$2–5 / US$12 (3 boards) |
| ESP32-C2 | 2 MB+ · auto 26/40 MHz | Also supported | — |
| ESP32-C5 | 4 MB+ | Also supported | — |
| ESP32 (classic) | 4 MB+ | Also supported | — |
Standard SPI flash (DIO). Search the chip name together with a board name. PSRAM is not required.
🚀 Set up and try it
The complete guide covers every step. These links take you to the relevant section:
💬 Conversations, plans and skills
Ask a question, work through a plan or give the agent a task in the same conversation. Conversations support rename, archive, search and file export. Scroll back through the history while a task runs, then jump to the latest reply whenever you want.
Skills teach the agent how to handle common phone tasks and improve its taps, typing and gestures. Add skills from the community or ask Harness to help write your own. You can also connect MCP tools in Settings.
Actual Harness screens with sample content; the conversation below is an example.
| Your conversations | Example conversation | Skills |
|---|---|---|
![]() |
![]() |
![]() |
One bridge supports two independent Harness connections. When using two phones, select the matching phone on each page and run the optional input test on each to confirm the pairing.
📋 Long text, in any language
The bridge handles everyday typing and shortcuts as a Bluetooth keyboard. For long or multilingual text, iPhone Agent Clipboard uses Apple Shortcuts to copy the text, then the agent pastes it into the chosen field.
The browser sends the text to the ESP32 in small chunks over local WebRTC. The bridge streams those chunks in one HTTP response to the Shortcut, which puts the complete text on the iPhone clipboard.
🔒 Data and privacy
Sessions, screenshots and credentials are saved in your browser; ordinary APIs connect directly to your provider. ChatGPT subscriptions use the project’s Cloudflare relay or your own stateless relay because of browser CORS, forwarding selected context, images, output and a short-lived access token. The relay application does not persist this traffic or log bodies or credentials.
Screenshot reuse sends each selected image once to DeepSeek or Claude and uses its file ID in later requests. These provider files expire after one hour; the option can be changed per API connection.
🤝 Contribute
Ideas, bug reports and improvements are welcome: open an issue or send a pull request. Share your custom skills in the skill community.
MIT License · Third-party notices
💛 Acknowledgements
Thanks to onehumanbeing/esp32-iphone-agent for inspiration.
探索相关项目
加载中…


