Want a faster setup? Check out the Platform Quickstart - no LLM config files needed and built-in observability!
Make sure youβve completed the Installation steps before proceeding.
Configure LLM Settings
1. Create LLM Config File
Create allm-config.override.jsonc file to configure your LLM models. This file will override the default configuration.
llm-config.override.jsonc
2. Configure Environment Variables
Create a.env file in your project root with necessary API keys:
.env
Creating Your First Automation
Letβs write a simple script that opens a calculator app and performs a basic calculation.calculator_demo.py
Run the script
1
Initialize the Agent
The agent connects to your device and starts required servers.
2
Execute the Task
The agent interprets your goal, navigates the UI, and performs the calculation.
3
Clean Up
Resources are properly released.
Getting Structured Output
Mobile-use SDK can return structured data using Pydantic models:structured_output.py
Understanding the Code
Agent Profile
AgentProfile defines which LLM models power different components of the agent.
Agent Configuration
Builders.AgentConfig provides a fluent API to configure your agent.
Running Tasks
Comparing Local vs Platform
β When to Use Local
- Full control over LLM providers
- Custom infrastructure requirements
- Offline or air-gapped environments
- Development and testing
π When to Use Platform
- Centralized configuration and management
- Built-in cost monitoring and observability
- Update tasks without code changes
Next Steps
Core Concepts
Understand the architecture and components
Examples
Explore more practical examples
SDK Reference
Detailed SDK documentation
Troubleshooting
Common issues and solutions

