[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117429":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":15,"stars7d":17,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":13,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":22,"topics":23,"createdAt":10,"pushedAt":37,"updatedAt":38,"readmeContent":39,"aiSummary":10,"trendingCount":16,"starSnapshotCount":16,"syncStatus":40,"lastSyncTime":41,"discoverSource":42},117429,"iphone-control","Derrors\u002Fiphone-control","Derrors","Control a real USB-connected iPhone from Linux (no Mac, no paid developer account) and expose it to AI agents as MCP tools","https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002F",null,"Rust",69,10,1,3,0,4,51.52,"MIT License",false,"main",true,[24,25,26,27,28,29,30,31,32,33,34,35,36],"ai-agent","automation","claude","claude-code","docker","ios","iphone","linux","mcp","mcp-server","model-context-protocol","rust","webdriveragent","2026-11-23 17:44:55","2026-11-23 15:38:54","\u003Cdiv align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FDerrors\u002Fiphone-control\">\n    \u003Cimg src=\"docs\u002Fimages\u002Fbanner.svg\" alt=\"iphone-control: Let AI agents operate a real iPhone\" width=\"100%\">\n  \u003C\u002Fa>\n\n  \u003Cp align=\"center\">\n    Let an AI agent operate a real iPhone or iPad plugged into a Linux machine or a Mac, reliably and fast — one Rust binary, no Xcode, no paid developer account, no jailbreak, and from iOS 27 no Apple ID either.\n  \u003C\u002Fp>\n\n  \u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FDerrors\u002Fiphone-control\u002Freleases\u002Flatest\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002FDerrors\u002Fiphone-control?style=flat\" alt=\"Release\">\u003C\u002Fa>\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FiOS-27%2B%20recommended%20%C2%B7%2017%2B%20supported-black?style=flat&logo=apple\" alt=\"iOS: 27+ recommended, 17+ supported\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-Linux%20%7C%20macOS-0E7490?style=flat\" alt=\"Platform: Linux | macOS\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FMCP-17%20tools-8A2BE2?style=flat\" alt=\"MCP\">\n    \u003Ca href=\"Cargo.toml\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRust-1.89%2B-CE422B?style=flat&logo=rust&logoColor=white\" alt=\"Rust\">\u003C\u002Fa>\n    \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FDerrors\u002Fiphone-control?style=flat\" alt=\"License\">\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fm8ven.ai\u002Fmcp\u002Fderrors-iphone-control-1pcmse?s=readme\">\u003Cimg src=\"https:\u002F\u002Fm8ven.ai\u002Fbadge\u002Fmcp\u002Fderrors-iphone-control-1pcmse?variant=verified\" alt=\"M8ven verified\">\u003C\u002Fa>\n  \u003C\u002Fp>\n\n  \u003Cp align=\"center\">\n    \u003Ca href=\"#quick-start\">\u003Cstrong>🚀 Quick Start\u003C\u002Fstrong>\u003C\u002Fa>\n    &nbsp;·&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002F\">\u003Cstrong>📖 Docs\u003C\u002Fstrong>\u003C\u002Fa>\n    &nbsp;·&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FDerrors\u002Fiphone-control\u002Freleases\">📦 Releases\u003C\u002Fa>\n    &nbsp;·&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FDerrors\u002Fiphone-control\u002Fissues\">🐛 Issues\u003C\u002Fa>\n    &nbsp;·&nbsp;\n    \u003Ca href=\"README.zh-CN.md\">🌐 简体中文\u003C\u002Fa>\n  \u003C\u002Fp>\n\n  \u003Cbr>\n  \u003Cimg src=\"docs\u002Fimages\u002Fdemo-stopwatch.webp\" alt=\"Claude Code on the left calls iphone_launch_app and iphone_tap_element; on the right, the iPhone shows the Clock stopwatch running\" width=\"900\">\n  \u003Cp>\u003Csub>Asking Claude Code to “open Clock, switch to the stopwatch and start it”. Left: Claude Code’s tool calls (first part only). Right: the phone afterwards.\u003C\u002Fsub>\u003C\u002Fp>\n\u003C\u002Fdiv>\n\n## Overview\n\nAI agents can drive browsers and desktops, but a real iPhone is harder: Apple's automation tools need a Mac and Xcode, and the open-source alternatives come as separate pieces that each need their own setup, signing and babysitting.\n\niphone-control does it all in **one Rust binary** on Linux or macOS, built on [idevice](https:\u002F\u002Fgithub.com\u002Fjkcoxson\u002Fidevice), [Impactor](https:\u002F\u002Fgithub.com\u002Fclaration\u002Fimpactor) and [WebDriverAgent](https:\u002F\u002Fgithub.com\u002Fappium\u002FWebDriverAgent). It succeeds [iphone-control-toolkit](https:\u002F\u002Fgithub.com\u002FDerrors\u002Fiphone-control-toolkit) and keeps its MCP tools compatible.\n\nIt has three layers, and device control is the core:\n\n| Layer | What it does | Needs the control page? |\n| --- | --- | --- |\n| **Device control** (core) | A long-running daemon owns the phone and serves the MCP tools; recovers from unplugging and reboots; pausing, taking over and confirming AI tasks | No |\n| **Access** | AI clients on this machine connect over stdio; other machines over HTTP MCP (`\u002Fmcp`) or `mcp --url` | Locally no; remotely the viewer service must run |\n| **Control page** (optional) | Watch the live screen in a browser, act on it, hand out AI tasks | It is the control page |\n\nDevice control has two routes, picked by iOS version:\n\n- **iOS 27 and later: native control (default).** The screen is read through the system's accessibility service, taps, swipes and buttons go through HID, and apps launch through CoreDevice. Nothing is installed on the phone: no Apple ID, no signing, ready in seconds.\n- **iOS 17–26: WebDriverAgent.** Signed with a free Apple ID, installed on the phone and re-signed before the 7-day profile expires. This route stays maintained.\n\n> [!TIP]\n> **Use a device on iOS 27 or later if you can**, or update the phone to iOS 27: no Apple ID sign-in, no signing, no \"Enable UI Automation\" passcode after a reboot, and none of the expiring profiles, revoked certificates or stuck WebDriverAgent that come with it.\n\n\u003Cp align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"website\u002Fpublic\u002Farchitecture-dark.svg\">\n    \u003Cimg src=\"website\u002Fpublic\u002Farchitecture-light.svg\" alt=\"Architecture: AI clients use iphone-control mcp over stdio, and the optional control page serves browsers and remote agents over HTTPS; both talk to the daemon over a Unix socket. The daemon is the core: it drives the iPhone or iPad over USB, natively on iOS 27 and later and through WebDriverAgent on iOS 17–26, and keeps running with the control page closed\" width=\"900\">\n  \u003C\u002Fpicture>\n\u003C\u002Fp>\n\n## Features\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fimages\u002Ffeatures.svg\" alt=\"Device control (core): native on iOS 27+, 17 MCP tools, fewer round trips, runs unattended, a person in charge, doctor and alerts. Access: on this machine, remotely. Control page (optional)\" width=\"900\">\n\u003C\u002Fp>\n\n**Device control (core)**\n\n- **See and touch the screen**: screenshots with region zoom, tap, swipe, long-press, text input (including Chinese), hardware buttons\n- **Work with UI elements**: read the element tree, tap by text (on a part not covered by floating bars or the keyboard), launch and close apps, open URLs, wait for text to appear\n- **Fewer round trips**: any action can return the resulting screen once it has settled, say whether it changed, and flag pages still loading and blocking alerts; `iphone_batch` runs up to 20 steps in one call\n- **Runs unattended**: recovers from replugging, phone reboots and lost connections, and keeps serving with the control page closed; a stuck WebDriverAgent is restarted and re-signed before it expires\n- **A person stays in charge**: AI tasks can be paused, taken over or stopped at any time; paying, deleting or sending waits for your OK, and an agent can't approve its own task\n- **Several devices**: connect several iPhones and iPads and switch which one is controlled\n- **Optional auto-unlock**: every passcode digit is verified, and a wrong passcode disables auto-unlock after one attempt\n- **Alerts**: Telegram or Bark notifications when the phone goes offline, a passcode is needed after a reboot, or re-signing fails\n- **Diagnostics**: `doctor` checks every layer from USB up and tells you how to fix each failure\n\n**Access**\n\n- **On this machine**: Claude Code, Codex or any MCP client over stdio; `task run` runs any agent platform in a task whose every step you can follow\n- **Remotely**: the viewer service serves HTTP MCP (`\u002Fmcp`) on its port, over HTTPS with a login token (read-only ones too) when opened to the network; `mcp --url` and `task --url` use a phone on another machine\n\n**Control page (optional)**\n\n- **Live screen**: on iOS 27 and later the phone's own video (about 60 fps), otherwise H.264; a low-bandwidth mode\n- **Act on it**: the mouse taps and drags like a finger; system alerts missing from the video are drawn on it and can be tapped\n- **Hand out tasks**: give a task to a local Claude Code or Codex, watch it work and take over at any time\n\n## Quick Start\n\nYou need an iPhone or iPad (iOS 27+ recommended, iOS 17+ supported) connected by a **data** cable, and an Apple Silicon Mac or a Linux machine. On iOS 26 and earlier you also need a free Apple ID (use a dedicated one) to sign WebDriverAgent.\n\n**macOS or Linux, one command** (upstream example; for a fork, use the installer asset from its own signed release)\n\n```bash\ncurl -fsSLo iphone-control-install.sh https:\u002F\u002Fgithub.com\u002FDerrors\u002Fiphone-control\u002Freleases\u002Flatest\u002Fdownload\u002Finstall.sh && sh iphone-control-install.sh\n```\n\nIt downloads the release for your machine, verifies the Ed25519 release manifest and archive SHA-256 (Python 3 and OpenSSL 3 required), installs `iphone-control` into `~\u002F.local\u002Fbin` and runs the daemon as a per-user service that starts at login (launchd on macOS, systemd on Linux). Run it as your regular user. Use `iphone-control update` to upgrade this managed service. Running `sh iphone-control-install.sh --uninstall` removes it and keeps your data.\n\nUpstream v0.2.0 predates the signed installer. To install that release or migrate an existing script installation, follow the [v0.2.0 instructions](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fgetting-started#legacy-script).\n\n**Or with a package manager**\n\n```bash\n# macOS or Linux (Homebrew)\nbrew install derrors\u002Ftap\u002Fiphone-control && brew services start iphone-control\n\n# Debian 12+ \u002F Ubuntu 22.04+: the .deb from Releases (amd64 or arm64), pulls in usbmuxd\nsudo apt install .\u002Fiphone-control_\u003Cversion>_amd64.deb && systemctl --user enable --now iphone-control\n```\n\nOn Linux the system usbmuxd is needed (`sudo apt install usbmuxd`; the .deb brings it). On an Intel Mac, build from source.\n\n**Then, on every system**\n\nConnect the phone with the cable and run:\n\n```bash\niphone-control\n```\n\nThe first time, it walks you through setup in the terminal, one step at a time: language, proxy, the background service, pairing, Developer Mode (and on iOS 26 and earlier, Apple ID and signing and installing WebDriverAgent), the optional auto-unlock and notifications, and registering with Claude Code and Codex. Do what it asks on the phone. Steps already done are skipped; afterwards, `iphone-control` just shows the status.\n\nThen open a new Claude Code or Codex session and ask, for example, *“Open Clock, switch to the stopwatch and start it.”* That is device control, complete; the control page is optional. To watch the phone in a browser, run `iphone-control viewer` for the control page in the browser (http:\u002F\u002F127.0.0.1:8200; log in with the link `iphone-control viewer token` prints), where you can act on the live screen and hand tasks to a local Claude Code or Codex; it works from the local network and other machines too, see [Viewer and Remote Use](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fremote).\n\nMore: [step-by-step guide](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fgetting-started) · [build from source](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fdeploy\u002Fsource) · [macOS guide](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fdeploy\u002Fmacos) · [other MCP clients](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fmcp-clients).\n\n## MCP Tools\n\n| Tool | Description |\n| --- | --- |\n| `iphone_status` | Connection, lock state, foreground app, screen size |\n| `iphone_screenshot` | Screenshot scaled to points; pass `x\u002Fy\u002Fwidth\u002Fheight` to zoom into a region |\n| `iphone_list_elements` | Elements with text and their center coordinates; filter by text or type |\n| `iphone_tap` \u002F `iphone_tap_element` | Tap by coordinates or by element text |\n| `iphone_swipe` \u002F `iphone_long_press` | Swipe (returns once the list stops), long-press |\n| `iphone_type_text` | Type into the focused field; reads it back and fixes dropped characters |\n| `iphone_press_button` | `home`, `volume_up`, `volume_down`, `lock` |\n| `iphone_list_apps` \u002F `iphone_launch_app` \u002F `iphone_terminate_app` | Manage apps by name or bundle ID |\n| `iphone_open_url` | Open a URL or URL scheme |\n| `iphone_wait_for` | Wait until some text appears instead of polling with screenshots |\n| `iphone_batch` | Run up to 20 steps in one call, stopping at the first error |\n| `iphone_list_devices` | Every iPhone\u002FiPad on USB; marks the one being controlled |\n| `iphone_select_device` | Switch to another device, or back to automatic choice |\n\n`IPHONE_CONTROL_DEV_TOOLS=1` adds six opt-in [developer tools](docs\u002Ftools.md#developer-tools-opt-in): logs, crash reports, installing and removing apps, and two for Web Inspector (list web pages, run JavaScript in them). They are off by default; read the [security notes](SECURITY.md#developer-tools) before turning them on.\n\nAction tools accept `then: \"elements\" | \"screenshot\"` to return the screen after the action. Screenshot pixels are tap coordinates, so the agent can tap what it sees. Games, maps and video players draw their own UI and have no element tree — use screenshots and coordinates there. Full parameters: [docs\u002Ftools.md](docs\u002Ftools.md).\n\nTool texts, results, CLI output and logs are in Simplified Chinese by default; set `IPHONE_CONTROL_LANG=en` for English ([configuration](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fconfiguration)).\n\n## Everyday Commands\n\n| Command | What it does |\n| --- | --- |\n| *(none)* | The first time, the setup guide; after that, the status (and starts the service if it isn't running) |\n| `setup [--reconfigure]` | Run the setup guide again; `--reconfigure` redoes one part (language, proxy, service, Apple ID, phone, auto-unlock, notifications, MCP registration) |\n| `service install\\|uninstall\\|start\\|stop\\|restart\\|status` | The background service (launchd on macOS, systemd user unit on Linux) |\n| `daemon` | The long-running daemon; the service runs it, or start it by hand |\n| `mcp [--url \u003Cviewer>]` | The MCP server; your AI client starts it. With `--url` it bridges to another machine's viewer |\n| `status` | Daemon state, time left on the signing profile, recent log |\n| `doctor` | Layer-by-layer health check with a fix for each failure |\n| `login` | Sign in to the Apple ID again when the session expires (WebDriverAgent devices only) |\n| `sign` | Sign and install WebDriverAgent now (likewise) |\n| `resign [--force]` | Re-sign WebDriverAgent if it expires soon (or now) (likewise) |\n| `passcode set\\|clear` | Turn auto-unlock on or off for a device (passcodes are kept per device) |\n| `unlock-reset` | Turn auto-unlock back on after it was disabled |\n| `devices` \u002F `select \u003CUDID\\|name\\|auto>` | List connected devices \u002F switch which one is controlled |\n| `notify-test [event]` | Send test notifications |\n| `mcp-config` | Print the command that registers the MCP server |\n| `wda-bridge [--port]` | Expose WebDriverAgent on 127.0.0.1 for other tools; stop it when done (WebDriverAgent devices only) |\n| `viewer [--port] [--lan]` | Control page on 127.0.0.1:8200, behind a login (`viewer token` shows the token and a link; read-only tokens too): live screen you can tap, swipe and type on, device panel, and AI tasks run by a local Claude Code or Codex. `--lan` opens it to the local network (HTTPS), and MCP over HTTP is on the same port (`\u002Fmcp`) |\n| `task run [--url \u003Cviewer>] -- \u003Ccommand>` | AI tasks for other agent platforms; with `--url` the phone is on another machine. `task list`, `pause`, `approve`… follow and control tasks |\n| `viewer token [add \u003Cname> [--read-only]\\|list\\|show \u003Cname>\\|remove \u003Cname>]` | The viewer's login tokens: show the owner's, or add named and read-only ones |\n| `service viewer install\\|uninstall\\|start\\|stop\\|restart` | Run the viewer as a background service of its own |\n| `update check\\|apply\\|policy` | Check for, install, or set the policy for updates |\n| `completions \u003Cshell>` | Bash, Zsh or Fish completion script |\n\nAll commands and options: [CLI reference](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fcli).\n\nRun `iphone-control update` to check for a stable release. When an upgrade is available, it uses the signed update for a managed service, Homebrew for a tap installation, or apt for a Debian package. It reports when you're up to date. Source installations follow the [source upgrade instructions](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fdeploy\u002Fsource#upgrade).\n\nTo check versions, open **About & updates** in Viewer or run `iphone-control update check --json`. Managed services can opt in to signed patches while idle with `iphone-control update policy auto-patch`. Use `iphone-control update policy notify` to return to checks only. Read the [upgrade notes](CHANGELOG.md) before upgrading.\n\nUninstall with `sh iphone-control-install.sh --uninstall`, `brew uninstall iphone-control` or `sudo apt remove iphone-control`; your data stays. Settings live in `~\u002F.config\u002Fiphone-control\u002Fenv`: the guide writes it, and after editing it by hand run `iphone-control service restart` — see [configuration](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fconfiguration). All state lives in `~\u002F.local\u002Fshare\u002Fiphone-control`: the Apple ID session and signing key, and the passcode if auto-unlock is on. **Back it up; never commit or share it.**\n\n## Documentation\n\n| | |\n| --- | --- |\n| Guide | [What is it](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fwhat-is-iphone-control) · [Limitations](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fwhat-is-iphone-control#limitations) · [Getting started](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fgetting-started) · [AI clients](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fmcp-clients) · [Tools](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Ftools) |\n| Usage | [Configuration](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fconfiguration) · [CLI](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fcli) · [Several devices](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fmulti-device) · [Notifications](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fnotifications) · [Auto-unlock](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fauto-unlock) |\n| Deployment | [Install](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fguide\u002Fgetting-started#install) · [Build from source](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fdeploy\u002Fsource) · [macOS](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fdeploy\u002Fmacos) · [Data and backups](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Fdeploy\u002Fbackup) |\n| Problems | [FAQ](https:\u002F\u002Fderrors.github.io\u002Fiphone-control\u002Fen\u002Ftroubleshoot\u002Ffaq) · [Troubleshooting](docs\u002Ftroubleshooting.md) · [Issues](https:\u002F\u002Fgithub.com\u002FDerrors\u002Fiphone-control\u002Fissues) |\n| Security | [SECURITY.md](SECURITY.md): what is stored, who can reach it, reporting vulnerabilities |\n| Development | [Contributing](CONTRIBUTING.md) · [Architecture](docs\u002Farchitecture.md) · [Decisions](docs\u002Fdecisions.md) · [Changelog](CHANGELOG.md) |\n| Licensing | [THIRD_PARTY.md](THIRD_PARTY.md): vendored components, versions and licenses |\n\nThe architecture and design documents are in Chinese for now.\n\n> [!WARNING]\n> This tool can fully control your phone. An agent may tap payment, delete or send buttons — keep tool-call confirmation on in your MCP client. Not affiliated with Apple; use it only with devices and accounts you own. Read [SECURITY.md](SECURITY.md) before enabling auto-unlock.\n\n## Contributing\n\nIssues and pull requests are welcome — see the [contributing guide](CONTRIBUTING.md).\n\n## License\n\n[MIT](LICENSE). Third-party components: [THIRD_PARTY.md](THIRD_PARTY.md).\n",2,"2026-11-24 04:55:41","CREATED_QUERY"]