Give an eve agent a cloud Android phone over MCP.

Why give an eve agent a phone?

eve agents are built to call APIs and other MCP servers. Most of the apps your users live in are mobile apps with no API. Phonebox is the agent-first cloud phone: your agent uses the app the way a person does, on a cloud Android phone with its own screen, apps and sign-ins. That gives you:

  • Testing the app you just built. Install the APK, walk the changed screens and report what the agent saw.
  • Automating apps that have no API. Read a balance, change a setting, check a listing.
  • Sessions that persist across runs. Park the phone and it keeps its apps, files and signed-in accounts for the next run.

Phonebox's MCP server is hosted and stateless, so eve connects to it over HTTPS like any other remote MCP server.

Before you start

  • An eve project. To start one, run npx eve@latest init my-agent.
  • A Phonebox Agent key in PHONEBOX_API_KEY wherever the agent runs, including its deployment. Create one in API keys.

Add the connection

Create this file in your agent's connections folder:

agent/connections/phonebox.ts
import { defineMcpClientConnection } from "eve/connections";

export default defineMcpClientConnection({
  url: "https://phonebox.dev/mcp",
  description:
    "Phonebox, the agent-first cloud Android phone: create, drive and park persistent cloud Android phones.",
  auth: {
    principalType: "app",
    getToken: async () => ({ token: process.env.PHONEBOX_API_KEY! }),
  },
});

eve names the connection after the file. The model finds the server's tools with eve__search and runs them with eve__tool. eve reports each call as <connection>__<tool>, so with this filename a call to Phonebox's create_phone is phonebox__create_phone. principalType: "app" means the agent acts with your API key for every user, so nobody is asked to sign in. eve sends the key as Authorization: Bearer and never shows it to the model.

The MCP server reference lists every tool.

Keep the tool list short

A phone task rarely needs all 34 tools. eve's tools.allow limits what the model sees, which saves tokens and keeps the agent on task. Use the bare Phonebox tool names:

tools.allow
import { defineMcpClientConnection } from "eve/connections";

export default defineMcpClientConnection({
  url: "https://phonebox.dev/mcp",
  description:
    "Phonebox, the agent-first cloud Android phone: create, drive and park persistent cloud Android phones.",
  auth: {
    principalType: "app",
    getToken: async () => ({ token: process.env.PHONEBOX_API_KEY! }),
  },
  tools: {
    allow: [
      "create_phone",
      "start_phone",
      "observe",
      "act",
      "install_app",
      "live_view_url",
      "park_phone",
    ],
  },
});

eve's MCP connection guide covers tools.allow, tools.block and the other connection options.

How the agent drives the phone

The loop is simple: create_phone (or start_phone for a parked one), then observe to read the screen as a numbered list of elements plus a screenshot, then act to tap, type or swipe. act runs up to 20 actions in one call and stops at the first failure, so the agent needs fewer model calls per task. Add humanize: true to a tap, double tap, swipe or scroll for human-like input: jitter, a curved path and human timing. Open the live_view_url tool's link in your browser to watch the phone live, or take over for a sign-in.

There is no tool that deletes a phone. uninstall_app and reset_phone require confirm: true. reset_phone also needs an Admin key, which an Agent key does not have.

Keys, costs and cleanup

Create an Agent key in API keys and export it as PHONEBOX_API_KEY. An Agent key can create, start, use and park phones but can't delete them, which is the right default for an agent. Give the key an expiry, and set a monthly spending limit in Settings: it stops new sessions when it's reached.

Tell the agent to park every phone it starts. A parked phone costs nothing and keeps its apps, files and sign-ins for the next run. Phonebox also parks a phone after its idle timeout and ends a session at its maximum length, so a crashed script doesn't leave a phone running.

Phonebox's tool schemas also list context (a short reason for the call) and llm_model, which are used only for analytics. Models fill them in from the schema, so an agent needs nothing extra. The server doesn't reject a call without them, so code that calls a tool directly can leave them out.

Pricing: Starter is $20/month and includes $20 of phone time; phone time is $0.06 a minute, billed per second, with a 60-second minimum per session. See pricing.

eve: common questions

Can eve use a hosted MCP server?

Yes. defineMcpClientConnection takes a URL and connects to a remote MCP server over HTTP. For Phonebox, use https://phonebox.dev/mcp and return your project API key from getToken. eve sends it as Authorization: Bearer.

Do I need Vercel Connect or OAuth?

No. An API key fits eve's app principal, so Vercel Connect is not required. Return the project API key from getToken. Phonebox also supports OAuth sign-in for interactive clients such as ChatGPT and Claude.

Which key should the agent use?

An Agent key, exported as PHONEBOX_API_KEY. It can create, start, use and park phones and cannot delete them. Create one in API keys.

Does this work with any model eve supports?

Yes. The Phonebox connection doesn't depend on the model. Keep the connection file and change the model in eve as usual.

Do I need an Android emulator or the Android SDK?

No. The phone runs in Phonebox's cloud and the MCP server is hosted, so nothing Android-related runs on your machine.