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.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page