This guide will help you get Mobilerun installed and running quickly, controlling your Android device through natural language in minutes.
Prerequisites
Before installing Mobilerun, ensure you have:- Python 3.11-3.13 installed on your system
- Android Debug Bridge (adb) installed and configured
- Android device with:
- Developer options enabled
- USB debugging enabled
- Connected via USB or on the same network (for wireless debugging)
Installation
Mobilerun is installed usinguv, a fast Python package installer and resolver.
Install uv (if not already installed):
Most LLM providers (Google Gemini, OpenAI, Ollama, OpenRouter) are included by default. For additional providers, install extras:
uv tool install 'mobilerun[anthropic,deepseek]'.Set Up the Portal APK
Mobilerun requires the Portal app to be installed on your Android device for device control. The Portal app provides accessibility services that expose the UI accessibility tree, enabling the agent to see and interact with UI elements.- Downloads the latest Portal APK
- Installs it on your connected device
- Enables the accessibility service
Test Connection
Verify that Mobilerun can communicate with your device:Configure Your LLM
Run the configure wizard to choose your provider, auth method (API key or OAuth), and model:Run Your First Command via CLI
Now you’re ready to control your device with natural language:--provider- LLM provider (GoogleGenAI, OpenAI, Anthropic, etc.)--model- Model name (gemini-3.1-flash-lite-preview, gpt-4o, etc.)--vision- Enable screenshot processing--reasoning- Enable multi-agent planning mode--steps N- Maximum execution steps (default: 15)--debug- Enable detailed logging
Create a Simple Agent via Script
For complex automation or integration into your Python projects, create a script:Next Steps
Now that you’ve got Mobilerun running, explore these topics:- Walk through a Guide
- Learn about Agent Architecture
- Customize the Agent Configuration System
- Guide the agent with App Cards

