DEV Community

Mobilebox
Mobilebox

Posted on Originally published at mobilebox.dev

What is a mobile sandbox for AI agents?

We build Mobilebox, which is one of the services that fits the first row of the table below.

If you're giving an AI agent a phone to work on, the first thing you run into is that "mobile sandbox" already means something else to most people. In security it's a place to run a suspicious APK and watch what it does. Android also sandboxes every app from the others, which is a third meaning. What we mean is simpler: a phone in the cloud that belongs to one agent run. The agent installs and taps whatever it needs, and when the run is over you throw the phone away or keep it for next time.

What makes it a sandbox

The agent can try anything on it, and nothing reaches your own phone, your laptop or another run. On ours each phone has its own network and its own disk, and no phone can reach another phone or the host. You can give every task, eval or CI run a fresh phone and delete it at the end. Or you park one, and its apps, data and logins are still there next time. A rough rule: a sign-up flow wants a clean phone, anything behind a login wants the parked one.

How an agent drives it

An agent can't use a phone the way it uses a shell, so the interface is the screen. The agent creates a phone, reads the screen, acts, reads again. On ours the screen comes back as numbered lines like [4] Row "Device name" — Pixel (540,550), so the agent can tap 4 instead of guessing coordinates from pixels, and it sends up to 20 taps, typed text and swipes in one batch.

One surprise in our testing was black screenshots. Password managers, 2FA apps, banking apps and private browsers set Android's FLAG_SECURE, and seven apps in our test returned an empty image. The element list still worked, so an agent that reads text instead of pixels keeps going. When a run goes wrong anyway, open the same phone yourself and tap through it; ours run in a browser tab for exactly that.

Where it sits next to the alternatives

Option What runs there How the agent uses it Fits when
Mobile sandbox (Mobilebox, Limrun, Mobilerun and others) Android or iPhone apps on a phone in the cloud An API or MCP server that returns the screen and takes taps The agent runs in CI or a cloud agent where no emulator can run, and you pay per minute
Local Android emulator Android on your own machine A local MCP server over ADB You work on your own machine with hardware acceleration and nothing leaves it
Device farm A test suite across many real devices Appium or a test framework, run by run A fixed suite has to pass on a device matrix
Code or browser sandbox (E2B, for example) Commands and files, or web pages A shell or a headless browser The task never leaves the terminal or the web

What ours doesn't do

Our cloud Android phones run Android 14 on arm64. Google Play, SMS and a public ADB shell aren't included, so a flow that needs a text message won't get past that screen. It isn't a malware lab either: it doesn't trace system calls or score a sample. You can install a suspicious APK, watch its screens and delete the phone, but the analysis is yours to do.


Originally published at mobilebox.dev/mobile-sandbox. Disclosure: we build Mobilebox, one of the services in this post. Written with AI assistance from our own published data; every number carries its date and source, and corrections go to hello@mobilebox.dev.

Top comments (0)