# AI use cases for Phone Harness (phone-harness/phone-harness)

Repo: [phone-harness/phone-harness](https://github.com/phone-harness/phone-harness) | Use cases: 3 | Page: https://dedupedai.com/use-cases/phone-harness-phone-harness/

phone-harness lets Claude Code, Codex or any agent use your real phone: scroll, tap, type and read the screen. It drives an iPhone through the Mac's iPhone Mirroring window, an Android over adb, or a hosted phone from Phone Harness Cloud, with no jailbreak and nothing installed on the phone.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Let your agent set up phone control: https://dedupedai.com/use-cases/phone-harness-phone-harness/let-your-agent-install-phone-harness/
- Script a phone task in Python: https://dedupedai.com/use-cases/phone-harness-phone-harness/script-a-phone-task-in-python/
- Drive a hosted phone with no device on your desk: https://dedupedai.com/use-cases/phone-harness-phone-harness/use-a-hosted-phone-from-the-cloud/

## How to let your agent set up phone control with Phone Harness

Repo: [phone-harness/phone-harness](https://github.com/phone-harness/phone-harness) | Difficulty: Intermediate | Time: 30 minutes | Basis: From the README

Send the setup prompt to your coding agent and it installs the CLI and walks you through connecting a phone.

**Who it is for:** A developer who wants an agent to open apps on a real Android.

**The problem:** Agents cannot normally touch a physical phone.

**The outcome:** A working Phone Harness install that passes the doctor check.

### Steps

1. Send the README's setup prompt to your agent, which installs Phone Harness with uv using Python 3.12
2. Let it register the skill from `phone-harness skill`
3. Connect the phone as the agent asks
4. Run `phone-harness doctor` to check the setup

### Prompt to paste into your agent

```text
Install or upgrade phone-harness with uv using Python 3.12, register the skill from phone-harness skill, then run phone-harness doctor.
```

### Caveat

The README says connecting the phone is always the user's job.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/phone-harness-phone-harness/let-your-agent-install-phone-harness/

## How to script a phone task in Python with Phone Harness

Repo: [phone-harness/phone-harness](https://github.com/phone-harness/phone-harness) | Difficulty: Intermediate | Time: 20 minutes | Basis: From the README

Pipe a short script of helper calls into Phone Harness to open an app, tap and type.

**Who it is for:** A tester who wants to repeat the same steps in the Notes app.

**The problem:** Manual tapping through the same flow wastes time.

**The outcome:** A note typed on the phone and the first screen texts printed.

### Steps

1. Run `phone-harness config set platform ios|android` to pick the default phone
2. Run `phone-harness <<'PY'` and in the script call open_app("Notes"), tap_text("New Note") and type_text("hello from the harness")
3. Print the screen text with `print([o["text"] for o in screen()][:10])`
4. End the heredoc with PY

### Prompt to paste into your agent

```text
Using phone-harness, write the heredoc script that opens Notes, taps New Note, types a line and prints the first 10 screen texts.
```

### Caveat

The README notes OCR sees text, not icons, and there is no multi-touch.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/phone-harness-phone-harness/script-a-phone-task-in-python/

## How to drive a hosted phone with no device on your desk with Phone Harness

Repo: [phone-harness/phone-harness](https://github.com/phone-harness/phone-harness) | Difficulty: Intermediate | Time: 20 minutes | Basis: From the README

Log in to Phone Harness Cloud, start a temporary Android and take a screenshot.

**Who it is for:** A team that needs several test phones without owning them.

**The problem:** Buying and wiring up phones for every test is slow.

**The outcome:** A live cloud phone session you can screenshot and then stop.

### Steps

1. Run `phone-harness cloud login` and approve in your browser
2. Run `phone-harness cloud ls` to see phones on the account
3. Run `phone-harness cloud start` for a temporary Android
4. Run a script that calls print(screenshot())
5. Run `phone-harness cloud stop` to end the session

### Prompt to paste into your agent

```text
Using phone-harness, log in to the cloud, start a temporary Android, print a screenshot, then stop the session.
```

### Caveat



Risk, platform: Phone Harness Cloud is a hosted service with its own account.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/phone-harness-phone-harness/use-a-hosted-phone-from-the-cloud/
