To give goose an Android phone, add Mobilebox as a remote extension: type: streamable_http in ~/.config/goose/config.yaml, uri set to https://mobilebox.dev/mcp and your API key in an Authorization header that goose fills in from the environment. goose then has 19 phone tools: it starts a cloud Android phone, installs your APK, reads the screen, taps, types, takes screenshots and stops the phone when it is done. The same config works for goose’s CLI and its desktop app.

The shortest way: let the agent do it

Paste this into goose:

text
Set up Mobilebox for me: read https://mobilebox.dev/setup.md and follow it.

It asks for your email, gets a key at once, stores it without printing it and adds the server; the 6-digit code from your inbox keeps the workspace.

Install goose

Skip this if you have it. The CLI, from goose’s own install script:

bash
curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | CONFIGURE=false bash

Then run goose configure once to pick the model provider you use.

Add the extension by hand

Put your key in your shell profile as MOBILESANDBOX_API_KEY (sign up and create one in the dashboard, or let the agent get one through setup.md) and open a new terminal. Then add this under extensions: in ~/.config/goose/config.yaml:

yaml
extensions:
  mobilebox:
    enabled: true
    type: streamable_http
    name: mobilebox
    description: Cloud Android phones and iOS simulators
    uri: https://mobilebox.dev/mcp
    env_keys:
      - MOBILESANDBOX_API_KEY
    headers:
      Authorization: Bearer $MOBILESANDBOX_API_KEY
    timeout: 300

env_keys tells goose which variable to read; it puts the value into the header when the extension starts, so the key never sits in the file. goose configure → Add Extension → Remote Extension (Streamable HTTP) writes the same entry interactively.

Or sign in without a key

Leave out env_keys and headers. goose’s docs say remote extensions that need OAuth get their client ID by Dynamic Client Registration, which Mobilebox supports: goose opens your browser, you sign in to Mobilebox and choose Allow, and the connection shows under API keys in the dashboard, where you can revoke it. We ran the key route below; the sign-in route needs a person at a browser, so we haven’t run it ourselves.

The config format comes from goose’s config files guide and using extensions, reviewed on November 23, 2026.

A real run

On November 23, 2026 we installed goose 1.60.2 with the script above, wrote exactly the config above and ran one non-interactive session against production (goose run --text "…"). We have no model API key, so the model’s turns came from a small scripted stand-in on our machine behind goose’s OpenAI-compatible provider: it asked for each next tool from the results goose sent back. Everything else was real: goose’s own MCP client, our server and a production phone. The run, shortened:

text
> Use Mobilebox: create a phone, install Fossify Notes from F-Droid, open it,
  tell me what's on screen, take a screenshot, then delete the phone.

▸ create_phone mobilebox
    name: client-demo
    max_duration: 600
ph_oo3qssdiks4t "client-demo" ready
app: com.android.launcher3 …
▸ install_app mobilebox
    phone_id: ph_oo3qssdiks4t
    url: https://f-droid.org/repo/org.fossify.notes_13.apk
Installed org.fossify.notes 1.7.0 (versionCode 13).
▸ act mobilebox
    actions: [open_app org.fossify.notes]
1. open_app ok
app: org.fossify.notes
[1] Button desc="Search" (784,146)
[2] Button desc="Create a new note" (911,146)
[3] Image desc="More options" (1027,146)
[4] TextField "Insert text here" [focused] (540,1252)
▸ screenshot mobilebox
▸ delete_phone mobilebox
    phone_id: ph_oo3qssdiks4t

With a real model, its thinking between steps adds to the time; the phone side of this run took a few seconds.

A first task

text
Start a Mobilebox phone, install the APK at <your APK URL>, walk the sign-up flow, take a screenshot of each step, then stop the phone.

goose calls create_phone, which returns the first screen, then install_app with your URL. For each step of the flow it calls act to tap or type and gets the new screen back, and screenshot when you asked for the picture. Stopping is park_phone: the phone stops billing and keeps the app and its login for the next run. Say "delete the phone" instead when you want nothing kept. watch_phone gives you a link to watch it live.

What it costs

A phone costs $0.01 a minute while it is ready, billed per second with a one-minute minimum. Boot time and parked phones are free. A sign-up walk that keeps the phone ready for 3 minutes costs 3 cents; a short check like the run above costs about a cent. The agent guide covers the observe, act, verify loop in full.