Open source · Physical iPhone
Give your agent
a body.
Give Codex and Claude Code eyes and hands on your iPhone.
Read the screen. Use real apps. Check what happened. All through a Swift CLI on your Mac.
Your Mac. Your iPhone. Your choice of agent.
- ObserveRead the screen
- ActUse the app
- VerifyCheck the result
Made for the tools you already use.
- Codex
- Claude Code
- macOS + iPhone
- MIT licensed
The task ends
with evidence.
Calculate 125 × 8, then reconnect and verify the saved result in Calculator history.
- See what’s there.Discover the app. Read its screenshot and accessibility tree.
- Choose the next action.Tap the calculator keys using current references. Keep the screen checks on.
- Check the saved result.Read 1,000 on screen. Reconnect, open History, and confirm the same calculation.
A recorded CLI task. The first task below checks the client plugin’s Settings workflow.
Small primitives. Real app workflows.
- Observe
- Apple PNG screenshots; optional Runner accessibility snapshots.
- observe · inspect
- Act
- Discover and open apps. Tap, scroll, drag, and edit text.
- apps · open · tap · swipe · type · press
- Verify
- Know whether input completed, was rejected, or has an uncertain result. Observe before deciding what comes next.
- completed · not_dispatched · unknown
Today: physical iPhone. Choose standard screenshot/HID control or optional XCTest Runner. This release operates through the CLI.
From install to your first task.
Use your existing Codex or Claude Code account. iPhone-use is MIT licensed.
Before you begin: Mac, iPhone & Xcode
Standard mode requires Apple Silicon, macOS 27 / iOS 27 and full Xcode, plus a trusted USB-connected iPhone with Developer Mode enabled. Development signing and setup are only required for Runner mode.
Release 0.2.0 passed package checks. Prior candidate device evidence covers iPhone 12 Pro / iOS 27.0.1. Fresh-Mac and free Personal Team setup remain unverified. Check prerequisites.
-
1. Install the CLI.
In Terminal on your Mac:
brew install HughLee824/tap/iphone-use iphone-use --versionMigrating from AgentSoma? Uninstall the old agentsoma formula before installing iphone-use. Local signing data is retained.
Prefer a download? Follow the manual installation guide. Keep the complete CLI and Runner package.
-
2. Add your client’s plugin.
Codex
Run in Terminal, then start a new Codex task:
codex plugin marketplace add HughLee824/iphone-use codex plugin add iphone-use@iphone-useRequires a Codex release with
codex pluginsupport. Command names checked on CLI 0.146.0. Invoke$iphone-use:iphone-usein the new task.Claude Code
Run in Terminal, then start a new Claude Code session:
claude plugin marketplace add HughLee824/iphone-use claude plugin install iphone-use@iphone-useInvoke
/iphone-use:iphone-usein the new session. The plugin adds device instructions; install the CLI and Xcode separately.Distributed through this project’s own Git marketplace. Installation and upgrades.
-
3. Prepare your iPhone.
Plug it in, trust the Mac, enable Developer Mode, and keep it unlocked. Copy the device ID returned by
devices:iphone-use devices export IOS_UDID='YOUR_DEVICE_ID' iphone-use config set mode standardsetupis optional and only prepares Runner mode with your development signing. Standard mode uses Apple PNG and native HID without starting Runner. Mode and signing guide. -
4. Give your agent its first task.
Invoke the skill in a new client session, then send:
Open Settings on my iPhone, navigate to General, read the screenshot to verify the page, then disconnect. Do not change any settings.
You’re done when the agent reads the General screenshot, confirms the page, and reports clean disconnection. A successful tap alone isn’t task completion.
Read the first-task guide
Know the boundaries.
Local device control.
Commands run on your Mac and iPhone. Screenshots and UI text may be sent to your chosen AI client’s model under its data settings.
Explicit execution facts.
Screen checks and fresh references help the agent act on what it saw. When input is uncertain, it observes again before deciding to retry.
Early, with a tested path.
Compatibility is limited to tested environments. The Mac CLI is ad-hoc signed, without Developer ID notarization. Current limitations.
Help when setup stops.
Check CLI availability, Xcode selection and device trust; check signing only for Runner. Troubleshoot your first task or report a reproducible issue.