Skip to content
mobilebox-devPublic

Repository files navigation

Mobilebox: Cloud phones for your agents

Mobilebox: Cloud phones for your agents (hosted Android MCP server + iOS simulators)
Phones for your agents: each agent gets its own cloud Android phone over MCP, reads the screen, taps, types and installs your APK. Ready in ~1.4 s, $0.01/min, parked phones free.

Mobilebox is a hosted Android MCP server that gives your AI agent a phone it can use. Claude Code, Codex, Cursor or your own agent loop creates a cloud Android 14 phone or an iOS simulator, reads the screen as numbered elements, taps, types, installs your APK or iOS build, then parks or deletes the phone. One phone per task or pull request costs a few cents: $0.01 per phone-minute on Android, $0.03 on iOS, billed per second.

  • Measured, 2026-11-22 (method, scripts and CSV): a Mobilebox Android phone, handed over pre-booted, was ready for its first screenshot in 1.35 s (median of 10; p90 1.51 s), down from 20.0 s that morning; a large phone boots fresh in about 20 s. The scripted task cost $0.01.
  • Measured, 2026-11-08: a Mobilebox phone was ready for its first screenshot in 19.4 s (median of 10) and a 10-minute session cost $0.10. On a GitHub Actions runner, the same start took 20.3 s, against 50 s for the Android emulator with KVM and 813 s without it (one run).
  • Fair comparison: in the same benchmark Limrun started in 0.98 s ($0.04 a minute on its $20 plan), and Clousd lists a lower price ($0.004 a minute, as published on 2026-11-10). All cloud phones for AI agents, compared.

Website · Docs · Quickstart · Add to Cursor · Screenshots in every PR · MCP registry

CI Rated A on Glama Official MCP registry: dev.mobilebox/mobilebox npm: mobilebox Listed on mcpservers.org GitHub Action: android-smoke-action MIT license

Add Mobilebox to Cursor Install Mobilebox in VS Code

An agent finds the height of the Matterhorn on Wikipedia on a Mobilebox phone: 8 MCP calls, done in 24.6 s, answer 4,478 m (14,692 ft)
Phone screens are unedited API screenshots from one recorded run; steps and times are its MCP calls, from the home screen on. Playback shortened.

~18 s to a ready phone · 13 MCP tools · $0.01 per phone-minute · Android 14 arm64 phones · park and resume, apps and logins kept
Ready time: create to ready, three runs on 2026-11-04 (RUNS.md).

Works with    Claude Code    Codex    Cursor    any MCP client

  • Listed in the official MCP registry as dev.mobilebox/mobilebox, tool definitions rated A on Glama.
  • Checked on every deploy: an end-to-end run on production that uses only the public docs (create, install, tap, type, park, resume, delete over REST and MCP).

Quickstart

1. Get a key. Sign up with GitHub ($2 of credit, 200 phone-minutes) and create an agent key in the dashboard.

export MOBILESANDBOX_API_KEY=...   # keep it in your shell or secret manager, never in a prompt

2. Add Mobilebox to your agent.

claude mcp add --transport http mobilebox https://mobilebox.dev/mcp \
  --header "Authorization: Bearer $MOBILESANDBOX_API_KEY"
Codex, Cursor, a shared .mcp.json, other clients

Codex, ~/.codex/config.toml:

[mcp_servers.mobilebox]
url = "https://mobilebox.dev/mcp"
bearer_token_env_var = "MOBILESANDBOX_API_KEY"

Cursor: the Add to Cursor button above installs the URL alone and Cursor signs you in over OAuth, no key. Or .cursor/mcp.json with the key:

{ "mcpServers": { "mobilebox": { "url": "https://mobilebox.dev/mcp", "headers": { "Authorization": "Bearer ${env:MOBILESANDBOX_API_KEY}" } } } }

Claude Code, shared through a committed .mcp.json without the key in it. Keep "type": "http", or Claude Code treats the entry as a stdio server:

{ "mcpServers": { "mobilebox": { "type": "http", "url": "https://mobilebox.dev/mcp", "headers": { "Authorization": "Bearer ${MOBILESANDBOX_API_KEY}" } } } }

Gemini CLI: gemini extensions install https://github.com/mobilebox-dev/mobilebox, then /mcp auth mobilebox in Gemini to sign in (gemini-extension.json).

Other clients: any MCP client with Streamable HTTP and a custom header. Hand-written clients also send Accept: application/json, text/event-stream. The registry entry is server.json.

3. Give it a task.

Use Mobilebox. Create a phone, open Settings and tell me which Android version it runs. Delete the phone at the end, even if a step fails.

Next: let your agent test the APK you just built, or run the same check in CI. No MCP client? curl/walkthrough.sh does the whole loop over REST (OpenAPI, reference).

Watch your agent

The live view of a Mobilebox phone while an agent opens Wikipedia, types Matterhorn, opens the article and scrolls to Quick facts: a cursor moves to each target, a swipe leaves a trail, the typed text appears, and the log beside the phone captions every step, one of them failed with its reason.
A real agent on a Mobilebox phone, recorded in the live view at real speed. One step fails, and the log says why.

Open a live view of any running phone and see every step as it happens: a cursor that moves to each target, a ripple for every tap, a trail for every swipe, the text as it is typed (dots in password fields), and a caption with its time for each step. Nothing depends on sound, and screen readers announce each caption.

npx mobilebox watch <phone_id>   # with MOBILESANDBOX_API_KEY set: opens the view in its own window

Over MCP, ask your agent to show you the phone: watch_phone returns the link (REST: POST /v1/phones/{id}/view). The dashboard has a Watch button on every running phone. The view is read-only and watching is free. Try it with watch/watch.sh; details in the API reference.

Tools

Phones, apps and the screen over MCP; REST adds binary APK upload, account balance and billed sessions. Sign in once with OAuth from any MCP client that supports it (Claude, ChatGPT, Cursor, VS Code): add https://mobilebox.dev/mcp and approve. Or send your key as Authorization: Bearer.

All tools and actions (generated from the live tools/list; CI fails when it drifts)
Tool What it does Arguments (? = optional)
list_phones List this project's phones. –
create_phone Create a phone and wait until it is ready. platform?, device?, model?, display_hz?, android?, name?, idle_timeout?, max_duration?, country?, city?, network?, idempotency_key?, google?, size?, task?, auto_start?
start_phone Resume a parked phone and wait until it is ready; its apps, data and logins are kept. phone_id
park_phone Park a phone: shuts it down and stops billing. phone_id
clone_phone Copy a parked phone into new phones: same apps, data and logins, each with its own device identity (new ANDROID_IDs). phone_id, count?, name?, start?
run_maestro_flow Run a Maestro flow (YAML: appId, then steps like launchApp, tapOn, inputText, assertVisible, takeScreenshot) on a running Android phone and get pass/fail per step, the screenshots the flow took and Maestro's log. phone_id, flow?, env?, timeout_s?, run_id?
delete_phone Delete a phone and everything on it: apps, data and logins. phone_id
set_device Set where the phone is: country and city together, or timezone, locale and GPS one by one, plus the network its IP comes from or a proxy; its battery; the picture its camera app returns; Google services via microG (open source); whether it is a phone or a tablet; and a newer Android version. phone_id, timezone?, locale?, location?, proxy?, country?, city?, network?, battery?, camera_image?, google?, model?, android?, network_conditions?
install_app Install or update an app from a public download URL: an APK (arm64-v8a, 32-bit armeabi-v7a or universal) or a split bundle (.apks/.xapk; the splits this phone needs are picked), up to 2 GB; on an iPhone or iPad, a .zip of the simulator build's .app folder, which opens once installed. phone_id, url, grant_permissions?, replace?
list_apps List the apps the user installed on this phone, not the system apps. phone_id
uninstall_app Uninstall an app and delete its data. phone_id, package
app_logs Read an installed app's own log lines (Android logcat, only that app's processes, crash reports included), how its processes last ended (crash, crash_native, anr, low_memory, user_requested for a force stop, …) and its newest ANR trace (the main thread's stack). phone_id, package?, since?, lines?, level?
push_file Put a file on the phone, e.g. a game file, mod, save or document an app imports through Android's file picker: from a public download URL (up to 2 GB) or inline content. phone_id, path, url?, content?, encoding?
pull_file Read a file from the phone's shared storage (/sdcard), e.g. a log, export or save an app wrote: text comes back as text and anything else as base64, up to 100 KB; PNG and JPEG as an image, up to 1 MB (larger files: GET /v1/phones/{id}/files over REST). phone_id, path?
observe Read the current screen as a numbered element list. phone_id
act Run 1–20 actions on the phone in order (tap, type, swipe, scroll, keys, open or close apps, open links, waits) and stop at the first failure. phone_id, actions
screenshot Take a screenshot of the phone. phone_id
watch_phone Get a link to watch the phone live, for the user: its screen with each of your actions drawn on it (cursor, taps, swipes, typed text) and a caption per step. phone_id
embed_phone Get an iframe URL that shows this running Android phone live inside your own web app, for its end users (an app preview): signed, short-lived, framed only by the origin you name, which must be on the workspace's allowed list (PUT /v1/embed/origins). phone_id, origin, interactive?, ttl_seconds?
preview_app An app preview for your own web app in one call: gets the end user's phone (theirs again, started if parked, or a new one; Android at 30 Hz), installs the APK or the iOS build, or opens the Expo link in the matching Expo Go, waits until the app is on screen, and returns an iframe URL framed only by origin (on the workspace's allowed list: PUT /v1/embed/origins). platform?, apk_url?, expo_url?, ios_app_url?, end_user?, origin, interactive?, ttl_seconds?, idempotency_key?
record_screen Record the phone's screen as a video for the proof: "start" before the run, then publish_proof stops it and adds an MP4 link to the PR comment (stored and deleted with the proof's screenshots, after 30 days). phone_id, action
publish_proof Publish this run's proof for a pull request: returns Markdown to post as the PR comment (passed or failed, duration and cost from the phone's session, up to 3 screenshots, and a link to the screen recording if record_screen started one) and the screenshot URLs. phone_id, title, status, screenshots?, labels?, idempotency_key?
request_capability Tell Mobilebox what your task needed and didn't get; it's recorded and read by the team. what, why?

Actions for act: tap, long_press, swipe, scroll, scroll_to, type, key, back, home, open_app, close_app, wait, wait_for. Targets: {"text":"OK"} (best default), {"ref":3}, {"id":"com.app:id/login"}, {"desc":"Navigate up"}, {"x":540,"y":1200}. REST only: POST /v1/phones/{id}/apps (APK upload), GET /v1/account, GET /v1/phones/{id}/sessions. Full vocabulary: API reference.

Examples

Each creates a phone, checks one outcome and deletes the phone, also when the check fails. All ran against production: on 2026-11-04, and the live view example on 2026-11-05 (RUNS.md).

Example Shows Needs
curl/walkthrough.sh create, observe, act, screenshot, delete bash, curl, jq
watch/watch.sh open the live view, then act while you watch bash, curl, jq; Node for npx mobilebox
python/mobilebox.py minimal client + Settings check Python 3.9+, stdlib
typescript/mobilebox.ts minimal client + Settings check Node 24
claude-code/ Claude Code tests the APK you just built an arm64 or universal APK
github-actions/ APK smoke test in a workflow a repo secret with your key
app-builder-preview/ your product shows each user their app on a live phone: a phone per end user, Expo or APK, embed, signed webhooks, usage per user Node 20+, a public URL (a tunnel)
proof-demo-calculator a real app (a Fossify Calculator fork) where every PR gets a proof comment: last screen, steps, time, cost nothing: open its pull requests
packages/python/ mobilebox Python client and langchain-mobilebox LangChain tools Python 3.10+
integrations/ OpenAI Agents SDK, LangGraph, CrewAI, browser-use, Mastra, Vercel AI SDK, Claude Agent SDK, OpenHands, Haystack the framework and a model key

Guides

Answers to the questions people ask before they pick a phone for their agent, each with prices and measured numbers on mobilebox.dev:

Pricing

Device Price
Cloud Android 14 phone (arm64) $0.01 per phone-minute
iPhone and iPad (platform: "ios") $0.03 per phone-minute
Real Android device (device: "real") $0.01 per phone-minute
Dedicated devices from $79 per month

Billed per second while a phone is ready, with a one-minute minimum per session. Boot time and parked phones are free. New accounts start with $2 of credit; add more from the dashboard. Over 100 devices: contact sales. Pricing.

Requests and sessions
  • Up to 20 actions per act call, 256 KB of JSON per request, waits up to 55 s per call, APK uploads up to 300 MiB.
  • Phones park after 5 idle minutes (idle_timeout, 60–3,600 s) and after 15 minutes of running (max_duration, up to 3 hours).
  • All keys of a workspace (called project in the API) share its phones and balance.
  • Apps with strict root or integrity checks (e.g. Play Integrity) may not run on a cloud phone; use a real Android device for those.

Security

Each phone is an isolated Android sandbox on Mobilebox servers in Germany, reachable only through the API. Keys are per workspace, stored hashed and never logged. Mobilebox runs no model: screen content goes only to your agent.

Security model
  • Your key is a bearer token for one workspace. Every key in a workspace can see and control all of its phones and spend its balance. For a hard boundary between two agents or customers, use separate workspaces, not separate keys.
  • Agent keys only control phones. They cannot sign into the dashboard or create other keys. Revoke or rotate keys in the dashboard.
  • The phone is a sandbox, not your machine. Each phone is a cloud Android 14 phone on Mobilebox servers in Nuremberg, Germany. There is no public ADB or shell. Phones can reach the internet (or the SOCKS5 proxy you set) but not each other or Mobilebox's internal network.
  • Screen content goes to your agent, and from there to its model provider. Don't put data on a phone that you aren't allowed to send to your agent's model.
  • We don't look into phones except to fix a fault you report or when the law requires it. Park keeps apps, data and logins; delete removes them. Deleting a phone does not log out sessions on third-party servers.
  • Details: privacy policy, key security. Found a vulnerability? See SECURITY.md.

FAQ

How can I give Claude Code an Android phone? Run the claude mcp add command in the Quickstart with a Mobilebox key. Claude Code gets a cloud Android phone it can read and control, with nothing to install: no Android SDK, ADB or emulator. Walkthrough: how Claude Code tests your Android app.

Is there a hosted Android MCP server for Claude Code, Cursor or Codex? Yes: https://mobilebox.dev/mcp, Streamable HTTP, with OAuth or a bearer key. The phones run in our cloud, so it also works from CI runners and cloud sandboxes where no emulator can run. Android MCP server.

How is it different from mobile-mcp, Appium MCP or Maestro MCP? Those are free and run on your machine, driving an emulator, simulator or USB device you provide. Mobilebox brings the phone, keeps its apps and sign-ins while it is parked, and runs where your agent runs. The three local servers compared.

Local MCP server (mobile-mcp, Appium MCP) Mobilebox, hosted
Where the phone runs An emulator or USB phone on your machine Our cloud
Setup Android SDK, ADB, a system image One URL and a key
CI, sandboxes, remote dev boxes Only with nested virtualization or a device Yes
State between sessions Whatever your emulator keeps Apps, data and sign-ins kept while parked
A person watching Someone at the machine A live view link

What is the best cloud Android phone API for AI agents? It depends on what you optimise for. Limrun started faster in our benchmark, Clousd lists a lower price, and some services sell real phones by the month. Every option side by side, with published prices and measured start times: cloud phones for AI agents, compared.

Is there an E2B-style sandbox for Android apps? Yes, that is what a Mobilebox phone is: created over an API in about 1.4 s, isolated, parked for free with its state, then resumed or deleted. Android vs code sandboxes.

How can AI agents test mobile apps automatically? Give the agent a phone and your build: it installs the APK or simulator build, walks the screens, and reports what it saw with screenshots. Four routes, compared.

Can I show a live phone inside my own web app? Yes. POST /v1/phones/{id}/embed returns a signed iframe link that only your origin can frame, view-only or interactive. App previews.

What does it cost? $0.01 per phone-minute on Android and $0.03 for iPhone and iPad simulators, billed per second with a one-minute minimum. Parked phones are free. New accounts get $2 of credit.

What it isn't: a phone number. Mobilebox gives your agent the device, not telephony (no SMS or calls), and Google Play isn't on the phones: install the APK.

For agents

Install it as an agent skill (Claude Code, Codex, Cursor and others): npx skills add mobilebox-dev/mobilebox (skills/mobilebox/SKILL.md).

AGENTS.md is the operating guide: the loop, targets, error recovery and cleanup. Live versions: skill.md, llms.txt.


Questions: hello@mobilebox.dev, or open an issue. MIT for this repository; the hosted service is covered by its terms.

Releases

Packages

Contributors

Languages