zhongerxin/iPhone-use

让 Codex 通过 USB 操作真实 iPhone:引导安装、App 自动化、实时屏幕与截图回退。

Open original source ↗

From the publisher

README & documentation

Source preview

Read the project’s overview, installation instructions and usage examples. The original README is the source of truth.

中文 · English 让 Codex、WorkBuddy 或豆包工作通过 USB 操作你的真实 iPhone。用自然语言描述任务,助手就能打开 App、读取页面、点击、滚动、输入文字、整理列表,并在侧边栏展示手机屏幕。 iPhone Use 使用 WebDriverAgent(WDA)与 iPhone 通信,包含本地 MCP 服务、安装与使用技能,以及实时屏幕 widget。它优先复用现有连接与构建;控件定位失败时,指导模型查看截图并尝试坐标点击。 插件默认向独立的 PostHog 项目及 GA4 属性发送匿名使用统计,包括实际使用开始、工具调用、连接状态、耗时、错误类别,以及显式启动的 App 标识和公开目录名称(含 batch 中已完成的启动)。使用随机安装标识,不上传手机画面、输入内容、设备标识或已安装 App 清单。设置 IPHONEUSEANALYTICS=0 或 DONOTTRACK=1 并重启 MCP 服务可关闭。详见 埋点与分析说明。 使用前,需要先在你自己的 iPhone 上安装、签名并启动 WDA Runner。 WDA 是运行在手机上的执行服务;下面的提示词和 setup 流程可以让所用宿主的助手协助完成首次安装,已有健康的 WDA 可直接复用。 2026-10-09 至 2026-10-13,完整记录见 更新记录。 将下面这段话复制到本机 Codex: 安装插件后,当前聊天可能需要重新连接才能加载工具,流程可在重连后继续。Apple 账号登录、设备信任、开发者模式及手机解锁仍需本人在系统界面完成。 仓库目前为私有,需要有 GitHub 访问权限,或者使用已取得的源代码包。 两者都支持通过 USB 操作真实 iPhone,并在侧边栏显示实时画面;共用本机的设备配置、WDA 构建和操作锁,已配置过的手机优先复用。依赖仍是 macOS、完整 Xcode、Python、Node.js / npm 和 USB iPhone,安装这两个适配版无需 Codex CLI。适配版默认关闭匿名使用统计。 将对应提示词发给本机的 WorkBuddy 或豆包工作。助手可执行本地安装;宿主界面的接入步骤若无法自动操作,会说明需要你完成的具体步骤。首次签名仍使用你自己的 Apple 账号和开发团队。 如果工具没有加载,先确认连接器已启用,再新开会话 / 本地电脑任务。两个宿主同时使用同一部手机时,按共享操作锁的提示等待,避免同时操作。详细安装、更新和排查步骤见上表链接。 Xcode 需要支持手机当前的 iOS 版本。无需越狱,也无需单独启动 Appium Server。WDA 固定使用已验证的 16.14.0 提交,下载、依赖安装、签名和构建由 setup 流程管理。 手机端使用 Appium 维护的 WebDriverAgent。首次使用时,须通过 Xcode 用你自己的 Apple 账号与开发团队签名、安装并启动 WebDriverAgentRunner。 推荐使用上面的安装提示词和下面的 iphone-use-setup 流程:Codex 获取本项目固定版本的 WDA,配置你的设备和签名,再完成构建、部署与启动;需要你完成 Apple 登录、设备信任、开发者模式或解锁时,会提示具体步骤。 如需在 Xcode 手动处理: 本对话首次使用先调用 puasetup(action="status"),复用健康服务或活动工作;缺少服务才 start 一次。start 默认最多等待 20 秒,超时后按同一 job 查询,不重复启动。服务就绪后,以 puaready 返回 ready=true 为准,再开始手机任务。设备与签名要求可参考 Appium 真机准备说明。 脚本验证并暂存源码,通过 Codex CLI 注册本地…

zhongerxin/iPhone-use on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-10-28T13:31:56.907Z

Inside the original README — Document outline
  1. iPhone Use
  2. 最近更新
  3. 用一段提示词让 Codex 安装
  4. 在 WorkBuddy 和豆包工作中安装
  5. 发给 WorkBuddy 的提示词
  6. 发给豆包工作的提示词
  7. 安装依赖
  8. 先在自己的 iPhone 上安装并启动 WDA
  9. 安装插件
  10. 连接自己的 iPhone
  11. 可以做什么
  12. 技术亮点

Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.

Links from the README

References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.

Documentation belongs to its respective authors. Reported project/model license: MIT. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.

What this repository does

让 Codex 通过 USB 操作真实 iPhone:引导安装、App 自动化、实时屏幕与截图回退。

Repository facts

Owner
zhongerxin
Primary language
Python
Stars
4,802
Forks
479
Open issues + pull requests
32
License
MIT
Archived
No
Default branch
main
Created
2026-10-06T15:09:33.000Z
Last push
2026-10-22T13:45:15.000Z

Topics and intended use

No topics were included in the latest source metadata.

Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.

Evaluate before installing

Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.

README and project files

Issues and maintenance discussion

Releases and changelog

Source and freshness

Source: GitHub. Metadata observed 2026-10-31T12:18:20.650Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related repositories

public-apis/public-apis

EbookFoundation/free-programming-books

donnemartin/system-design-primer

vinta/awesome-python

practical-tutorials/project-based-learning

NousResearch/hermes-agent