Open-AutoGLM Phone Agent

Automate your phone with natural language: multimodal screen understanding and hands-free operation.

Stars
★ 27k
Last updated
9mo ago
FARS reviewed
Nov 07, 2026
License
Apache-2.0
Primary language
Python

At a glance

How it runs
CLILibrary / SDK
Works with
Portable with changes
Cost
Free software; you pay for model usage
Setup effort
High · needs real infrastructure
You'll need
Python 3.10+ADB (Android)HDC (HarmonyOS)Shell / CLINetwork accessLocal filesystem
Typical use
Developers automating end-to-end test flows on Android apps, such as sign-up, login, and purchase flows.
Not a fit if
  • Users without a physical Android or HarmonyOS device
  • Non-technical users unwilling to set up ADB/HDC and ADB Keyboard
Website
autoglm.z.ai/blog ↗ set on GitHub
Maintenance
No commits for 6+ monthslast commit 2026-03-06+6.7 ★/day over 7 days

What does this agent do, and when should you use it?

Open-AutoGLM is an open-source phone agent framework that controls Android or HarmonyOS devices via ADB or HDC. It uses a vision-language model to understand screen content and a planning module to execute tasks described in natural language. The system supports multimodal perception, automated action generation, confirmation for sensitive operations, and human takeover. It includes remote debugging capabilities and both CLI and Python API. The repository provides models (AutoGLM-Phone-9B and Multilingual variant) downloadable from Hugging Face or ModelScope, plus integration with third-party model services like Zhipu BigModel. It supports over 50 mainstream Chinese Android apps and 60+ HarmonyOS apps out of the box. The project is intended for research and learning, with an explicit non-commercial clause.

Reads natural language instructions (e.g., 'Open Meituan and search for hotpot restaurants nearby'), sends the current screen screenshot to an AutoGLM vision-language model (e.g., AutoGLM-Phone-9B) which outputs a structured action sequence, then executes those actions (tap, swipe, type, launch) on the device through ADB or HDC, looping until the task is complete. It provides a CLI (main.py) with interactive and single-task modes, a Python API (PhoneAgent class), custom callbacks for confirmation and takeover, remote device connection (adb connect/hdc tconn), multi-device selection (--device-id), and configurable system prompts (--lang en/cn). It integrates with Midscene.js for cross-platform automation and offers deployment guides for vLLM/SGLang and third-party services.

  1. Developers automating end-to-end test flows on Android apps, such as sign-up, login, and purchase flows.
  2. Individuals who want to delegate tasks to their phone, like comparing product prices across apps and placing an order.
  3. QA engineers running repeated regression tests on HarmonyOS devices using HDC.
  4. Researchers reproducing or extending state-of-the-art mobile GUI agents based on AutoGLM.
  5. Business users integrating phone-based operations into their workflows, like collecting data from WeChat and filling forms.
  6. Remote operators controlling unattended Android devices over Wi-Fi for automation.

How do you install or deploy this agent?

  1. Clone the repo: git clone https://github.com/zai-org/Open-AutoGLM.git && cd Open-AutoGLM 2. Install dependencies: pip install -r requirements.txt && pip install -e . 3. Prepare device: Enable developer mode and USB debugging on Android 7.0+ or HarmonyOS device, connect via USB, and install/activate ADB Keyboard on Android. 4. Configure a model service: either use a third-party service like Zhipu BigModel (--base-url https://open.bigmodel.cn/api/paas/v4 --model autoglm-phone) or ModelScope (--base-url https://api-inference.modelscope.cn/v1 --model ZhipuAI/AutoGLM-Phone-9B), or deploy locally with vLLM/SGLang.

How do you use this agent?

Once a model service is running, execute a task: python main.py --base-url http://localhost:8000/v1 --model autoglm-phone-9b "Open WeChat and send a message to File Transfer saying: deployment successful". Use interactive mode by omitting the task argument. Use --lang en for English prompts, --device-type hdc for HarmonyOS, and --device-id to target a specific device. Python API: from phone_agent import PhoneAgent; agent = PhoneAgent(model_config); result = agent.run("Open Taobao and search for wireless earbuds").

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Not found in source — apply before daily use
  • rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.

What are this agent's strengths and limitations?

Pros
  • Cross-platform support for Android and HarmonyOS using standard ADB/HDC tools.
  • Open-source models (AutoGLM-Phone-9B) available for local deployment, plus third-party API options.
  • Built-in confirmation and human takeover for sensitive operations, balancing autonomy and safety.
  • Remote debugging over Wi-Fi/network without USB, enabling unattended scenarios.
  • Pre-configured support for 50+ Chinese Android apps and 60+ HarmonyOS apps.
Limitations
  • Requires manual setup of ADB/HDC and ADB Keyboard, which may be daunting for non-technical users.
  • Dependency on either paid API services or high-end GPU (24GB+ VRAM) for local model hosting.
  • Model services are tied to AutoGLM family; no documented alternative model adapters.
  • License restricts to research and learning, prohibiting commercial or illegal use—may not suit enterprise deployment.
  • HarmonyOS support requires specific HDC tools and HarmonyOS NEXT, a limited subset of devices.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Open-AutoGLM Phone Agent This agent 55 · Major gaps CLIFree + model costs ★ 27k 9mo ago Python —
mobile-use: Automate Your Phone with Natural Language 48 · Major gaps CLIFree + model costs ★ 3.4k 28d ago Python OpenAI API · Claude API
ClickClickClick 36 · Major gaps CLIFree + model costs ★ 718 8mo ago Python OpenAI API
LockKnife Android Investigation Workbench 65 · Some gaps CLIFree ★ 566 1mo ago Python —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
55/ 100 5-point scale 2.8 / 5
Trust 12/29
Reliability 6/14
Adaptability 12/18
Convention 13/18
Effectiveness 7/13
Verifiability 5/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

The code explicitly uses ADB/HDC or iOS tooling to read phone screens and carry out model-generated taps and text input, and it supports remote connections. Default permission scope, device-selection safeguards, and action limits are only lightly documented, so least privilege is partial (1). The docs describe confirmation callbacks for sensitive actions and a human takeover callback, but do not show their coverage or default behavior; confirmation is addressed but not fully established (2). The docs say screen images and tasks go to a model service and offer local and third-party service options. They do not fully describe retention, transport protection, or server-side handling (1). Black screens and human takeover are discussed for payment, password, and banking pages, though sensitive-data handling details are limited (2). The dependency list sets minimum versions, while deployment guidance says Transformers conflicts can be ignored; no version lock or security review evidence is shown (1). External effects include entering text, tapping real phone apps, and potentially controlling devices remotely. Sensitive-action confirmation is mentioned, but comprehensive impact boundaries and per-action safeguards are not shown (1). A task step limit and reset interface are provided, but no rollback of completed phone actions or recovery mechanism is shown (0). The docs cite AutoGLM papers and identify model-service and device-tool sources, but do not provide fuller per-component source and version attribution (2).

Reliability6 / 14 · 2.1/5

The README, CLI, and main agent code describe a screenshot-model-action loop and include max_steps. Some deployment names, platform coverage, and instructions may not align, and the supplied sample does not resolve those inconsistencies (1). Dependencies and ADB/HDC and WebDriverAgent prerequisites are described, but versions are not locked and the model service must be deployed separately, leaving ordinary use dependent on multiple external components (1). The code returns model errors and a step-limit message, and the CLI includes environment checks and device troubleshooting. Handling and recovery for screenshot or device-call failures are not fully visible in the supplied code excerpt (2).

Adaptability12 / 18 · 3.3/5

The project addresses Chinese and English tasks, documents Android, HarmonyOS, and iOS setup, and describes app scenarios, interaction, and developer use, making its audiences and scenarios concrete (3). It lists available actions, device types, supported apps, and notes the external model-service requirement and human takeover for login and verification; the practical limits of general natural-language tasks remain broad (2). CLI tasks, interactive mode, and system-prompt configuration are documented, but the docs do not say when not to delegate a task or how to constrain side-effecting tasks (1). Android, HarmonyOS, and iOS setup paths, remote device connections, and local or third-party model deployment are described, though hardware and platform limits and some instructions are not fully consistent (2).

Convention13 / 18 · 3.6/5

The README organizes installation, deployment, use, configuration, examples, FAQ, and development, and describes the project structure (3). It documents installation steps, Python version, device tools, model configuration, and a deployment-check script; however, the multiple platform paths are lengthy and some details do not fully align (2). PhoneAgent, model configuration, device types, and environment-variable names are mostly consistent across the main examples, but device and model configuration descriptions differ, and the sample cannot establish repository-wide consistency (2). The README includes Android/HarmonyOS/iOS entry points, CLI and Python examples, FAQ, and troubleshooting (3). It identifies research and learning use, prohibits illegal activity, notes external model dependencies and human takeover, and mentions GPU/model requirements; security, privacy, and recovery limits remain underspecified (2). The full Apache-2.0 license text is present and matches the metadata (3). The sample shows no release history or changelog; a fixed revision identifier alone does not explain project evolution (1). Community and repository identity clues and external support channels are provided, but no clear maintenance owner, support period, or update policy is shown (1).

Effectiveness7 / 13 · 2.7/5

The agent turns natural-language tasks into phone actions and offers a CLI, Python API, step debugging, app lists, and callbacks, making outputs directly usable. Completion still depends on the model and device, and failure results are fairly simple (2). Combining visual understanding and multi-step planning with ADB/HDC/iOS control has clear utility over manually performing each step, and local deployment is an option; no evidence quantifies reliability or time savings (2). Local deployment requires substantial compute and an approximately 20 GB model, while remote service use entails API costs and screen-data flows; the cost-effectiveness tradeoff is not quantified (1).

Verifiability5 / 8 · 3.1/5

Install commands, environment variables, action tables, configuration options, and model deployment parameters make several usage claims traceable within the repository. Claims such as supported-app counts and effectiveness are less substantiated in the supplied sample (2). README descriptions can be cross-checked against CLI device checks, the agent loop, and the dependency list; the implementation files are incomplete in the packet, so corroboration should not be generalized to the whole repository (2). The docs distinguish service choices, usage examples, and expected deployment output, and label expected output as an example. Some capability and performance claims lack quantified evidence or an explicit evidence level (2).

Risks and how to mitigate them
  • Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
  • The agent acts on a real phone based on model decisions and can connect remotely; verify the target device, screen context, and sensitive-action confirmation setup first.
  • The model can run locally or through a third-party service; verify the endpoint, credential handling, and data policy before sending screenshots and tasks.
  • Deployment parameters and dependency notes include items requiring environment-specific judgment, such as ignoring Transformers conflicts; check dependencies and platform instructions for your setup.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision 86f55382982f
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/open-autoglm.svg)](https://followagents.com/en/agents/open-autoglm)
<a href="https://followagents.com/en/agents/open-autoglm"><img src="https://followagents.com/badge/open-autoglm.svg" alt="FARS review"></a>

FAQ

What hardware is required?
You need an Android 7.0+ or HarmonyOS device, a USB cable that supports data transfer, and a computer running Python 3.10+. For local model deployment, an NVIDIA GPU with at least 24GB VRAM and ~20GB of storage for the model is recommended.
How do I get an API key?
For Zhipu BigModel, sign up at the Zhipu platform to get an API key. For ModelScope, request a key from the ModelScope platform. Both are used with the --apikey parameter.
What if text input doesn't work?
Ensure ADB Keyboard is installed and enabled on your Android device (Settings > Language & Input). The agent will automatically switch to it when needed. If issues persist, check that the correct IME is set using 'adb shell ime enable'.
Why is the screenshot black?
This typically indicates a sensitive screen (e.g., payment or password). The agent automatically detects this and requests human takeover. This is intentional behavior, not a bug.
Can I control an iPhone?
The README mentions an iOS setup guide (docs/ios_setup) involving WebDriverAgent, but detailed steps are not provided in the main README. It may require additional effort.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts