mobilerun-docs
它能做什么
这项技能是 Mobilerun 的参考指南。Mobilerun 是一个工具,让 AI 智能体可以用自然语言命令操作手机。适合希望自动化移动应用的开发者和测试人员。
适用场景
- ✓当你想用自然语言让 AI 智能体控制一台安卓手机时。
- ✓当你需要 Mobilerun 的安装、配置或命令行工具方面的帮助时。
- ✓当你想了解 Mobilerun 提供哪些操作和智能体时。
技能链接
https://github.com/droidrun/mobilerun/blob/main/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我该怎样安装 Mobilerun,并连接我的安卓手机,好让智能体打开应用?”
每周 5 个新技能,1 分钟读完。
工作原理
技能提供安装命令、系统要求和架构说明。它解释规划智能体与执行智能体、可用的手机操作,以及如何设置设备。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Mobilerun
Mobilerun is an open-source (MIT) framework for controlling Android and iOS devices through LLM agents. It enables mobile automation using natural language commands.
- GitHub: https://github.com/droidrun/mobilerun
- Docs site: https://docs.mobilerun.ai
- License: MIT
- Install:
uv tool install mobilerun(Google Gemini, OpenAI, DeepSeek, Ollama, OpenRouter included by default) - Optional extras:
anthropic,langfuse - Requires: Python 3.11+, ADB, Portal APK on device
Architecture
Mobilerun uses a multi-agent architecture coordinated by MobileAgent:
- Reasoning mode (
reasoning=True): Manager plans → Executor acts → loop until done - Direct mode (
reasoning=False): CodeActAgent generates and executes Python code directly
Key agents: ManagerAgent (planning), ExecutorAgent (actions), CodeActAgent (direct execution), ScripterAgent (off-device computation), StructuredOutputAgent (typed data extraction).
Atomic actions available to agents: click, long_press, type, system_button, swipe,
open_app, get_state, take_screenshot, complete.
Repository Structure
Source code is at mobilerun/ (Python package). Key locations:
| Path | Description |
|---|---|
mobilerun/agent/droid/ |
MobileAgent orchestrator |
mobilerun/agent/codeact/ |
CodeActAgent (direct mode) |
mobilerun/agent/scripter/ |
ScripterAgent (off-device scripts) |
mobilerun/agent/oneflows/ |
StructuredOutputAgent |
mobilerun/agent/utils/ |
Tools, executor, tracing, async utils |
mobilerun/tools/ |
Device tools (ADB, iOS, portal client) |
mobilerun/cli/ |
CLI entry point (click-based) |
mobilerun/config/prompts/ |
Jinja2 prompt templates per agent |
mobilerun/config/app_cards/ |
App-specific instruction cards |
mobilerun/credential_manager/ |
YAML-based credential storage |
mobilerun/telemetry/ |
Phoenix tracing integration |
Documentation
Fetch the relevant page(s) from the docs site based on the user's question. Do not guess — always read the doc before answering.
For deeper implementation details, check the source code directly in mobilerun/.
常见问题
运行它需要什么?
技能列出 Python 3.11 或更新版本、ADB,以及设备上的 Portal APK。
如何安装?
技能给出的安装命令是 uv tool install mobilerun。
它支持哪些 AI 模型?
技能说明默认包含 Google Gemini、OpenAI、DeepSeek、Ollama 和 OpenRouter。
详情
作者的原始描述
Mobilerun documentation reference. Use when users ask about Mobilerun setup, configuration, SDK usage, CLI commands, device setup, agents, architecture, app cards, credentials, tracing, Docker, migration, structured output, or any Mobilerun "how do I..." questions.
repo: droidrun/mobilerun
热度
- GitHub 星标
- 9.9k
- 排名
- #12039
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …