Mobilebox
Menu

Test your app's SMS and one-time-code flows on a cloud Android phone.

The receive_sms action delivers a text message to a Mobilebox cloud Android phone from any sender you name, the way a carrier SMS reaches the phone's apps. Your AI agent sends the verification code your backend would send, then reads the screen and finishes the sign-in, in the same act call over MCP or POST /v1/phones/{id}/actions over REST. The phone costs $0.01 a minute, billed per second.

Sign up with GitHub, Google or email. New workspaces get free credit, no card.

From the code your backend sends to a signed-in app.

Your test knows the code, so it sends it: no SIM, no shared inbox, no number to rent. The sender is up to 20 characters and the text up to 160, like one SMS.

Test an Android app with Claude Code
bash
# Your app is on the phone and waiting for its code
curl -X POST https://mobilebox.dev/v1/phones/$ID/actions -H "Authorization: Bearer $MOBILESANDBOX_API_KEY" \
  -H "Content-Type: application/json" -d '{"actions": [
    {"type": "receive_sms", "from": "+15550100", "text": "Your Acme code is 482913"},
    {"type": "wait_for", "text": "Enter code"},
    {"type": "tap", "target": {"text": "Enter code"}},
    {"type": "type", "text": "482913"}
  ]}'

Sending a test SMS to an Android phone

From each vendor’s own documentation, 2 December 2026.

Where the phone runsHow a test SMS arrivesPrice
Mobileboxreceive_sms action over MCP or REST, any sender name or number$0.01 a minute
Android Emulator on your machineEmulator console: sms send <number> <text>Free, on your own hardware
AWS Device FarmIts FAQ: devices “do not have carrier connections and cannot make phone calls or send SMS messages”Per device minute

Questions

SMS, one-time codes and 2FA.

How do I test an SMS verification code on a cloud Android phone?

Send it yourself: the action {"type": "receive_sms", "from": "+15550100", "text": "Your code is 482913"} delivers the message to the phone's apps, then your agent types the code or your app reads it. It works in the same act call as the taps that follow.

Can my app read the SMS itself?

Yes. An app with the SMS permission that listens for incoming messages gets it the way it gets one from a carrier.

What about codes from an authenticator app (TOTP)?

Save the site's 2FA key once under Settings → Logins in the dashboard. Your agent then types the current code with {"type": "type", "login": "example.com", "field": "totp"} and never sees the key.

Can a real service text the phone, on a real number?

Ask for it: your agent calls request_capability with the service and country it needed. Every ask is counted and shapes what we add next.

Read more

Next questions