Automate your mobile devices with natural language commands - an LLM agnostic mobile Agent
Automate your mobile devices with natural language commands - an LLM agnostic mobile Agent
Mobilerun is an open-source framework for controlling Android and iOS devices with LLM agents.
It gives agents mobile-native tools to inspect UI state, understand screenshots, tap, swipe, type, plan multi-step workflows, and return results through a CLI or Python API.
Use the framework when you want to run the agent on your machine. Use Mobilerun Cloud when you want a ready-to-go solution for your local phones or cloud-hosted virtual/physical phones, managed infrastructure, and API-driven device workflows without running the agent on your local machine. Check out our benchmark results.
Note: Python 3.14 is not currently supported. Please use Python
>=3.11,<3.14.
Install Mobilerun with uv:
# CLI usage
uv tool install mobilerun# CLI + Python integration
uv pip install mobilerunMost LLM providers are included by default. For Anthropic support, install the optional extra:
uv tool install "mobilerun[anthropic]"uv tool install mobilerun
mobilerun setup
mobilerun configure
mobilerun run "Open settings and turn on dark mode"Before starting, make sure you have ADB installed and an Android device with Developer options and USB debugging enabled. iOS setup is supported separately through the iOS Portal flow.
mobilerun setupThis installs the Mobilerun Portal app, enables its accessibility service, and prepares the device for local control.
mobilerun pingYou should see confirmation that the Portal is installed and accessible.
mobilerun configureThe wizard walks you through choosing a provider, auth method, and model. You can also use provider environment variables such as GOOGLE_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, XAI_API_KEY, or MINIMAX_API_KEY.
mobilerun run "Open the settings app and tell me the Android version"Useful run options:
mobilerun run "Open settings and turn on dark mode"
mobilerun run "What app is currently open?" --vision
mobilerun run "Find a contact named John and send him an email" --reasoning
mobilerun run "Take a screenshot" --ios
mobilerun run "Open Settings" --steps 30 --debugRead the full framework documentation.
--vision, or use screenshot-only control with --vision-only (useful for the apps that do not have a11y tree information).--reasoning for manager-executor planning on longer or more complex tasks.| Mobilerun Framework | Mobilerun Cloud | |
|---|---|---|
| Best for | Running agents locally on your own machine and devices | Ready-to-go local phone control, hosted real or virtual devices, API workflows, and managed device operations |
| Runtime | Your machine | Mobilerun-managed infrastructure |
| Interface | CLI, Docker, and Python API | Dashboard, REST API, SDKs, and hosted devices |
Use the framework when you want full local control of the agent runtime. Use Mobilerun Cloud when you want managed devices, fleet workflows, or cloud APIs without running the agent locally. Learn more in the framework overview and the cloud docs.
| Device type | What it is | Best for |
|---|---|---|
| Personal | Your own hardware connected to Mobilerun Cloud | Quick automation on devices you own |
| Cloud Phone (Hosted) | Instantly available cloud-hosted phone | Scalable hosted automation |
| Physical Phone (Hosted) | Real hardware with stronger identity characteristics | Workflows that need high device authenticity and trust |
Give Claude Code, Codex, or another coding agent direct control of Android and iOS devices with the mobile-harness skill. Copy paste it into your agent:
Set up https://github.com/droidrun/mobile-harness for me.
Read `install.md` and follow the steps to install `mobile-harness`.The skill teaches the agent to drive local devices (ADB, Portal, iOS Simulator) and Mobilerun Cloud phones.
Shows multi-step navigation, text input, and app-state reasoning while Mobilerun searches for accommodation.
Shows browsing, app navigation, and result extraction from a natural-language task.
Contributions are welcome. Please feel free to submit a pull request or open an issue.
This project is licensed under the MIT License. See LICENSE for details.
To help catch security issues before submitting changes, run:
bandit -r mobilerun
safety scanVision only mode
Cannot run mobilerun-ios with WebDriverAgent on iOS 16.7.16, iPhone X
Add CLAUDE.md / AGENTS.md to mobilerun-portal (encode invariants)
Submit mobile-harness to anthropics/claude-plugins-community
Agent-readiness hardening — mobilerun-portal
Finish droidrun → mobilerun rename (imports + branding)
Add pytest CI to run tests on every PR
Triage & clear stale PR backlog — mobilerun repo
Please consider restoring the TUI
mobilerun 运行时,日志中显示违规信息