Give agents built with OpenAI Agents SDK, Vercel AI SDK, Mastra, LangGraph, CrewAI or Google ADK a cloud Android phone.
How does an agent framework use Phonebox?
Phonebox runs a hosted MCP server at https://phonebox.dev/mcp. It speaks Streamable HTTP and is stateless, so any framework with an HTTP MCP client can use it without a local process. The framework lists the tools, hands them to the model, and runs the calls the model makes. Each call becomes a REST request on your project's behalf, so key scopes, spending limits and the activity log apply the same way they do for the CLI and SDK.
The tools are list_phones, create_phone, get_phone, start_phone, park_phone, observe, act, reboot_phone, list_apps, install_app, create_app_upload, complete_app_upload, get_account, live_view_url, list_files, pull_file, push_file, get_clipboard, set_clipboard, get_device_info, get_location, set_location, clear_location, get_locale, set_locale, get_timezone, set_timezone, start_recording, stop_recording, list_recordings, get_recording_link, delete_recording, uninstall_app and reset_phone. A typical loop is create_phone or start_phone, then observe to read the screen as a numbered list of elements with a screenshot, then act to tap, type or swipe, and park_phone at the end.
Which frameworks work, and what does each need?
| Framework | Languages | MCP client | Watch out for |
|---|---|---|---|
| OpenAI Agents SDK | TypeScript, Python | MCPServerStreamableHttp | Runs stop after 10 turns by default; raise maxTurns |
| Vercel AI SDK | TypeScript | createMCPClient from @ai-sdk/mcp | generateText stops after one step unless you set stopWhen |
| Mastra | TypeScript | MCPClient from @mastra/mcp | maxSteps is 5 when unset; tools are named phonebox_… |
| LangChain and LangGraph | TypeScript, Python | MultiServerMCPClient from the MCP adapters | TypeScript prefixes tool names with phonebox_; Python doesn't |
| CrewAI | Python | MCPServerAdapter from crewai-tools | An agent stops after 25 iterations by default; raise max_iter |
| Google ADK | Python | McpToolset with StreamableHTTPConnectionParams | Install google-adk[mcp]; the plain package can't import McpToolset |
Which key should the agent use?
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.
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.
What if my framework isn't listed?
- Any MCP client: if it can send an
Authorizationheader over Streamable HTTP, the same URL and key work. See the MCP server reference. - No MCP: call the REST API directly, or use the TypeScript SDK and wrap its methods as your framework's tools.
- Apps that sign in: ChatGPT and Claude connect by OAuth sign-in instead of a key. See Use Phonebox in ChatGPT and Claude.
Agent framework integrations: common questions
Can I use Phonebox with LangChain, CrewAI or the OpenAI Agents SDK?
Yes. Each framework's MCP client connects to Phonebox's hosted MCP server at https://phonebox.dev/mcp with a project API key in the Authorization header, and the agent gets tools to create a cloud Android phone, read the screen, tap, type, install APKs and park the phone. Connections were checked on December 1, 2026.
Do I need to run an MCP server locally?
No. Phonebox's MCP server is hosted and stateless, so the framework connects to it over HTTPS. Nothing runs on your machine and the phone runs in Phonebox's cloud.
Is there a Python SDK for Phonebox?
Phonebox's SDK is TypeScript. From Python, use the MCP server through the OpenAI Agents SDK, LangChain or CrewAI, or call the REST API directly.