How to run several AI agents on one Android phone
Give each AI agent its own hidden screen on one Android phone or emulator, so they do not tap over each other. Setup for MCP and the CLI, and the limits.
Yes, several AI agents can use one Android phone at the same time, if each has a screen of its own. On Android 13 and later phonedriver gives every agent a hidden virtual screen, called a lane. Agents do not share taps or focus, and the phone's own screen stays free.
Sharing one adb connection is not enough: plain adb shell input taps the same main screen, so one agent pressing Home interrupts the other.
With MCP
Give each agent its own lane in its MCP config:
{
"mcpServers": {
"phonedriver": {
"command": "npx",
"args": ["-y", "phonedriver", "mcp"],
"env": { "PHONEDRIVER_DEVICE": "emulator-5554+a" }
}
}
}The second agent gets emulator-5554+b. With one device connected, +a and +b are enough. The name is 1 to 8 lowercase letters or digits.
With the CLI
PHONEDRIVER_SESSION=one phonedriver --device emulator-5554+a launch settings
PHONEDRIVER_SESSION=two phonedriver --device emulator-5554+b launch clock
phonedriver devicesphonedriver devices shows which session holds each lane:
ID MODEL OS TIER LEASE DISPLAY
android:emulator-5554 sdk_gphone64_x86_64 Android 17 (API 37) agent - main
android:emulator-5554+a sdk_gphone64_x86_64 Android 17 (API 37) agent one (idle 3s) hidden (display 13)
android:emulator-5554+b sdk_gphone64_x86_64 Android 17 (API 37) agent two (idle 3s) hidden (display 12)A lane closes, with the apps on it, when its session runs phonedriver release or makes no call for ten minutes.
Limits
- One app, one lane. If two lanes launch the same app, it moves to the second and the first is left on its home screen. Give each agent a different app.
- One clipboard. The lanes take turns to paste.
- Android 13 or later. iOS has no lanes.
- Tested on an emulator only. Lanes have run on an Android 17 (API 37) emulator and not yet on a physical phone. The home page has a recording of five agents on one emulator.
For one agent on a hidden screen while you use the phone, see Real Android phone.