# Phonebox > The agent-first cloud phone: cloud Android phones that AI agents can see and control, billed per second. Phonebox gives an agent the device itself, with its screen, apps, touch and keyboard, and not a phone number. Phones park when idle and keep their apps and sign-ins. A new account starts with a 7-day free week (card required), then Starter. Plans and pricing: https://phonebox.dev/docs/billing/plans. The recommended way to start: let your agent follow https://phonebox.dev/setup.md. Your user only signs in and starts the free week from one link. ## Rules for agents - Always park a phone when you're done, even when the task failed. A phone bills from the moment it exists until it parks. - Send an `Idempotency-Key` with every create, one key for each phone you want, and repeat a create only with the same key and body. - Send an action batch again only when Phonebox's own error says nothing ran: any error in its envelope except `500 internal_error`. After any other failure, observe the screen first. - When credit runs out (`402 insufficient_credits`), give your user the link in `details` (`top_up_url`, `start_trial_url`, `start_plan_url` or `resubscribe_url`; `details.plan_state` and `next` say which), tell them plainly, and wait until they say it's done. Never retry in a loop. - When a feature needs a plan (`403 plan_required`), tell your user the sentence in `next`, which ends with `details.upgrade_url`, and wait until they say it's done. - Offer to run a task on a schedule only when it repeats by nature, such as testing every build or a daily check: [Run it every day](https://phonebox.dev/docs/guides/run-on-a-schedule). Say nothing about scheduling after a one-off task. - Treat a live view link as a credential. Whoever opens it controls the phone, and every account signed in on it, until it expires, so give it only to your user. ## Start here - [Agent skill](https://phonebox.dev/skills/phonebox/SKILL.md): Set up and drive Phonebox from a coding agent. - [Quickstart](https://phonebox.dev/docs-markdown/getting-started/quickstart) - [OpenAPI specification](https://phonebox.dev/openapi.json) - [MCP server](https://phonebox.dev/docs-markdown/interfaces/mcp) - [Complete documentation](https://phonebox.dev/llms-full.txt) ## Guides - [Give your coding agent an Android device](https://phonebox.dev/guides/give-your-agent-android): Connect Claude Code, Codex or Cursor to a cloud Android device with Phonebox. Read a screen, run a first task and park the phone when done. - [Cloud phones for AI agents: what they are, how to choose](https://phonebox.dev/guides/cloud-phones-for-ai-agents): What a cloud phone for AI agents is, how agents control Android apps over MCP and APIs, and how to choose between cloud phones, device farms and more. - [Android MCP server for Claude Code, Cursor and Codex](https://phonebox.dev/guides/android-mcp-server): A hosted Android MCP server for Claude Code, Cursor and any MCP client: cloud Android phones that read the screen, tap, type and install APKs. No ADB. - [Test your Android app with an AI agent](https://phonebox.dev/guides/test-android-app-with-ai): Let Claude Code, Codex or Cursor build your APK, install it on a cloud Android phone, explore the screens it changed and report bugs with the exact screen text. - [Cloud Android emulator, billed by the second](https://phonebox.dev/guides/cloud-android-emulator): Run Android in the cloud instead of a local emulator: start a phone with one API call, install any APK, drive it from code or an agent. $0.06 a minute. - [Best cloud phones for AI agents in 2026, compared](https://phonebox.dev/guides/best-cloud-phones-for-ai-agents): The best cloud phones for AI agents in 2026: Phonebox vs Mobilerun, Limrun, Mobile Next, Appetize, Genymotion, GeeLark, BrowserStack and AWS. - [Phonebox vs Mobilerun](https://phonebox.dev/guides/phonebox-vs-mobilerun): Phonebox vs Mobilerun for AI agents: Android phones billed by the second, or monthly plans with a bundled agent, iPhones and SMS. Costs compared. - [Genymotion Cloud alternative for AI agents](https://phonebox.dev/guides/genymotion-cloud-alternative): A Genymotion Cloud alternative for AI agents: persistent cloud Android phones with hosted MCP, CLI and SDK, $0.06 a minute, parked phones free. - [Give Claude Code an Android phone (MCP): video](https://phonebox.dev/guides/give-claude-code-an-android-phone): Watch Claude Code drive a real cloud Android phone in 56 seconds: one command, the screen as text, taps, human handoff and parking. Full transcript. - [Claude Code Android MCP server setup (video)](https://phonebox.dev/guides/claude-code-android-mcp-server-setup): The Android MCP server setup for Claude Code in 3 minutes: one command, then a real run that installs an APK, reads the screen and taps. Transcript. - [Give Codex an Android phone (Android MCP server)](https://phonebox.dev/guides/give-codex-an-android-phone): Give OpenAI Codex a real cloud Android phone: add Phonebox's hosted Android MCP server to ~/.codex/config.toml. Reads the screen, taps, installs APKs. - [Give Cursor an Android phone (Android MCP server)](https://phonebox.dev/guides/give-cursor-an-android-phone): Give Cursor's agent a real cloud Android phone: add Phonebox's hosted Android MCP server to mcp.json, then build, install and test your app without an emulator. - [How an AI agent can use Android apps with no API](https://phonebox.dev/guides/android-automation-with-ai): How an AI agent can use Android apps with no API: the app's API, AppFunctions, Gemini, accessibility agents or a cloud phone of its own. - [Phonebox vs Limrun](https://phonebox.dev/guides/phonebox-vs-limrun): Phonebox vs Limrun for AI agents: persistent Android phones billed by the second, or iOS simulators, emulators and remote builds on credit plans. - [How to give Claude Code an Android phone: every option](https://phonebox.dev/guides/how-to-give-claude-code-an-android-phone): Every way to give Claude Code an Android phone: USB and ADB, scrcpy, a local emulator, mobile-mcp, or a hosted cloud phone over MCP, with commands. - [Give Gemini CLI an Android phone (Android MCP server)](https://phonebox.dev/guides/give-gemini-cli-an-android-phone): Give Gemini CLI a real cloud Android phone: add Phonebox's hosted Android MCP server with gemini mcp add or settings.json. No ADB, no emulator. - [Give Windsurf an Android phone (Android MCP server)](https://phonebox.dev/guides/give-windsurf-an-android-phone): Give Windsurf's Cascade agent a real cloud Android phone: add Phonebox's hosted Android MCP server to mcp_config.json and test your app without an emulator. - [Give Cline an Android phone (Android MCP server)](https://phonebox.dev/guides/give-cline-an-android-phone): Give Cline a real cloud Android phone: add Phonebox's hosted Android MCP server to cline_mcp_settings.json as streamableHttp. No ADB, no emulator. - [Give GitHub Copilot an Android phone (Android MCP server)](https://phonebox.dev/guides/give-github-copilot-an-android-phone): Give GitHub Copilot agent mode a real cloud Android phone: add Phonebox's hosted Android MCP server to .vscode/mcp.json with a secure key prompt. - [Phonebox vs Mobile Next](https://phonebox.dev/guides/phonebox-vs-mobile-next): Phonebox vs Mobile Next for AI agents: persistent Android phones billed by the second, or isolated real-device sessions and open-source mobile-mcp. - [Phonebox vs Appetize](https://phonebox.dev/guides/phonebox-vs-appetize): Phonebox vs Appetize for AI agents: persistent Android phones over a hosted MCP server, or disposable iOS and Android emulator sessions. Costs compared. - [Phonebox vs BrowserStack for AI agents](https://phonebox.dev/guides/phonebox-vs-browserstack): Phonebox vs BrowserStack for AI agents: a cloud Android phone your agent keeps, or a real-device farm for QA suites on annual plans. Compared. - [Give your AI assistant its own Android phone](https://phonebox.dev/guides/give-your-ai-assistant-its-own-phone): Give a personal AI assistant its own cloud Android phone: it uses apps with no API, stays signed in, and hands you the phone for payments and codes. - [Mobile infrastructure for AI agent products](https://phonebox.dev/guides/phones-for-your-ai-product): Mobile infrastructure for AI agent products: a persistent cloud Android phone per customer, sign-in handoff, scoped keys and per-customer costs. - [Android checks in GitHub Actions without an emulator](https://phonebox.dev/guides/android-ui-tests-in-github-actions-without-an-emulator): Run Android smoke checks in GitHub Actions on a cloud Android phone instead of an emulator: build, install, check the screen, park. Workflow included. - [Test location-based Android apps with an AI agent](https://phonebox.dev/guides/test-location-based-android-apps-with-ai): Test a location-based Android app from any city: set a cloud phone's GPS location and timezone, then let an AI agent check what the app shows there. - [Test Android deep links and push notifications with AI](https://phonebox.dev/guides/test-android-deep-links-and-push-notifications): Test Android deep links and push notifications with an AI agent on a cloud phone: open each link, check where it lands, tap the notification. - [What are cloud phones for AI agents? (video)](https://phonebox.dev/guides/what-are-cloud-phones-for-ai-agents): What are cloud phones for AI agents? A 2½-minute explainer: why agents need phones, how they compare with emulators and device farms, and how agents drive one. - [Give Cursor an Android phone (MCP): video](https://phonebox.dev/guides/give-cursor-an-android-phone-video): Watch Cursor's agent drive a real cloud Android phone in 56 seconds with Phonebox: one entry in mcp.json, the screen as text, taps, handoff, parking. - [Give Codex an Android phone (MCP): video](https://phonebox.dev/guides/give-codex-an-android-phone-video): Watch Codex drive a real cloud Android phone in 57 seconds with Phonebox: three lines in config.toml, the screen as text, taps, human handoff, parking. - [Appium MCP vs mobile-mcp vs hosted Android MCP](https://phonebox.dev/guides/appium-mcp-vs-hosted-android-mcp): Appium MCP vs mobile-mcp vs Maestro MCP vs a hosted Android MCP server: setup, what each needs installed, and which works in CI and cloud sandboxes. - [Best Android MCP servers in 2026, compared](https://phonebox.dev/guides/best-android-mcp-servers): The best Android MCP servers in 2026: mobile-mcp, Appium MCP, Maestro, agent-device, Android-MCP and Phonebox, compared on setup, devices and iOS. - [Maestro testing and AI agents](https://phonebox.dev/guides/maestro-testing-and-ai-agents): Maestro testing and AI agents: YAML flows for known journeys, an agent on a cloud Android phone for exploratory checks, and bugs turned into flows. - [AI QA testing for Android apps](https://phonebox.dev/guides/ai-qa-testing-android-apps): AI QA testing for Android apps: AI QA services and tools compared, build vs buy, what a good agent bug report looks like, and what a QA pass costs. - [Android emulator online (2026): options compared](https://phonebox.dev/guides/android-emulator-online): Android emulator online in 2026: TestingBot, Appetize, Genymotion, BrowserStack, APK Runner and Phonebox compared on free time, APKs and saved state. - [Run an APK online in your browser (and .aab files)](https://phonebox.dev/guides/run-apk-online): Run an APK online in your browser: upload it to a cloud Android phone, convert an .aab with bundletool, size limits, and fixes for failed installs. - [Android emulator in Codex cloud and Claude Code on the web](https://phonebox.dev/guides/android-emulator-in-cloud-sandboxes): Can Codex cloud, Claude Code on the web, Copilot or Cursor cloud agents run an Android emulator? What each sandbox allows, and a cloud phone over HTTPS. - [Android accessibility testing with an AI agent](https://phonebox.dev/guides/android-accessibility-testing-with-ai): Android accessibility testing with an AI agent: 48dp and contrast thresholds, Accessibility Scanner, Espresso and Compose checks, and agent audits. - [Appium testing and AI agents (2026)](https://phonebox.dev/guides/appium-testing-and-ai-agents): Appium testing and AI agents: Appium 3 setup, the official Appium MCP server, device-farm pricing, and an agent checking each build on a cloud phone. - [Android UI testing without writing code: 10 options](https://phonebox.dev/guides/android-ui-testing-without-code): Android UI testing without code: Maestro, Espresso Test Recorder, Repeato, testRigor, Katalon, Kobiton, Firebase's App Testing agent and AI agents. - [Reproduce Android bugs with an AI agent](https://phonebox.dev/guides/reproduce-android-bugs-with-ai): Reproduce Android bug reports with an AI agent: it installs the build on a cloud phone, follows the ticket while recording, and returns video and steps. - [AI test prompts for Android apps](https://phonebox.dev/guides/ai-test-prompts-for-android-apps): Copy-paste AI test prompts for Android apps: smoke checks, exploratory testing, bug reproduction, accessibility and release checks for coding agents. - [BrowserStack alternatives for Android app testing (2026)](https://phonebox.dev/guides/browserstack-alternatives): BrowserStack alternatives for Android app testing in 2026: TestMu AI, Sauce Labs, AWS Device Farm, Kobiton, Genymotion and Phonebox, with prices. - [Firebase Test Lab is shutting down: alternatives](https://phonebox.dev/guides/firebase-test-lab-alternative): Firebase Test Lab shuts down on September 30, 2027. Compare Developer Device Platform, device clouds and an AI agent on a cloud phone as alternatives. - [What is agentic testing? A definition for mobile teams](https://phonebox.dev/guides/what-is-agentic-testing): Agentic testing for mobile apps: an AI agent plans and runs each step from a goal. How it differs from scripted testing, its limits, and how to try it. - [Mobile app testing tools in 2026](https://phonebox.dev/guides/mobile-app-testing-tools): Mobile app testing tools in 2026: Espresso, UI Automator, Appium, Maestro, Detox, Patrol, device clouds, AI QA tools and agents on cloud phones. - [Detox testing and AI agents for React Native](https://phonebox.dev/guides/detox-testing-and-ai-agents): Detox testing for React Native and AI agents: gray-box end-to-end tests on an emulator, plus an AI agent checking each release APK on a cloud Android phone. - [Flutter integration tests, Patrol and AI agents](https://phonebox.dev/guides/flutter-integration-tests-and-ai-agents): Flutter integration_test, Patrol and AI agents compared: scripted Dart end-to-end tests on an emulator, and an agent checking builds on a cloud phone. - [AI exploratory testing for Android apps](https://phonebox.dev/guides/ai-exploratory-testing-android): AI exploratory testing for Android apps: charters an agent can follow, a timeboxed session on a cloud phone, real screen output, reports and cost. - [How AI agents use mobile apps](https://phonebox.dev/guides/how-ai-agents-use-mobile-apps): How AI agents use mobile apps: the observe-act loop, screenshots vs the accessibility tree, failure recovery, and on-device, local and cloud phones. - [Cloud Android phone APIs compared](https://phonebox.dev/guides/cloud-android-phone-api): Cloud Android phone APIs compared: Phonebox, Genymotion, Appetize, AWS Device Farm, BrowserStack, Limrun, Mobilerun and GeeLark, plus curl examples. - [Monitor an Android app's screen automatically](https://phonebox.dev/guides/monitor-android-app-screen): Monitor an Android app's screen on a schedule: a signed-in cloud phone reads the value as text and posts it to your webhook. Script, cron and cost. - [How to run Android apps on a Mac in 2026](https://phonebox.dev/guides/android-emulator-on-mac): Run Android apps on a Mac: Android Studio's emulator on Apple silicon, Genymotion, BlueStacks Air, scrcpy, or a cloud phone in the browser. Costs compared. - [Android emulator for iPhone and iPad](https://phonebox.dev/guides/android-emulator-for-iphone): Android emulator for iPhone and iPad: why the App Store has none, and what works instead: cloud Android phones in Safari and browser app previews. ## All pages - [Introduction](https://phonebox.dev/docs-markdown): Phonebox gives AI agents cloud Android phones they can see and control. - [Quickstart](https://phonebox.dev/docs-markdown/getting-started/quickstart): Set up from your terminal with one command, then create, read, control and park your first phone. - [Set up with your coding agent](https://phonebox.dev/docs-markdown/getting-started/coding-agent): Paste one prompt into Claude Code, Codex or Cursor. Your agent signs you up from the terminal, asks what you want phones for, then helps with it. - [Authentication and keys](https://phonebox.dev/docs-markdown/getting-started/authentication): Project API keys, the Agent, Admin and Read-only presets, scopes, keys limited to certain phones, and expiry. - [Concepts](https://phonebox.dev/docs-markdown/getting-started/concepts): Phones, sessions, statuses, parking, timers, billing and limits. - [Invite your team](https://phonebox.dev/docs-markdown/getting-started/team): Share a project with your team, what owners, admins and members can do, and what happens when someone leaves. - [Lifecycle and timers](https://phonebox.dev/docs-markdown/using-phones/lifecycle): Create, wait for, start, renew, park, update and delete phones, and handle failures. - [Observe the screen](https://phonebox.dev/docs-markdown/using-phones/observe): Read the screen as JSON or as compact text, with optional screenshots, and use snapshots to act on elements by ref. - [Actions and targets](https://phonebox.dev/docs-markdown/using-phones/actions): Every action type, how targets find elements, the rules of a batch, and what to do when an action fails or its outcome is unknown. - [Apps](https://phonebox.dev/docs-markdown/using-phones/apps): List, install, open and uninstall apps on a phone, your own APKs included. - [Files](https://phonebox.dev/docs-markdown/using-phones/files): Upload, download, list and delete files in a phone's shared storage. - [Device settings](https://phonebox.dev/docs-markdown/using-phones/device): Read a phone's device info, set its clipboard, location, locale and timezone, record its screen, and reboot or reset it. - [Live view and human handoff](https://phonebox.dev/docs-markdown/using-phones/live-view): Create a link that lets a person watch and control a phone in the browser, for sign-ins and other steps your agent shouldn't take alone. - [REST API](https://phonebox.dev/docs-markdown/interfaces/rest): The base URL, authentication, JSON conventions, errors, request IDs, idempotency, pagination, waiting and rate limits. - [CLI](https://phonebox.dev/docs-markdown/interfaces/cli): Install the phonebox CLI, set its environment, and use every command, its output and its exit codes. - [TypeScript SDK](https://phonebox.dev/docs-markdown/interfaces/sdk): Drive phones from Node.js with the phonebox package, its Phone methods, its errors, and how it retries and waits. - [MCP](https://phonebox.dev/docs-markdown/interfaces/mcp): Connect Claude Code, Cursor or any MCP client to the hosted Phonebox server, and use its tools. - [Agent skill](https://phonebox.dev/docs-markdown/interfaces/skill): The Phonebox skill file teaches a coding agent the whole workflow. Install it in Claude Code, or point any agent at it. - [Conventions](https://phonebox.dev/docs-markdown/api-reference): The conventions every API request follows, from authentication and idempotency to pagination, rate limits and money, and the list of endpoints. - [Phones](https://phonebox.dev/docs-markdown/api-reference/phones): Create, list, get, update, delete, start, park and keep phones awake, and the phone object these endpoints return. - [Sessions](https://phonebox.dev/docs-markdown/api-reference/sessions): List a phone's billed sessions, with when each one ran, why it ended and what it cost. - [Observe](https://phonebox.dev/docs-markdown/api-reference/observe): Read the screen as numbered elements or compact text, and take screenshots with their scale. - [Actions](https://phonebox.dev/docs-markdown/api-reference/actions): Run a batch of actions, with every action type, target form and limit, the result format, and the errors of a batch and of each action. - [Apps](https://phonebox.dev/docs-markdown/api-reference/apps): Search the app library, list a phone's installed apps, install apps from a link, your own APK or the library in the background, follow the installs, and uninstall apps. - [Uploads](https://phonebox.dev/docs-markdown/api-reference/uploads): Upload your own APK, such as the debug build your coding agent just made, so you can install it on any of your phones. - [Files](https://phonebox.dev/docs-markdown/api-reference/files): List, upload, download and delete files in a phone's shared storage, and the rules for their paths. - [Device](https://phonebox.dev/docs-markdown/api-reference/device): Read the phone's device info, read and set the clipboard, location, locale and timezone, and reboot or reset a phone. - [Recordings](https://phonebox.dev/docs-markdown/api-reference/recordings): Record a phone's screen, stop the recording, list a phone's recordings, download a video and delete a recording. - [Live](https://phonebox.dev/docs-markdown/api-reference/live): Create a link that lets a person watch and control a phone in a browser, and how long it lasts. - [Account](https://phonebox.dev/docs-markdown/api-reference/account): Read the project's balance, reservations, monthly spending, limits, phone counts, price, countries, starter credit, top-up link and plan, and create a checkout link for credits. - [Terminal setup](https://phonebox.dev/docs-markdown/api-reference/setup): The two requests a terminal or an agent makes to get an API key without the console, after a person confirms a short code in the browser. - [Errors](https://phonebox.dev/docs-markdown/api-reference/errors): The error envelope, what next, details and retryable mean, and every code the API and the MCP server can return. - [Test your Android build with a coding agent](https://phonebox.dev/docs-markdown/guides/test-android-builds): Install the APK your coding agent just built on a Phonebox phone in one command, check its version, then have the agent walk the new screens and report what it saw. - [Run it every day](https://phonebox.dev/docs-markdown/guides/run-on-a-schedule): Three recipes for work that repeats, such as a nightly APK smoke test in GitHub Actions, a cron job with the SDK, and a scheduled agent on a signed-in phone. Each checks the credit first and always parks the phone. - [Build a multi-tenant product](https://phonebox.dev/docs-markdown/guides/multi-tenant): Give each of your end users their own phone, tag phones with metadata, limit keys to one customer's phones, and park phones between uses. - [Keep costs down](https://phonebox.dev/docs-markdown/guides/keep-costs-down): Park phones explicitly, keep idle timeouts short, cap sessions, mind the one-minute minimum, send heartbeats only while someone watches, and set a spending limit. - [Sign in to apps and hand off to a human](https://phonebox.dev/docs-markdown/guides/sign-in-and-handoff): Drive a sign-in with actions, hand the phone to a person with a live view link when they must enter a code or pass a check, wait for them, and park the phone signed in. - [Plans](https://phonebox.dev/docs-markdown/billing/plans): Starter, Pro and Enterprise, the free week, and what changes when a plan changes or ends. - [Pricing and credits](https://phonebox.dev/docs-markdown/billing/pricing): $0.06 per phone-minute, billed per second with a one-minute minimum, paid from plan credit and top-ups, with reservations and a monthly spending limit. - [Limits](https://phonebox.dev/docs-markdown/billing/limits): Every limit on phones, requests, batches, files, links and spending, what happens when you reach one, and how to ask for more. - [Phone won't start](https://phonebox.dev/docs-markdown/troubleshooting/phone-wont-start): Why a create or start is refused, what a failed phone means, and how long a phone has to become ready. - [Actions fail](https://phonebox.dev/docs-markdown/troubleshooting/actions-fail): What to do when a target isn't found, matches several elements or has gone stale, when there is nowhere to type, and when a wait runs out. - [The screen reads empty](https://phonebox.dev/docs-markdown/troubleshooting/empty-screen): Why an observation can list few or no elements, how to work from screenshots and coordinates instead, and what truncated means. - [Unknown outcomes](https://phonebox.dev/docs-markdown/troubleshooting/unknown-outcomes): What action_outcome_unknown means, why Phonebox never retries a write for you, and how to observe and decide what to do next. - [Terms of Service](https://phonebox.dev/docs-markdown/terms): Accounts, acceptable use, plans, payments and responsibilities. - [Privacy Policy](https://phonebox.dev/docs-markdown/privacy): What Phonebox collects, why, and how long we keep it. - [Cookie Policy](https://phonebox.dev/docs-markdown/cookies): The cookies and browser storage Phonebox uses, and why.