Mobilerun Docs
Answers Mobilerun setup, SDK, CLI and device questions from its docs.
Install
npx skills add droidrun/mobilerun --skill mobilerun-docs -g -a claude-code -y- Repository
- droidrun/mobilerun9.9k
- Category
- AI and agents
- Updated
- 7d ago
- License
- MIT
- Context cost
- Lightabout 1,002 tokens
- Runs scripts
- No, instructions only
What it does
Mobilerun documentation reference. Use when users ask about Mobilerun setup, configuration, SDK usage, CLI commands, device setup, agents, architecture, app cards, credentials, tracing, Docker, migration, structured output, or any Mobilerun "how do I..." questions.
Mobilerun
Mobilerun is an open-source (MIT) framework for controlling Android and iOS devices through LLM agents. It enables mobile automation using natural language commands.
- GitHub: https://github.com/droidrun/mobilerun
- Docs site: https://docs.mobilerun.ai
- License: MIT
- Install:
uv tool install mobilerun(Google Gemini, OpenAI, DeepSeek, Ollama, OpenRouter included by default) - Optional extras:
anthropic,langfuse - Requires: Python 3.11+, ADB, Portal APK on device
Architecture
Mobilerun uses a multi-agent architecture coordinated by MobileAgent:
- Reasoning mode (
reasoning=True): Manager plans → Executor acts → loop until done - Direct mode (
reasoning=False): CodeActAgent generates and executes Python code directly
Key agents: ManagerAgent (planning), ExecutorAgent (actions), CodeActAgent (direct execution), ScripterAgent (off-device computation), StructuredOutputAgent (typed data extraction).
Atomic actions available to agents: click, long_press, type, system_button, swipe,
open_app, get_state, take_screenshot, complete.
Repository Structure
Source code is at mobilerun/ (Python package). Key locations:
| Path | Description |
|---|---|
mobilerun/agent/droid/ | MobileAgent orchestrator |
mobilerun/agent/codeact/ | CodeActAgent (direct mode) |
mobilerun/agent/scripter/ | ScripterAgent (off-device scripts) |
mobilerun/agent/oneflows/ | StructuredOutputAgent |
mobilerun/agent/utils/ | Tools, executor, tracing, async utils |
mobilerun/tools/ | Device tools (ADB, iOS, portal client) |
mobilerun/cli/ | CLI entry point (click-based) |
mobilerun/config/prompts/ | Jinja2 prompt templates per agent |
mobilerun/config/app_cards/ | App-specific instruction cards |
mobilerun/credential_manager/ | YAML-based credential storage |
mobilerun/telemetry/ | Phoenix tracing integration |

