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
Why run locally?
- Full control over LLM providers, including the Minitap API
- Local, BrowserStack, or Minitap cloud-device access
- Support for custom, offline, or air-gapped infrastructure
- No dependency on the removed hosted task/profile product
Next Steps
Core Concepts
Understand the architecture and components
Examples
Explore more practical examples
SDK Reference
Detailed SDK documentation
Troubleshooting
Common issues and solutions

