Mobilerun
An open-source framework to control Android and iOS devices with LLM agents using natural language commands.
- Source repo
- droidrun/mobilerun
- Stars
- ★ 10k
- Last updated
- 28d ago v0.7.4
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 65/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Mobile QA engineers automate regression testing on Android/iOS apps.
- Not a fit if
- Users on Python 3.14 or unwilling to set up ADB and developer options
- Teams wanting only managed cloud phones, not a local agent runtime
- Website
- mobilerun.ai/framework ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-04latest release v0.7.4 (2026-10-27)+9.4 ★/day over 7 days
- Source review
- 65/100 · Some gaps
What does this agent do, and when should you use it?
Mobilerun is an open-source framework for controlling Android and iOS devices via LLM agents. It provides a CLI and Python API to let agents inspect UI state, understand screenshots, tap, swipe, type, plan multi-step workflows, and return results. The framework supports a wide range of LLM providers, including OpenAI, Anthropic, Gemini, Ollama, DeepSeek, and OpenRouter. Device control is achieved through the Portal app, with optional vision and reasoning modes for enhanced capability. It can be run locally or used via Mobilerun Cloud for managed infrastructure and device fleets.
Mobilerun accepts natural language commands via CLI, e.g., mobilerun run "Open settings and turn on dark mode". It installs the Mobilerun Portal app on devices, enables accessibility services, and connects via ADB. The framework captures UI trees and screenshots, sends them to an LLM for understanding, and executes actions like tap, swipe, and type. It supports --vision mode for screenshot analysis and --reasoning mode for complex multi-step planning. Tracing with Arize Phoenix or Langfuse is available for debugging.
- Mobile QA engineers automate regression testing on Android/iOS apps.
- Non-technical users guide their phone through complex tasks via natural language, such as booking accommodation.
- Developers automate repetitive mobile tasks like daily streaks or data extraction.
- Teams run automations across multiple devices simultaneously, such as device farms.
- Event-driven automation triggers phone actions based on schedules or notifications.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
uv tool install mobilerunuv pip install mobilerunuv tool install "mobilerun[anthropic]"
- Runtime
- Python 3.11+
- Install notes cover
- Android
How do you install or deploy this agent?
Install the CLI using uv: uv tool install mobilerun. For Python integration, run uv pip install mobilerun. To add Anthropic support, install the extra: uv tool install "mobilerun[anthropic]". Requires Python >=3.11,<3.14 and ADB installed on your system.
How do you use this agent?
- Run
mobilerun setupto install the Portal app on your device and enable accessibility. 2. Verify connection withmobilerun ping. 3. Configure your LLM provider viamobilerun configure(e.g., OpenAI, Anthropic). 4. Execute a task withmobilerun run "Open settings and tell me the Android version". Optional flags include--visionand--reasoning.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Model-agnostic with support for multiple LLM providers.
- Supports both Android and iOS with a customizable Portal app.
- Offers CLI, Docker, and Python API for flexible integration.
- Vision and reasoning modes enhance complex task handling.
- Integrated tracing and structured output for debugging and integration.
- Requires Python version range (>=3.11,<3.14), not yet supporting 3.14.
- Requires manual setup of ADB and enabling developer options and USB debugging on devices.
- iOS setup may require additional Portal flow configuration.
- Local usage requires managing LLM API keys and costs.
- For apps without accessibility trees, vision mode may be needed and could have limitations.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Mobilerun This agent | 65 · Some gaps | CLIFree + model costs | ★ 10k | 28d ago | Python | OpenAI API · Claude API |
| Damru — Android-Native Stealth Browser Automation | 47 · Major gaps | CLIFree | ★ 383 | 5mo ago | Python | — |
| Agency Orchestrator: One Sentence to Orchestrate an AI Expert Team | 71 · Some gaps | CLIFree + model costs | ★ 2.5k | 1d ago | TypeScript | Codex · Claude Code · OpenAI API · Claude API |
| ARTEX | 55 · Major gaps | — | ★ 30k | today | Go | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The CLI turns natural-language tasks into real device actions and also offers macro replay. The visible replay code has a dry-run option, stops on UI mismatch by default, and protects against ambiguous device selection, providing some user control (user_confirmation=1, external_effects=1, rollback=1). The ordinary task entry point and shown replay flow do not provide per-step confirmation or recovery. Device control is inherently broad. The setup wizard, environment variables, and Portal HTTP token show some authentication paths, but the sample does not adequately explain where screenshots, UI state, credentials, and telemetry go or how long they are retained (least_privilege=1, data_flow_transparency=1, sensitive_data_handling=1). The dependency list includes security floors and security scanning tools, but no auditable scan result is present in this packet. License and author information are visible; publisher identity remains unknown as instructed (dependency_security=2, source_attribution=1).
The README, SKILL, pyproject, and CLI are broadly consistent about Python versions, device setup, modes, and main entry points. The CLI gives useful device-selection errors, and macro replay can stop when the UI diverges. Dependencies and device-side Portal, ADB, and iOS services are identified, but the sample does not show dependency locking or service availability guarantees. The CLI calls warnings.filterwarnings("ignore"), which can hide diagnostic clues, so failure diagnosis is not comprehensive (self_consistency=2, dependency_availability=2, failure_messages=2).
The materials cover developers, QA, guided workflows for non-technical users, Android/iOS, emulators, real devices, CLI, Python, Docker, multiple model providers, and direct/reasoning modes. Environment requirements such as Python, ADB, and device Portal setup are stated. The atomic actions, platforms, and vision options outline capability boundaries, although some tools, credential, and cloud-device details asserted by the documentation skill are not fully corroborated by the supplied implementation. The intended scenarios are clear, while the skill's broad Mobilerun-help trigger is not narrowly scoped (audience_and_scenarios=3, capability_boundaries=2, trigger_precision=1, environment_fit=3).
The README clearly organizes installation, quickstart, platform support, CLI examples, framework/cloud distinctions, and documentation links; the SKILL adds a repository map and topic index. Package and project names align, and both the license file and package metadata identify MIT. The README identifies Python 3.14 as unsupported and provides security-scan commands. The packet contains no changelog or explicit maintenance/update commitment; author metadata alone does not establish a maintenance process (information_architecture=3, install_notes=3, naming_stability=2, examples_and_faq=3, known_limitations=2, license=3, versioning_changelog=1, maintenance_responsibility=2).
The CLI and Python API, UI tree and screenshots, structured output, custom tools, and macro replay provide direct outputs for mobile QA and automation. Multi-platform and multi-model support adds substantial capability. The README distinguishes when to use the local framework versus hosted cloud and explains setup requirements, but does not quantify operating costs, model-call costs, or time saved (output_usability=3, marginal_value=3, cost_benefit=2).
README claims about platforms and installation can be partly checked against pyproject versions, dependencies, entry points, and CLI/macro code. The test samples include concrete assertions for device selection and Portal HTTP wiring; the manual coordinate evaluation file also states that it requires a real device and model credentials. Benchmark figures and several product capabilities remain primarily self-reported; the documentation skill's instruction to read external documentation does not substitute for implementation evidence in this packet. Claims and evidence align in part, but are not comprehensively independently verified (claim_traceability=2, cross_source_corroboration=2, fact_inference_separation=2).
- Automation performs taps, text entry, and settings changes on connected phones. Macro replay supports dry-run, but ordinary task examples do not show step-by-step confirmation; check the target device and task before running.
- The packet does not adequately describe external transmission or retention of screenshots, UI state, credentials, or telemetry. Use care with real accounts or sensitive apps.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Highlights - Security: the lockfile moves filelock to 4.2.4, which fixes the advisories reported against 3.x. Fresh installs already resolve 4.x. - Docs: the in-repo docs/ copy is removed (it also shipped in the sdist). Documentation lives at https://docs.mobilerun.ai. The SKILL.md docs table links there. - Portal: mobilerun setup and auto-setup install Portal 0.7.28. What's Changed * Lock filelock 4.2.4 for security advisories by @RasulOs in https://github.com/droidrun/mobilerun/pull/517 …View on GitHub ↗ -
Release notes excerpt
Highlights - Fix: replies that contain only a tool call are retried when the request sent no tools. In 0.7.2 the Manager or Executor could fail with TypeError: expected string or bytes-like object when a model (e.g. Gemini 3.8 Flash in reasoning mode) returned such a reply. - Sandboxed prompt templates: prompt templates now render in a sandboxed Jinja environment. Bundled prompts are unchanged. Custom templates that mutate their inputs or access Python internals now raise SecurityError. What's Changed …View on GitHub ↗ -
Release notes excerpt
Highlights - Native tool calling in FastAgent for OpenAI, xAI and DeepSeek models. Tools go through the provider's function-calling API instead of XML in the reply text. This fixes models such as gpt-6-luna and grok-4.7 that replied without calling a tool, and DeepSeek's malformed tool markup. Set fast_agent.tool_calling: xml to keep the previous behavior. - Android without ADB: pass the Portal's HTTP URL as the device, e.g. --device http://<phone-ip>:8080 with MOBILERUN_DEVICE_TOKEN set to the token from the Portal app. …View on GitHub ↗
FAQ
What is the difference between Mobilerun Framework and Mobilerun Cloud?
Which LLM providers are supported?
What are the hardware and software requirements?
How can I debug a running task?
--debug flag, or integrate with Arize Phoenix and Langfuse for tracing and logging.Does this framework support cloud devices?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.