iphone-use is an open-source project designed to let AI agents operate a real iPhone. It allows Claude Code, Codex, or any MCP client to read screen text, tap, type, and swipe, and works with any app, including apps without an API (such as health, banking, payment, and chat apps).
Key capabilities:
- Supports USB or Wi-Fi connections; the first setup requires a data cable, after which it can be operated wirelessly over an encrypted tunnel.
- Compatible with iOS 15 and above, with no need to update the phone.
- Fast: its own XCTest device runner reads the screen in about 0.1 seconds, and tapping and waiting for the interface to stabilize takes about 1.9 seconds.
- Honest results: each operation reports whether it was applied, not sent, or unknown, and explains whether retrying is safe; taps on covered elements are rejected.
- Replayable flows: a task can be saved as a flow and replayed without a model or tokens.
- Supports manual remote control: view the H.264 screen in real time via a browser or another iPhone, use mouse and keyboard, pair via QR code; the agent and the human share the same phone without conflicts.
- The agent can watch in real time: view the phone screen in the agent host sidebar, a browser, or the iOS app.
- Does not affect the Mac: it does not touch the Mac's screen, cursor, or focus.
How to use:
- Requirements: macOS 15 or later, Xcode signed in with an Apple ID (a free account is sufficient); the iPhone must run iOS 15 or later with Developer Mode enabled; the first setup requires a USB cable.
- The installer sets up the phone, registers the MCP server with Claude Code, Codex, Cursor, and Claude Desktop (Cursor and Claude Desktop can be skipped with IPHONE_USE_NO_CLIENT_SETUP=1), and opens the browser control page.
- The agent can also install it: paste the installation instructions into Codex or Claude Code on the Mac.
- Codex and Claude Code plugins are provided, adding skills and the MCP server.
- Other MCP clients require manual command configuration, such as Cursor, Claude Desktop, Gemini CLI, Windsurf, VS Code/Copilot, opencode, etc.
- The HTTP API (/agent/*) can also be called directly.
- Developer tools: read logs and crash reports, record the screen as MP4, install builds (.ipa, .app, or https links), set a simulated location, and save notes per app.
- An iOS simulator can be used when no phone is available (requires Xcode).
Use cases:
- Automated testing of apps without an API.
- Executing repetitive tasks through an AI agent and saving them as replayable flows.
- Manual remote control of an iPhone.
- Developer debugging and testing of iOS apps.
Limitations and security:
- Requires a macOS and Xcode environment.
- Sign-in, passwords, and Face ID must be completed manually by the user; the agent will not ask for passwords or verification codes.
- Specific apps can be blocked (IPHONE_USE_BLOCKED_APPS) and the number of actions per task can be limited (IPHONE_USE_MAX_ACTIONS).
- Optional checkout tap guard (IPHONE_USE_CHECKOUT_TAP_GUARD=1).
- Listens locally on 127.0.0.1:44321 by default, with a password; the iOS 15/16 LAN path is unencrypted.
- No telemetry data.
- Pricing-related: paid setup and project sponsorship are available, contact by email; specific prices are not yet provided.