Android emulator phones for AI agents: leases, a locked tier, and an audit trail.
pip install orion-phone Copy PIP instructions
orion-phone runs Android phones (emulators) that AI agents drive through an MCP server or a CLI: Claude Code, Codex, or any MCP client. An agent leases a phone, reads its screen, taps, types and opens apps, and every action leaves an audit record with a screenshot. A phone in the locked tier does nothing until you unlock it yourself.
Agents that share one desktop browser collide when two of them want it at once, and they cannot use apps that exist only on phones. Handing an agent your own phone is worse: everything on it is then within reach. orion-phone gives agents phones of their own, signed in to the accounts you choose, with three rules built in:
uv tool install orion-phone # or: pipx install orion-phone; from a checkout: uv tool install . orion-phone init # writes ~/.config/orion-phone/config.toml: phone a open, phone b locked # Before setup, read and accept the Android SDK License yourself: https://developer.android.com/studio/terms # (current SDK tools show the terms once and never ask again; orion-phone cannot check acceptance) orion-phone setup # SDK packages, phones, systemd user units; starts open phones orion-phone status a # exits 0 once the first boot finishes Edit the config between init and setup to add, remove or rename phones. Run setup from a desktop shell so the phone windows appear, and sign in to accounts by hand on each phone; to see a phone over Remote Desktop or WSL2, mirror it with scrcpy (see "Viewing a phone" in docs/runbooks/phone-services.md). A locked phone has no window until it is leased: follow "First boot of a locked phone" in the same runbook, which sets its screen-lock PIN before anything else.
Phone data (each phone's disk images and snapshots) lives in the AVD home, found the way the Android tools find it: ANDROID_AVD_HOME, else the avd directory inside ANDROID_USER_HOME, else ~/.android/avd. Choose it before setup, as an absolute path outside any git repository: orion-phone refuses a home inside a repository. Besides one unit per phone, setup writes orion-phone-adb-server.service, which runs the debug bridge's server on loopback port 5037; the runbook explains why it runs its own and how to upgrade from a version without it.
The MCP server is the orion-phone-mcp command, over stdio. Each server process is one lease holder, and its tools mirror the CLI.
claude mcp add --scope user orion-phone -- orion-phone-mcp # Claude Code # Codex: ~/.codex/config.toml [mcp_servers.orion-phone] command = "orion-phone-mcp" {"mcpServers": {"orion-phone": {"command": "orion-phone-mcp"}}} Do not launch the server as python -m orion_phone.mcp_server from inside a project directory, because a package named orion_phone there would shadow this one; the orion-phone-mcp command is unaffected.
H=--holder=my-agent-session # one name per agent session; never shared orion-phone lease a $H orion-phone ui a $H # elements with tap centers orion-phone tap a 540 260 $H orion-phone type a $H -- "hello world" orion-phone key a BACK $H orion-phone open a https://example.com $H orion-phone shot a $H orion-phone release a $H Add --json before the command for one machine-readable object per call. A holder name identifies one agent session: never put ORION_PHONE_HOLDER in a harness's global environment, or every session becomes the same holder.
For a local development or release-check environment, bootstrap the packaging tools separately from runtime dependencies:
python3.11 -m venv .venv .venv/bin/python -m pip install --require-hashes --force-reinstall -r bootstrap-requirements.txt .venv/bin/python -m pip install -e ".[dev]" .venv/bin/python -m pytest -q This changes only the selected virtual environment. Release preparation and exact-artifact approval are described in docs/runbooks/release-artifacts.md.
Six runs on 2026-10-07, three per task, each a fresh headless Claude Code session (claude -p) on Claude Opus 5.5, driving one open-tier phone through the MCP tools. Every run is listed.
Leases coordinate agents; they are not a sandbox. Everything a phone shows is untrusted input to an agent, and an agent that holds an open phone can do there whatever its accounts allow. Read SECURITY.md before signing a phone in to accounts that matter.
orion-phone runs Android emulators on Linux and WSL2 today. Planned, and open to contributors:
android emulator mcp model-context-protocol ai-agents claude codex agents
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.




