Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

phone-harness

Skill by phone-harness

Controls a phone for AI assistants through Python scripts. It drives a personal iPhone via the Mac's iPhone Mirroring window, an Android over adb, or rented and hosted cloud phones. It is for users who need to open apps, tap, type, swipe and read the screen.

  • Score 91
  • 5.8k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install phone-harness

Built from the published package, never by AI.

git clone --depth 1 https://github.com/phone-harness/phone-harness /tmp/phone-harness && mkdir -p ~/.claude/skills && cp -r /tmp/phone-harness ~/.claude/skills/phone-harness

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install phone-harness in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

phone-harness is an agent skill that lets an assistant control a phone from Python scripts. The same helpers work across phone types. The personal iPhone is driven through the Mac's iPhone Mirroring window, using screenshots, Vision OCR and HID-level input. An Android is driven over adb, reading the accessibility tree where available. Cloud Android and cloud iPhone sessions are reached over HTTPS through Phone Harness Cloud.

The skill tells the assistant to pick the phone on the desk first and to use the cloud as a fallback. It asks the assistant to read the screen with screen(), act, verify each step and report progress to the user. It is for users who need a task done on a real phone, such as phone-only apps, things tied to a phone number or 2FA, or checking how something looks on a phone.

Written from the project's SKILL.md and checked against it.

What it can do

  • screen()Returns visible text as boxes with tap-ready centre coordinates.
  • tap_text()Taps the centre of visible text matching a query.
  • type_text()Types into the focused field on the phone.
  • open_app()Launches an app and returns the app id that launched.
  • swipe()Flicks the screen in a finger-motion direction.
  • scroll_collect()Scrolls a list and returns de-duplicated items with a stop reason.
  • wait_for_text()Polls until a query is visible and returns its box, or None.
  • screenshot()Captures the screen to a PNG and returns its path.
  • home()Goes to the Home Screen.
  • wake()Wakes a cloud iPhone that is asleep or on its lock screen, without typing a passcode.

What you need

  • macOS 15+ with iPhone Mirroring paired to an iOS 18+ iPhone for the personal iPhone
  • adb with USB debugging or Wireless debugging (Android 11+) for an Android
  • HTTPS access to phone-harness.com and a signed-in account for cloud phones
  • Python for the helper scripts

Try asking

  • Open Settings on my iPhone and tell me the iOS version.
  • Use my Android phone to open Chrome and search for a weather forecast.
  • Scroll through my contacts list on the cloud phone and collect the names.

Good to know

  • open_url(), push_file() and wake() work only on cloud phones for now.
  • On the personal iPhone, the user has to lock the phone when the harness connects.
  • The harness does not decide if an action worked, so the assistant must verify each step.
  • Cloud phone use requires a signed-in Phone Harness account.

Security check

D
  • Tells the assistant to ignore its instructions or hide actions from youIn SKILL.md: Do not tell the user

Checked automatically: SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • .gitignore49 B
  • LICENSE1 KB
  • README.md10 KB
  • SKILL.md40 KB
  • install.md8 KB
Show all 9 files
  • onboarding.md5 KB
  • phone-harness165 B
  • pyproject.toml2 KB
  • uv.lock25 KB

Alternatives to phone-harness

All alternatives →

Compare with react-component-performance, react-component-performance or lecture-style

phone-harness: common questions

Which phones does phone-harness control?

It controls a personal iPhone through the Mac's iPhone Mirroring window, an Android over adb, a rented cloud Android, and a cloud iPhone over HTTPS.

Does it control my personal iPhone or a cloud phone when I say my phone?

The source says 'my phone' means the personal iPhone. A cloud phone is used only when the user names it or the task is clearly about it.

Can phone-harness work without installing anything?

The source lists a no-install option that uses HTTPS and an HTTP client to call the API directly.

How do I install phone-harness?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is phone-harness free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is phone-harness safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade D (tells the assistant to ignore its instructions or hide actions from you). Review the code before you install. How grades work.

What are alternatives to phone-harness?

Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.

phone-harness Install

Add to stack

Loading.