Give your agent a body.
Eyes and hands for Codex and Claude Code on a real iPhone.
What is iPhone-use?
iPhone-use is an open-source macOS CLI that lets Codex, Claude Code and other AI agents operate a real iPhone. It provides screenshots and device actions; your agent interprets the task, plans actions and checks the result.
Standard uses screenshots and native HID input without installing or signing a Runner. Runner uses XCTest and provides available accessibility elements. See the mode comparison for requirements. The project was formerly called AgentSoma.
Deciding how to control your phone? Compare iPhone-use, Appium and iPhone Mirroring by task, requirements and integration.
Start here
- Install the CLI
Get the complete macOS CLI and Runner package.
- Use Codex or Claude Code with your iPhone
Install your client plugin, then start a new agent session.
- Prepare your iPhone
Use Xcode, device trust and Developer Mode; signing is required only when you choose runner mode.
- Run your first task
Navigate Settings, read the screenshot and disconnect.
Observe, act, verify
Observe: capture an Apple PNG; Runner also offers available accessibility text. Act: use current references to open an app, tap, swipe or enter text. Verify: read the next screenshot and decide whether the task is complete.
A successful input is an execution fact. It does not establish that the app reached the intended business result. See execution outcomes.
Supported scope
Standard currently targets Apple Silicon, macOS 27, full Xcode 27 and iOS 27; runner additionally requires development signing. The published 0.5.0 package was verified on macOS 27.0, Xcode 27.1 and iPhone 12 Pro / iOS 27.0.1, with an existing paid development profile for Runner. Fresh-Mac onboarding, free Personal Team provisioning/renewal and other device/OS combinations remain unverified. See the 0.5.0 release notes for tested operations and known limits.
Privacy and data flow
Device control runs on your Mac and iPhone. Your AI client may still send screenshots, accessibility text and task context to a model provider. What is sent and retained depends on the client, service and account settings.
Disconnecting does not delete saved screenshots, recordings or client history, or revoke the preview link. Keep that link private: it can access a later preview explicitly enabled for the same device. Closing the browser tab does not disconnect the phone.
Check screen content and client data settings before using personal apps. See the privacy and data flow guide for local storage and cleanup details. iPhone-use uses the MIT license.