Metadata-Version: 2.4
Name: agent-iphone
Version: 0.1.10
Summary: Linux & macOS CLI & MCP server for controlling physical iOS 27+ iPhones over USB or no-root Wi-Fi CoreDevice — no Xcode, WebDriverAgent, or root required.
Author: minpeter
License-Expression: MIT
Project-URL: Homepage, https://github.com/minpeter/agent-iphone
Project-URL: Repository, https://github.com/minpeter/agent-iphone
Project-URL: Issues, https://github.com/minpeter/agent-iphone/issues
Keywords: iphone,ios,ai-agents,mcp,coredevice,linux,macos,pymobiledevice3,automation
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pymobiledevice3<12.0,>=11.50.0
Requires-Dist: pillow>=10.0.0
Provides-Extra: vision
Requires-Dist: onnxruntime>=1.18.0; extra == "vision"
Requires-Dist: rapidocr-onnxruntime>=1.4.0; extra == "vision"
Requires-Dist: numpy>=1.26.0; extra == "vision"
Provides-Extra: dev
Requires-Dist: av>=14.0.0; extra == "dev"
Requires-Dist: numpy>=1.26.0; extra == "dev"
Requires-Dist: pytest>=8.0.0; extra == "dev"
Dynamic: license-file

![A silver iPhone showing the screen target for a tap from Linux](https://raw.githubusercontent.com/minpeter/agent-iphone/main/docs/assets/banners/port-silver-overlay.png)

# agent-iphone

Let AI agents control a real iPhone from Linux or macOS. Read the screen, tap buttons, and type text over USB or Wi-Fi with the CLI or MCP server.

Prebuilt wheels support CPython 3.11–3.14 on Linux (`x86-64` and `ARM64`, glibc 2.28+) and macOS (Apple silicon `arm64`). To try it without a phone:

```sh
uvx agent-iphone snapshot --mock
```

## Connect an iPhone

Install the CLI and MCP server together:

```sh
uv tool install agent-iphone
```

On an iPhone running iOS 27 or later, enable Developer Mode. Connect it by USB, unlock it, and accept the trust prompt. On Linux, start usbmuxd and check the connection:

```sh
agent-iphone doctor
uvx --from 'pymobiledevice3>=11.50.0,<12' pymobiledevice3 mounter auto-mount
agent-iphone snapshot
```

Install Tesseract for text targets or use `uv tool install 'agent-iphone[vision]'` for the optional vision backend. To set up Wi-Fi, run `agent-iphone pair-wifi` once while connected over USB.

Start an MCP client with the command `agent-iphone-mcp`. It starts read-only. To let an agent tap or type, pass `--allow-control` when starting the server. When multiple CLI or MCP sessions share one phone, coordinate access with `agent-iphone --allow-control lock acquire --reason "..."` (or `phone_control_lock` over MCP) and inspect ownership with `agent-iphone lock status`. Use `agent-iphone pause` to take over and `agent-iphone resume` to return control.

[Project and issue tracker](https://github.com/minpeter/agent-iphone)
