Credentials. The agent signs in to apps on the cloud phone, so only use test accounts or credentials you are willing to expose to the session.
Who it is forA user with no phone on the desk, or an iPhone user who wants to test on Android, who needs an agent to complete an on-phone task.
The problemOwning a spare test phone or working from a Mac with a phone paired is not always possible.
The outcomeThe agent completes the task on a cloud phone and the session is stopped cleanly, with a saved Android written back if one was used.
What you need first
- uv installed, with Python 3.12 available
- A coding agent such as Claude Code or Codex
- Either a Mac with iPhone Mirroring, an Android phone with adb and developer options on, or a Phone Harness Cloud account
- Your own hands to pair the phone, grant Accessibility and Screen Recording, or approve adb
Steps
- Install Phone Harness with uv using Python 3.12, for example
uv tool install phone-harness. (inferred, check the README) - Run
phone-harness cloud loginand approve the request in your browser. - Run
phone-harness cloud lsto see the phones on your account, thenphone-harness cloud startorphone-harness cloud start ios. - Run
phone-harness <<'PY'on one line, thenprint(screenshot())on the next, and thenPYto confirm the phone responds. - Run
phone-harness cloud stopwhen the task is finished.
Prompt for your agent
Using the phone-harness repo at https://github.com/ShawnPana/phone-harness, start a cloud phone, complete the task <task description>, and return the final screen text. Verify with `cloud ls` that the session is stopped before you report completion.
Caveat. Only cloud Android bills by the minute, so stop the session with `phone-harness cloud stop` when the task ends.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ShawnPana/phone-harness and "Run a phone task on a rented cloud phone"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer