Let your coding agent test the Android app it just wrote.

The loop

What a coding agent knows about an Android app, with and without a phone
Code onlyWith a phone
The build compilesYesYes
The app launchesNoYes, it reads the first screen
A screen shows what it shouldNoYes, as text and a screenshot
A flow works end to endNoYes, it taps through it
Its own fix workedIt assumes soIt runs the same steps again

Paste this once the phone is connected. The agent repeats the steps until the screens match what you asked for:

Paste into your agent
Build the APK and install it on my Phonebox phone.
Open the app and walk the flow you just changed.
Read the screen before every action and after it.
If a screen is wrong, fix the code, rebuild, reinstall and run the same steps again.
Stop when the flow works twice in a row, and tell me what you changed.
Park the phone when you finish.

Connect the phone

The quickest way is to let the agent set itself up: it installs the CLI, gives you one link to sign in, and saves its own key.

Paste into your agent
Read https://phonebox.dev/setup.md and set me up with Phonebox from here: get me signed in and ready, then find out what I want to use phones for and help me with that.

Each client's own steps are in Claude Code, Cursor and Codex. To make the loop a habit, add a few lines to the instructions file your agent reads:

AGENTS.md
## Checking Android changes

Before using Phonebox, read https://phonebox.dev/skills/phonebox/SKILL.md.
After any change to a screen: build the APK, install it on the Phonebox phone,
open the screen and read it. Report what the screen shows, not what the code says.
Always park the phone when you finish, even when a step fails.

Expo and React Native

A cloud phone installs an APK, so it needs a build that runs on its own. A debug React Native build loads its JavaScript from the Metro server on your machine, which a phone in the cloud can't reach. Build a release or preview APK instead: with Expo, an EAS build with an APK profile, or npx expo prebuild followed by ./gradlew assembleRelease in the android folder.

Then the loop is the same: phonebox apps install the APK, phonebox open the package, and let the agent read the screen. For scripted React Native suites, see Detox and AI agents.

Where it stops

  • Android only. For the iOS side, use a simulator on a Mac.
  • Sign-ins and payments are yours: the agent sends a live view link and waits while you type the password or code.
  • It checks what you describe. Tell it which screens matter; "test everything" gets a shallow pass.

Questions

How can my AI coding agent test the Android app it just wrote?

Give it an Android device it can control. The agent builds the APK, installs it, reads the screen, taps through the flow it changed, and fixes what it finds. A local emulator works on your own machine; a cloud Android phone such as Phonebox works from any machine or cloud sandbox and gives the agent each screen as text.

I built an app with Cursor or Claude Code. How do I check it actually works?

Ask the agent to run it rather than only compile it: build the APK, install it on an emulator or a cloud Android phone, open it and walk the main flow, reporting what each screen shows. Review its report, then try the main flow yourself through the phone's live view.

Can Claude Code run my Android app and take screenshots?

Yes, once it has a device. With a cloud phone connected over MCP or the CLI, Claude Code installs the APK, opens the app, reads the screen as a list of elements and saves screenshots with phonebox screenshot.

Does this work for Expo apps?

Yes, with a release or preview APK. A debug build expects the Metro server on your machine, which a cloud phone can't reach, so build an APK with EAS or with npx expo prebuild and Gradle's assembleRelease, then install it on the phone.

Get started with Phonebox. New accounts start with a free 7-day trial, card required.

The Phonebox team

← All guides