Skip to main content

Quick Start


MobileAgent Parameters

Required

Optional Parameters


Configuration Classes

AgentConfig

FastAgentConfig
ManagerConfig
ExecutorConfig
AppCardConfig

DeviceConfig


LoggingConfig


TracingConfig


TelemetryConfig


ToolsConfig

Example - Disable specific tools:
Disabled tools will not be available to agents during execution. The default disabled_tools list disables click_at, click_area, and long_press_at. Enabling vision auto-unmasks click_at on both Android and iOS (non-normalized coordinates only); vision_only mode auto-unmasks all three. To enable click_area and long_press_at under standard vision, set disabled_tools: []. See Vision Mode for details.

CredentialsConfig


LLM Configuration

Single LLM (All Agents)

Per-Agent LLMs

LLM Keys:
  • manager - Planning (reasoning mode only)
  • executor - Action selection (reasoning mode only)
  • fast_agent - Fast Agent: Direct execution (XML tool-calling)
  • app_opener - App launching helper
  • structured_output - Final output extraction

Custom Tools


Credentials

Config Format


Custom Variables


Structured Output


Custom Prompts

Template Variables:
  • {{ instruction }} - User’s goal
  • {{ device_date }} - Device date/time
  • {{ app_card }} - App-specific instructions
  • {{ state }} - Device state
  • {{ history }} - Action history

Complete Example


YAML Config (CLI)

For CLI usage, create config.yaml:

Ollama profiles

Ollama profiles accept the same portable kwargs as other providers — max_tokens and context_window work consistently across providers, and Mobilerun translates them to Ollama’s native parameters at runtime.
The 32K default keeps Ollama on the GPU for most models. If you need the model’s full context, set context_window: -1 explicitly.

CLI Overrides

All CLI Flags:
  • --config PATH - Custom config file
  • --device SERIAL - Device serial/IP
  • --agent NAME - External agent to use. Not yet supported — reserved for future use.
  • --provider PROVIDER - LLM provider (OpenAI, Ollama, Anthropic, GoogleGenAI, DeepSeek)
  • --model MODEL - LLM model name
  • --temperature FLOAT - LLM temperature
  • --steps INT - Max steps
  • --base_url URL - API base URL (for Ollama/OpenRouter)
  • --api_base URL - API base URL (for OpenAI-like)
  • --vision/--no-vision - Enable/disable vision for all agents
  • --reasoning/--no-reasoning - Enable/disable reasoning mode
  • --tracing/--no-tracing - Enable/disable tracing
  • --debug/--no-debug - Enable/disable debug logs
  • --tcp/--no-tcp - Enable/disable TCP communication
  • --save-trajectory none|step|action - Trajectory saving level
  • --ios - Run on iOS device

Environment Variables

Set API keys via environment variables: