Metadata-Version: 2.4
Name: agent-iphone
Version: 0.1.9
Summary: Linux-native CLI & MCP server for controlling physical iOS 27+ iPhones over USB or no-root Wi-Fi CoreDevice — no Mac, 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,pymobiledevice3,automation
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: POSIX :: Linux
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. 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 x86-64 and ARM64 Linux with glibc 2.28 or later. 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. Use `agent-iphone pause` to take over and `agent-iphone resume` to return control.

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