Portable operating instructions for AI agents controlling Android and iOS devices—locally or in the cloud.
Mobile Harness is a compact Markdown harness, not an agent runtime. Its primary
control path is Python's mobilerun_core, with optional client apps where
needed.
Benchmarks
We evaluated mobile-harness on AndroidWorld and iOSWorld using a standard coding
agent with app cards and persistent memory. Android used gpt-6-astra / low;
iOS used gpt-6-astra / medium and gpt-6-luna / high.
AndroidWorld tasks · iOSWorld tasks
Mean score averages the task scores. Binary pass rate counts only tasks
that received a full score of 1.0.
Explore the results and task replays for
screenshots and recorded interactions, or read the
methodology for evaluation details.
Agent Setup Prompt
Copy paste it into your agent:
Set up https://github.com/droidrun/mobile-harness for me.
Read `install.md` and follow the steps to install `mobile-harness`.
Scope
- Android through
mobilerun-core using local ADB with optional Portal, Portal HTTP-only, or cloud.
- iOS through
mobilerun-core using mobilerun-ios local HTTP, cloud, or the ios-portal app on Simulator.
Skill Install via npx (skills.sh)
Install the harness as an agent skill with the skills CLI:
npx skills add droidrun/mobile-harness
When you want to update an installed copy, run npx skills update from the same
project. First use still requires the Python setup in install.md.
Claude Code Plugin
/plugin marketplace add droidrun/mobile-harness
/plugin install mobile-harness@mobile-harness
The plugin keeps .venv/ and local/ in its data directory, which plugin
updates leave in place. First use still requires the Python setup in
install.md.
Manual Install
Install the full public control API:
cd /path/to/mobile-harness
"$(command -v python3.13 || command -v python3.12 || command -v python3.11)" -m venv .venv
.venv/bin/python -m pip install "mobilerun-core[local]"
.venv/bin/python -c "from mobilerun_core import Mobilerun; from importlib.metadata import version; print('mobilerun-core', version('mobilerun-core'), '/ mobilerun-core-local', version('mobilerun-core-local'))"
Needs Python 3.11-3.13; if none is on PATH, uv python find '>=3.11,<3.14' prints one.
Tell agents which Python runtime to use:
Use /path/to/mobile-harness/.venv/bin/python for mobile-harness.
Normal sessions check the installed dependencies and use the existing versions.
Updates happen only when requested or needed to fix a confirmed compatibility
problem. See UPDATE.md; pinned versions stay fixed unless you approve a change.
Base mobilerun-core includes cloud support through mobilerun-sdk. The
local extra installs mobilerun-core-local, which mobilerun-core uses
internally for local Android and iOS backends.
Primary API
from mobilerun_core import Mobilerun
m = Mobilerun()
device = m.connect("<cloud-device-id>", backend="cloud")
device = m.connect("R5CT123456", backend="local-android-adb")
device = m.connect(backend="local-ios-http", url="http://127.0.0.1:8080")
device = m.connect(
backend="local-android-http",
url="http://127.0.0.1:18080",
token="...",
)
device.ui()
device.screenshot()
device.start_app("com.android.settings")
After connecting, agents should use device.supports(...) before optional
operations.