Use Codex and Claude Code with a real iPhone
Let your agent read the screen, tap and verify results through iPhone-use.
Choosing a device control tool? See when to use iPhone-use, Appium or iPhone Mirroring.
Before installing
Install the published iPhone-use CLI and prepare your iPhone on the Mac where your agent runs. Plugin/skill 0.2.1 requires stable CLI 0.4.0 or later. Your client must run local Mac commands and read images. Plugins call the CLI directly without an MCP server. They provide instructions and client adapters; they do not install the CLI, create signing material or automatically connect a phone.
Start with standard mode for screenshot-based control without Runner signing. Check the tested Mac, Xcode and iPhone versions before installing.
Add the full Git repository as the marketplace, not a raw JSON URL. This is the project’s own public marketplace, not a claim of inclusion in either client’s official directory.
Codex
codex plugin marketplace add hughlee824/iphone-use
codex plugin add iphone-use@iphone-use
codex plugin list --marketplace iphone-use --jsonUse a release that exposes codex plugin --help. These command names were checked on Codex CLI 0.146.0. Confirm the installed plugin is enabled, start a new Codex task and invoke $iphone-use:iphone-use. Restart the desktop client if its plugin list has not refreshed.
If plugin add is unavailable, use a compatible client release or its desktop marketplace installer. Do not substitute Claude Code’s plugin install command.
With the plugin loaded in Codex, follow the first iPhone task to open Settings, navigate to General and verify the screenshot. You can watch the task in the local preview.
Claude Code
claude plugin marketplace add hughlee824/iphone-use
claude plugin install iphone-use@iphone-use
claude plugin list --jsonStart a new session and invoke /iphone-use:iphone-use. Interactive installation also supports /plugin marketplace add hughlee824/iphone-use and /plugin install iphone-use@iphone-use. Follow the install result if it requests a reload.
With the plugin loaded in Claude Code, follow the first iPhone task to open Settings, navigate to General and verify the screenshot. You can watch the task in the local preview.
Disable the old AgentSoma plugin before enabling iPhone-use. CLI and plugin versions are independent. Release 0.5.0 contains plugin ZIP 0.2.1; the plugin/skill minimum remains CLI 0.4.0. Update each installed channel separately and start a new client session.
More clients
The same device skill also has a DeepSeek Harness plugin and a portable installer for Cursor and OpenCode. Every client needs local shell access on your Mac and a tool that reads actual PNG screenshots. Installation, model loading and completed device tasks are separate checks; support for an adapter does not promise identical results from every model.
DeepSeek Harness
In Add plugin, choose Official npm registry and enter dsh-iphone-use. Or use the desktop profile from Terminal:
dsh plugin --profile desktop add dsh-iphone-use
dsh --profile desktop --dump-configThe adapter targets Harness 0.2.1-rc.1, with a declared range of >=0.2.1-rc.1 <0.3.0. Use the CLI bundled with your Harness installation. Restart Harness, start a new session and ask it to use the iphone-use skill. Its shell and image tools must run on the Mac connected to your iPhone.
Cursor
With Node.js 20 or later, run these commands in your project directory:
npx iphone-use-skill install --agent cursor
npx iphone-use-skill check --agent cursorThe installer writes the project skill under .cursor/skills/iphone-use. Open a new agent session in that project and ask it to use the iphone-use skill. Confirm that your selected model can inspect screenshots before starting a device task.
OpenCode
With Node.js 20 or later, run these commands in your project directory:
npx iphone-use-skill install --agent opencode
npx iphone-use-skill check --agent opencodeThe installer writes the project skill under .opencode/skills/iphone-use. Start a new session in that project with local shell and image-reading capabilities. Continue with the first-task guide to verify a complete device workflow.
Connect another local agent
Antigravity, TRAE, Gemini CLI, GitHub Copilot and Cline offer skill-based customization. You can explore using the portable iphone-use skill with their local Mac sessions. Keep the entire skill directory, including its scripts and references, and follow your client's skill installation instructions.
Before connecting a device, confirm that the client can execute the local Mac CLI, read local PNG files as images for the model, load supporting text files and retain a device session across tool calls. Choose the portable agent adapter when no dedicated adapter exists. A remote-only agent cannot control a phone connected to your Mac through a shared repository.
These additional clients are shown as portable-skill options, not as completed iPhone-use device acceptance. The packaged installer currently targets Cursor and OpenCode; do not substitute another client name in its commands. Verify skill loading, image reading and the first device task separately for your client and model.
Client guides: Antigravity · TRAE · Gemini CLI · GitHub Copilot in VS Code · Cline.
Plugins and package names
iPhone-use uses these names for its installation paths:
| Name | Purpose |
|---|---|
iphone-use | Mac CLI, installed through Homebrew or GitHub Releases |
iphone-use@iphone-use | Codex / Claude Code plugin |
dsh-iphone-use | DeepSeek Harness plugin package |
iphone-use-skill | Shared skill installer for Cursor / OpenCode |
Updates
codex plugin marketplace upgrade iphone-use
codex plugin add iphone-use@iphone-use
claude plugin marketplace update iphone-use
claude plugin update iphone-use@iphone-useUse the pair of commands for your client. Refreshing a marketplace alone may leave an older plugin installed. Start a new session and check the workflow version in the installed skill. Runner changes or expired signing can require device setup again.
For Cursor or OpenCode, run the matching pair in the project directory:
npx iphone-use-skill update --agent cursor
npx iphone-use-skill check --agent cursor
npx iphone-use-skill update --agent opencode
npx iphone-use-skill check --agent opencodeFor DeepSeek Harness, uninstall the plugin in Plugin Manager and reinstall it from the original source, then restart Harness. Plugin updates do not upgrade the CLI.
Remove a plugin
Use codex plugin remove iphone-use@iphone-use or claude plugin uninstall iphone-use@iphone-use. Remove the marketplace separately if desired. These commands do not uninstall the CLI or remove signing credentials.