2026-11-26 15:40 UTC

Open-source iPhone agent runs on-device after Mac-based pairing

state: seedheat: mediumuncertainty: mediumrelevance: highmobile-agent iphone-control open-sourceEliot Andres

What is this?

Eliot Andres’s AGPL-3.0 project, iphone-use-app, is a sideloaded iOS app that uses a vision-capable LLM to operate the iPhone it runs on: it sends screenshots to the model and carries out tool calls such as taps, swipes and typing. The project says a Mac is needed once to create a pairing file, but not at runtime; it requires iOS 26 or later, Developer Mode and a VPN setup, and model requests go to an external provider unless the user configures another compatible endpoint. Andres’s README includes a Lyft-task demo and a small, self-reported model evaluation. The available evidence is the project’s own GitHub documentation and a Show HN post; independent confirmation or evidence of broader adoption is not supplied.

Why it matters

This makes real-app phone-agent experiments more self-contained: after setup, a developer can run an LLM-driven workflow on an iPhone without keeping a Mac or extra device attached. That could broaden experimentation with agents acting across apps, but it is not a fully local or frictionless solution: model calls may leave the phone, setup involves developer services and VPN permissions, and the app cannot be distributed through the App Store. The demo and benchmark are useful first-party evidence of a prototype, not independent proof of reliability across tasks or devices.

Current assessment

New: Eliot Andres has published iphone-use-app on GitHub under AGPL-3.0; a Show HN post dated Nov. 10, 2026 presents it as an open-source iPhone-control app. The repository describes an agent that runs on the phone, captures screenshots, sends them to a vision model with tool-call support, and performs actions through CoreDevice services over a loopback VPN. A Mac is required for initial pairing and building from source, but the project says it is not needed at runtime. The repository requires iOS 26+, Developer Mode, pairing, VPN configuration and sideloading; the free-Apple-ID route requires a separate VPN app and re-signing every seven days. It also notes cellular-data and other-VPN limitations. The model endpoint is configurable; the documented default flow uses OpenRouter, so do not characterize this as necessarily private or offline. The README’s demo stops before booking a Lyft ride, and its November 2026 benchmark reports results on only 11 recorded steps, replayed twice per model; these are project-reported measurements, not independent validation. The README also documents a fixed background CPU issue and says the reason a heartbeat connection closes remains unresolved. Implication: the project could lower the runtime hardware barrier for mobile-agent prototyping and show how agents might operate ordinary iOS apps, while Apple’s developer-mode, entitlement and distribution constraints remain significant. Track installation friction, stability on longer runs, task success beyond the included scripts, and whether independent users reproduce the claims.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 404h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-09 20:25 (minted)⭐ origin echo-reconstructedThe repository README presents the app directly: “Let an AI model use your iPhone, from the iPhone itself. No Mac at run time (one-time pair
Eliot Andres (GitHub user EliotAndres) on github (echo) · attributed from hn.story.50430860 · published time unknown
—
11-09 19:47first on hacker news · published · lag ?Show HN: Open-source app that lets LLMs control your iPhone (no Mac required)
ea016
—
11-09 19:47amplified on hacker news 👑hn.story.50430860
ea016
peak 2 · 0 comments · 103% of case engagement
11-09 20:20our radar first saw it · lag ?discovery anchor: hn.story.50430860—
pace: p26 vs 1845 stories at the 336h mark (now 404h old) — ahead of adap-delegated-authority-protocol-draft (2.0x), behind abmaze-protein-fitness-agent-benchmark (0.7x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Open-source app that lets LLMs control your iPhone (no Mac required)
Retrieved article excerpt

Open article · Retrieved 2026-11-09T20:22:48.392162+00:00

[iphone-use-app icon](https://github.com/EliotAndres/iphone-use-app/blob/main/docs/images/logo.png)

# iphone-use-app

**Let an AI model use your iPhone, from the iPhone itself. No Mac at run time (one-time pairing only), no extra hardware, no jailbreak.**

[iOS](https://camo.githubusercontent.com/d78bc159f387bb2311f60bc4681bbf0ce28965c7b67341f865e1ba237b302ce1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f694f532d32362532422d626c61636b)
[License: AGPL-3.0](https://github.com/EliotAndres/iphone-use-app/blob/main/LICENSE)
[Swift + Rust](https://camo.githubusercontent.com/8b1e4f9fcd43ccccb608df4a04ad5adcfc47a3d9f3a93d5c661ecff3faf9d903/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5377696674253230253242253230527573742d6f72616e6765)

[Demo: the agent picks a Lyft ride to the Eiffel Tower](https://github.com/EliotAndres/iphone-use-app/blob/main/docs/demo.mp4)
[The finished run: each step with its screenshot, then the agent's summary](https://github.com/EliotAndres/iphone-use-app/blob/main/docs/images/screen-steps.jpg)
[A new chat with suggested prompts](https://github.com/EliotAndres/iphone-use-app/blob/main/docs/images/screen-home.jpg)

*Left: "Select a Lyft to the Eiffel Tower (don't book yet)" (4× speed): the agent leaves its own app, opens Lyft,
types the destination, picks it and stops at the ride options. Middle: the finished run, each step with its screenshot. Right: a new chat.*

## Features

- **No computer at run time:** the agent runs on the iPhone and controls that same iPhone, no extra hardware or jailbreak.
  A Mac is only needed once, to make the pairing file
- **Start it from anywhere:** the chat, Siri, the "Run Agent" Shortcut or an `iphoneuse://run?prompt=…` link.

## How it compares

|  | iphone-use-app | [TapKit](https://tapkit.ai) | [esp32-iphone-agent](https://github.com/onehumanbeing/esp32-iphone-agent) | [iPhone-use](https://github.com/zhongerxin/iPhone-use) |
| --- | --- | --- | --- | --- |
| **Computer at run time** | None (a Mac once, for pairing) | Mac app, phone plugged in | None (a computer once, to flash the board) | Mac (MCP server) |
| **Extra hardware** | None | None | ESP32-S3 board (~$7) on USB-C | None |
| **How it sees and acts** | CoreDevice screenshots and touches, through a loopback VPN | Apple accessibility features | AirPlay mirroring to the board, USB mouse/keyboard via AssistiveTouch | WebDriverAgent (XCTest) over USB |

## Requirements

| Part | Notes |
| --- | --- |
| **iPhone** | iOS 26 or later, Developer Mode on. |
| **Apple account** | **Paid team:** the app uses its own built-in VPN (needs the Network Extension entitlement). **Free Apple ID:** build with `BUILTIN_VPN=NO` (Xcode build setting or `xcodebuild` argument) and install [LocalDevVPN](https://apps.apple.com/app/localdevvpn/id6755608044); re-sign every 7 days. |
| **Pairing file** | Made once from a Mac over USB (below). |
| **Vision model** | An [OpenRouter](https://openrouter.ai/settings/keys) key, or any OpenAI-compatible endpoint whose model takes images and tool calls. |
| **Mac** | Only to make the pairing file (and to build the app, unless you install the release). Not needed at run time. |

## Limitations

- **Shortcut needed on cellular:** iOS refuses new loopback VPN connections on cellular data, so the app runs a
  Cellular Toggle shortcut that turns data off while it connects, then back on (or turn it off by hand).
- **No other VPN at the same time:** it needs a loopback VPN (the built-in one, or
  [LocalDevVPN](https://apps.apple.com/app/localdevvpn/id6755608044)), and iOS allows one VPN at a time, so
  Tailscale and similar stop while it is on.
- **"Viewed remotely from Mac" notice on every run:** iOS shows "Device Hub: This device was viewed remotely from
  Mac" when its developer services are used, even though the "Mac" here is the app itself. Nothing leaves the phone (except calls to LLMs).
- **Permissions:** requires Developer Mode, a VPN configuration, Local Network access (to find the phone's
  pairing service), and Location set to "Always" (keeps runs alive in the background, alongside silent audio).
  Microphone only for voice prompts.
- **Pairing files expire:** make a new one when the app says so.
- **Sideloaded build only:** it needs Developer Mode and developer services, so it can't go on the App Store.
- **A few seconds per step:** most of it is the model.

## How it works

```
flowchart LR
  subgraph App["iphone-use-app"]
    L["LLM calling"]
    D["Mount developer image"]
    O["Orchestrator"]
  end
  L <-- "screenshot + history /<br/>tool call" --> R["OpenRouter"]
  D -- "DDI mount" --> V["Loopback VPN<br/>10.7.0.1"]
  O <-- "screenshot / tap, swipe, type" --> V
```

 Loading

The app mounts a developer image, then uses a loopback VPN to screenshot and control the iPhone it runs on.
Each step, the screenshot goes to the model, which answers with a tool call (tap, long press, swipe, type, open app) until it's done.
A Live Activity shows progress with a Stop button, and every run is saved as a chat.

## Benchmark

One decision is one screenshot → one tool call. `scripts/eval.sh` replays 11 recorded steps (open Lyft, search a
destination, pick a ride, stop before paying; write a note) against each model through OpenRouter, run twice
(22 decisions per row). November 2026; times are full round trips from a Mac.

| Model | Correct | Median | p90 | $ / decision |
| --- | --- | --- | --- | --- |
| **Claude Haiku 5.5 (default)** | 91% | 1.3 s | 2.0 s | $0.0003 |
| Claude Haiku 5.5, reasoning off | 91% | 1.1 s | 1.5 s | $0.0003 |
| Claude Sonnet 5.5 (reasoning can't be turned off) | 91% | 1.2 s | 2.5 s | $0.0055 |
| Claude Opus 5 | 95% | 2.1 s | 4.2 s | $0.014 |
| Claude Opus 5, fast tier, reasoning off | 100% | 1.4 s | 1.6 s | $0.051 |
| Claude Opus 5.5 | 86% | 1.8 s | 3.1 s | $0.011 |
| Claude Opus 5.5, fast tier | 82% | 0.9 s | 1.3 s | $0.021 |

## Quick start

### 1. Make a pairing file

This is the one step that needs a Mac. Plug the phone into the Mac, unlock it (tap Trust if asked), then:

```
git clone https://github.com/jkcoxson/idevice && cd idevice
cargo build --release -p idevice-tools --bin idevice-tools
./target/release/idevice-tools rppairing pair my-mac pairingFile.plist
```

The file keeps working until the phone stops trusting that host (Reset Location & Privacy, Developer Mode turned off).
Make a new one if the app says the pairing file is invalid or expired.

### 2. Install the app

**Without building:** add this source in [SideStore](https://sidestore.io) or [AltStore](https://altstore.io):
`https://raw.githubusercontent.com/EliotAndres/iphone-use-app/main/source.json`
(or sideload the `.ipa` from [Releases](https://github.com/EliotAndres/iphone-use-app/releases/latest)).
It is the free Apple ID build: install [LocalDevVPN](https://apps.apple.com/app/localdevvpn/id6755608044) too.

**From source** (needed for the built-in VPN, which takes a paid team):

```
# once: the prebuilt Rust lib (45 MB, gitignored) from the latest release...
curl -L -o iPhoneUse/idevice/libidevice_ffi.a https://github.com/EliotAndres/iphone-use-app/releases/latest/download/libidevice_ffi.a
# ...or build it yourself (needs rustup + the aarch64-apple-ios target)
scripts/build-idevice.sh
open iPhoneUse.xcodeproj        # set your team, run the iPhoneUse scheme on the phone
```

### 3. Set up (once, in the app)

1. Settings (gear, top right) → **Import Pairing File**.1
2. Allow the **Add VPN Configuration** prompt. It only routes `10.7.0.1` back to the phone.
   With LocalDevVPN instead: turn it on, and pick LocalDevVPN in Settings → Phone Connection
   (picked for you if the built-in VPN fails).
3. Settings → **Model**: pick a provider, paste the key, pick a model.
4. Wait for the "not connected" line above the input to go away (the developer disk image downloads on first run).

1 Or copy it over once the app is installed:
`xcrun devicectl device copy to --device <udid> --domain-type appDataContainer --domain-identifier blog.eliot.iphoneuse --source pairingFile.plist --destination Documents/pairingFile.plist`

### 4. Give it a task

Type a goal, for example *"Open Settings and turn on Dark Mode"*, and send it. Stop it from the Dynamic Island
or the chat.

## Development

#### Scripted runs (no LLM)

```
DEV=<udid> scripts/runscript.sh "open com.apple.Preferences; wait 1.5; tap 0.5 0.9; shot a" a
```

Launches the app with `-agentScript`, waits for "script done" in `Documents/agent.log` and pulls the screenshots.
`-agentPrompt "..."` as a launch argument starts a real run.

#### Simulator (layout checks only)

The simulator can't reach a device, but it shows the UI. `-demoChat YES` plays a fake run
(placeholder screenshots, a question to answer), Debug builds only.

1. `rustup target add aarch64-apple-ios-sim && scripts/build-idevice.sh sim`: the libs are
   single-arch, so the simulator needs its own, in `iPhoneUse/idevice/sim/`.
2. Build Debug (the scheme defaults to Release, which drops `-demoChat`) against that lib:
   `xcodebuild -project iPhoneUse.xcodeproj -scheme iPhoneUse -configuration Debug -destination id=<sim udid> LIBRARY_SEARCH_PATHS='$(PROJECT_DIR)/iPhoneUse/idevice/sim' build`
3. Install the `.app` from DerivedData and launch it with `-demoChat YES`.

#### Heartbeat connection closes right after connecting (fixed: runs used to get killed)

**Symptom (before the fix):** a run froze on a step after about a minute in the background, and the
Live Activity stayed on that step. The app had been killed: the phone's crash logs held an
`iPhoneUse.cpu_resource_fatal-*.ips` report ("exceeding limit of 80% cpu over 60 seconds", "Process killed").

**Cause:** the heartbeat thread (`Heartbeat.run()` in `DeviceSession.swift`) keeps CoreDevice services
alive during a run. Its connection is closed right after the handshake; idevice's userspace TCP stack
(jktcp) then answers every read with `BrokenPipe` in microseconds, and the loop retried with no delay,
about 45k times a second. iOS kills background apps above 80% CPU over 60 seconds.

Two things made it worse:

- The idevice log was written to `Documents/idevice_log.txt` at Debug level, which prints every XPC
  message, screenshots included, as decimal byte lists: 178 MB of log and ~1 GB of memory in a minute.
- The loop matched errors by the strings `HeartbeatTimeout` / `HeartbeatSleepyTime`, which never
  appear in idevice's messages ("heartbeat timeout", "device went to sleep").

**Fix:** timeouts are matched on the error code (100, sub-code 2) and the loop waits again; any other
error ends the loop. The file log is at Info.

**Still open:** why the heartbeat connection closes. Runs work without it (a 17-step, 2.5-minute run
finished fine); if CoreDevice services start dropping on long runs, reconnecting the heartbeat
(with backoff) is the next step.

**Debugging a killed run:** `idevicecrashreport -u <udid> -k <dir>` pulls the crash logs. Symbolicate
with `atos` against the dSYM of the exact build (the UUID in the report must match
`dwarfdump --uuid`).

Feature scope: [docs/FEATURES.md](https://github.com/EliotAndres/iphone-use-app/blob/main/docs/FEATURES.md).

## Responsible use

Only automate devices and accounts you own or may use, and respect the terms of the apps involved. The agent acts
with your hands: watch it, and keep Stop within reach.

## Credits

| Project | Repo | Used for |
| --- | --- | --- |
| StikDebug, by Stephen and contributors | [StikDebug/StikDebug](https://github.com/StikDebug/StikDebug) | The tunnel, pairing file and developer disk image code is based on it |
| idevice, by jkcoxson | [jkcoxson/idevice](https://github.com/jkcoxson/idevice) | The Rust library behind every device call |
| StosVPN, by the SideStore Team and Stossy11 | [SideStore/StosVPN](https://github.com/SideStore/StosVPN) | The loopback VPN (`TunnelProvider/`) is based on it |
| LocalDevVPN, by jkcoxson | [jkcoxson/LocalDevVPN](https://github.com/jkcoxson/LocalDevVPN) | The VPN app for
ea01620
🟧 echo.github ⭐The repository README presents the app directly: “Let an AI model use your iPhone, from the iPhone itself. No Mac at run time (one-time pairEliot Andres (GitHub user EliotAndres)——

Interpretation history

Decision trace