让你的智能体控制你的手机。
phone-harness · 让你的智能体控制你的手机。
将 Claude Code、Codex 或任何智能体连接到你的真实手机。iPhone 通过 Mac 的 iPhone 镜像窗口,Android 通过 macOS、Linux 或 Windows 上的 adb。无需越狱、无需 Xcode、无需在手机上安装任何东西。智能体可以看到屏幕、点击、输入并读取结果。
● agent: wants to open Weather
│
● find_text("Weather") → (400, 468)
│
● tap(400, 468) → reads the screen → forecast is up
✓ done试试 Phone Harness Cloud → 托管的 iPhone 和 Android 设备,支持隐身、真实号码、2FA 以及无限设备
将 设置提示 发送给你的编码智能体即可开始使用。
任务: “从我的当前位置帮我叫一辆 Waymo 去 Delah Coffee。”
https://github.com/user-attachments/assets/80b6d38e-0222-481c-93db-9de60d79247a
粘贴到Claude Code或Codex中:
Set up phone-harness for me. Clone https://github.com/ShawnPana/phone-harness into ~/.phone-harness, read `install.md` first, install it so `phone-harness` is a command on my PATH, and register it as an agent skill named phone-harness using `phone-harness skill` as the body. Then read `onboarding.md` and walk me through it.代理会询问哪部手机是你的默认设备,并引导你完成需要手动操作的部分:配对iPhone镜像以及授予辅助功能和屏幕录制权限,或开启Android开发者选项并批准adb。
phone-harness --doctor会检查整个链路。详情见install.md。
phone-harness <<'PY'
open_app("Notes")
tap_text("New Note")
type_text("hello from the harness")
print([o["text"] for o in ocr()][:10])
PY辅助函数已预先导入。SKILL.md是代理的日常指南;helpers.py是完整列表。
iPhone。 iPhone镜像将手机渲染为Mac窗口,并转发m
暂无开放 Issues,或尚未同步最近议题。