Skip to main content

Overview

The Mobilerun CLI lets you control Android and iOS devices using natural language commands powered by LLM agents.

Quick Start

Mobilerun creates config.yaml automatically in ~/.config/droidrun on Linux, ~/Library/Application Support/droidrun on macOS, or %LOCALAPPDATA%\droidrun\droidrun on Windows. Set MOBILERUN_CONFIG or pass --config to use another file.

Commands

Run mobilerun --version to print the installed package version.
Execute natural language commands on your device.

Usage

Flags

Pass --provider and --model together. Supplying only one causes the run to fail before the agent starts.

Examples

Provider Options

The wizard supports API-key and OAuth sign-in. MiniMax uses separate global and Mainland China endpoints, and ZAI also offers Coding API authentication.

Configuration

Override Priority

  1. CLI flags (highest)
  2. Explicit --config file
  3. MOBILERUN_CONFIG environment variable
  4. Platform config file (for example, ~/.config/droidrun/config.yaml on Linux)
  5. Built-in defaults (lowest)

Common Patterns


Troubleshooting


Environment Variables

For first-time setup, use mobilerun configure to interactively choose your provider and credentials. Environment variables below are useful for overrides and CI/CD.
Cloud device commands use MOBILERUN_CLOUD_API_KEY, not MOBILERUN_API_KEY.
Setting variables:

Next Steps