mobilerun

Drive real Android and iOS devices with natural-language agents

Overview

mobilerun is an open-source framework for controlling real Android and iOS devices with AI agents, aimed at mobile app testing, QA, and automated device workflows. It gives agents mobile-native tools to read UI state, interpret screenshots, tap, swipe, type, plan multi-step tasks, and return results through a CLI or Python API.

The framework is meant to run on your own machine and your own hardware, spanning real Android devices, Android emulators, iPhones over USB, and the iOS Simulator. A Portal app on the device provides the control surface, and a separate hosted offering, Mobilerun Cloud, is positioned for those who prefer managed infrastructure for local or cloud-hosted phones.

What distinguishes mobilerun is its breadth across Android and iOS plus multiple ways to drive it: CLI, terminal UI, Docker, and Python. It combines accessibility trees with screenshots for visual understanding, offers optional vision-only and reasoning modes, supports model customization through custom tools, app cards, credentials, and structured output, and allows execution tracing with Arize Phoenix or Langfuse.

Best for

  • Mobile QA engineers
  • Mobile app testers
  • Mobile automation engineers
  • Software developers building test flows
  • AI agent developers
  • Release and quality leads
  • Mobile software
  • Application development
  • Quality assurance and testing
  • DevOps and automation

How to use

  1. Install mobilerun with uv, either as a CLI tool or together with the Python integration.
  2. Install the Portal app on the device by running the setup command, which also enables its accessibility service.
  3. Verify that the Portal is installed and reachable by running the ping command.
  4. Configure the LLM provider through the configure wizard, choosing provider, authentication method, and model.
  5. Run a natural-language task, adding flags such as vision, reasoning, iOS, or step and debug limits as needed.

What it can do

Natural-language device control

Issue plain-language commands to an agent that operates Android and iOS devices. The agent can inspect UI state, understand screenshots, tap, swipe, type, and launch apps, then report back. This lets testers and developers describe a task instead of scripting each gesture.

Multiple LLM providers

Choose among OpenAI, Anthropic, Gemini, xAI, Ollama, DeepSeek, OpenRouter, and OpenAI-compatible models. A configure wizard walks through provider, authentication method, and model selection, and provider environment variables can also be used. Anthropic support is available as an optional install extra.

Vision and reasoning modes

Vision mode sends screenshots to the model, with a vision-only option for apps that lack accessibility tree information. Reasoning mode adds manager-executor planning for longer or more complex multi-step automation.

CLI and Python interfaces

Run one-off tasks, inspect devices, replay macros, and debug from the terminal, or build custom automation workflows in Python with custom tools. The same framework is also documented for terminal UI and Docker use for repeatable local environments.

Custom tools, app cards, and structured output

Extend agents with custom tools, credentials, and app-specific guidance cards to improve performance on particular use cases. Workflows can also return structured data rather than only free-form results.

Execution tracing

Trace and debug agent execution with Arize Phoenix or Langfuse, alongside saved trajectories and detailed logs, so teams can examine how a run reached its outcome.

How it works

Setup installs the Mobilerun Portal app on the target device, enables its accessibility service, and prepares local control; a ping check confirms the Portal is reachable. Provider configuration then selects a model from the supported lineup through a wizard or environment variables. Android is reached through adb or the Portal app, iPhones through mobilerun-ios over USB, and the iOS Simulator through the iOS Portal app.

Agents act on user commands and return results through the CLI or Python API. Reasoning mode adds a manager-executor planning layer for complex tasks, while tracing through Arize Phoenix or Langfuse and saved trajectories let people review what happened. The choice of provider, model, vision or vision-only mode, reasoning mode, custom tools, and app cards remains with the user configuring and supervising the run.

Supervised

The framework executes user-issued commands and multi-step plans, but provider, model, mode, and custom guidance are chosen by the operator, and tracing exists so runs can be reviewed.

Where it fits

  • Open the settings app and report the device's Android version.
  • Enable dark mode by describing the change in natural language.
  • Find a contact by name and send that person an email.
  • Take a screenshot from an iOS device through a single command.

Good fit

  • Mobile QA and testing on real Android and iOS devices using natural language commands
  • Automating multi-step mobile workflows from a CLI, terminal UI, Docker, or Python
  • Teams that want to bring their own LLM provider such as OpenAI, Anthropic, Gemini, xAI, Ollama, DeepSeek, or OpenRouter
  • Debugging agent runs with tracing tools like Arize Phoenix or Langfuse

Not a fit

  • Environments limited to Python 3.14, which the documentation says is not currently supported
  • Teams wanting managed infrastructure without running the agent locally; the source points those users to Mobilerun Cloud instead
  • Anyone expecting app automation without device-side setup, since iOS requires mobilerun-ios over USB or the iOS Portal app and Android requires ADB or the Portal app

How to evaluate

  1. Confirm your target platforms are covered: Android real devices and emulators, iOS real devices, and iOS Simulator are listed as supported with specific setup paths
  2. Check that your Python version falls within the supported range of 3.11 up to but not including 3.14
  3. Verify device prerequisites, including ADB with Developer options and USB debugging for Android, or mobilerun-ios or the iOS Portal app for iOS
  4. Decide whether vision, reasoning, or vision-only modes are needed, and confirm they suit the apps you plan to automate
  5. Confirm which LLM provider you will use and whether the optional Anthropic extra or provider environment variables fit your setup

Alternatives

AgentPricingAutonomyBest for
hermes-agent—SupervisedAI researchers, Developers, System administrators, DevOps engineers, Technical founders
deer-flow—SupervisedSoftware developers, AI and agent engineers, Research engineers, Technical teams building agent workflows, Data pipeline builders
OpenMausBot—SupervisedDevelopers and engineers, Technical founders and small product teams, DevOps and IT administrators, Operations specialists who coordinate recurring tasks, AI power users comfortable with command-line tools
Toonflow-app—SupervisedShort drama creators, Comic video producers, Storyboard artists, Previsualization artists, Video editors, Independent animators, Content studio operators
rowboat—SupervisedSoftware engineers, Engineering managers, Product managers, Support teams, Operations leads, Founders, Research and knowledge workers
artemis—SupervisedMobile QA engineers, Test automation engineers, AI coding assistant users, Android developers, CI and DevOps engineers

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/agents/mobilerun"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options