Skip to main content

Web GUI for AutoGLM Phone Agent - AI-powered Android automation

Project description

AutoGLM-GUI

AutoGLM 手机助手的现代化 Web 图形界面 - 让 AI 自动化操作 Android 设备变得简单

Python License

✨ 特性

  • 对话式任务管理 - 通过聊天界面控制 Android 设备
  • 实时屏幕预览 - 随时查看设备正在执行的操作
  • 零配置部署 - 支持任何 OpenAI 兼容的 LLM API
  • ADB 深度集成 - 通过 Android Debug Bridge 直接控制设备

📸 界面预览

任务开始

任务开始

任务执行完成

任务结束

🚀 快速开始

🎯 模型服务配置

AutoGLM-GUI 只需要一个 OpenAI 兼容的模型服务。你可以:

  • 使用官方已托管的第三方服务
    • 智谱 BigModel:--base-url https://open.bigmodel.cn/api/paas/v4--model autoglm-phone--apikey <你的 API Key>
    • ModelScope:--base-url https://api-inference.modelscope.cn/v1--model ZhipuAI/AutoGLM-Phone-9B--apikey <你的 API Key>
  • 或自建服务:参考上游项目的部署文档(/Users/suyiiyii/Documents/git/Open-AutoGLM/README.md 或仓库 README) 用 vLLM/SGLang 部署 zai-org/AutoGLM-Phone-9B,启动 OpenAI 兼容端口后将 --base-url 指向你的服务。

示例:

# 使用智谱 BigModel
pip install autoglm-gui
autoglm-gui \
  --base-url https://open.bigmodel.cn/api/paas/v4 \
  --model autoglm-phone \
  --apikey sk-xxxxx

# 使用 ModelScope
pip install autoglm-gui
autoglm-gui \
  --base-url https://api-inference.modelscope.cn/v1 \
  --model ZhipuAI/AutoGLM-Phone-9B \
  --apikey sk-xxxxx

# 指向你自建的 vLLM/SGLang 服务
pip install autoglm-gui
autoglm-gui --base-url http://localhost:8000/v1 --model autoglm-phone-9b

前置要求

  • Python 3.10+
  • 已开启 USB 调试的 Android 设备
  • 已安装 ADB 并添加到系统 PATH
  • 一个 OpenAI 兼容的 API 端点

快捷运行(推荐)

无需手动准备环境,直接安装运行:

# 通过 pip 安装并启动
pip install autoglm-gui
autoglm-gui --base-url http://localhost:8080/v1

也可以使用 uvx 免安装启动(需已安装 uv,安装教程):

uvx autoglm-gui --base-url http://localhost:8080/v1

传统安装

# 从源码安装
git clone https://github.com/your-repo/AutoGLM-GUI.git
cd AutoGLM-GUI
uv sync

# 构建前端(必须)
uv run python scripts/build.py

# 启动服务
uv run autoglm-gui --base-url http://localhost:8080/v1

启动后,在浏览器中打开 http://localhost:8000 即可开始使用!

📖 使用说明

  1. 连接设备 - 启用 USB 调试并通过 ADB 连接设备
  2. 对话 - 描述你想要做什么(例如:"去美团点一杯霸王茶姬的伯牙绝弦")
  3. 观察 - Agent 会逐步执行操作

🛠️ 开发指南

# 后端开发(自动重载)
uv run autoglm-gui --base-url http://localhost:8080/v1 --reload

# 前端开发服务器
cd frontend && pnpm dev

# 构建完整包
uv run python scripts/build.py --pack

📝 开源协议

Apache License 2.0

🙏 致谢

本项目基于 Open-AutoGLM 构建,感谢 zai-org 团队在 AutoGLM 上的卓越工作。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoglm_gui-0.1.10.tar.gz (129.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoglm_gui-0.1.10-py3-none-any.whl (132.7 kB view details)

Uploaded Python 3

File details

Details for the file autoglm_gui-0.1.10.tar.gz.

File metadata

  • Download URL: autoglm_gui-0.1.10.tar.gz
  • Upload date:
  • Size: 129.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for autoglm_gui-0.1.10.tar.gz
Algorithm Hash digest
SHA256 44072d9bdc84086a38ea70e443033bdb6742c55d634a8192f190236d5f2dfed5
MD5 8c04ddbc01d291d9acb9689d29128b80
BLAKE2b-256 9b56a9b4cfd9679667750601c44e897f062784dafc60007b32394173f76e4d47

See more details on using hashes here.

Provenance

The following attestation bundles were made for autoglm_gui-0.1.10.tar.gz:

Publisher: release.yml on suyiiyii/AutoGLM-GUI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file autoglm_gui-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: autoglm_gui-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 132.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for autoglm_gui-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 eb666b26671dab63f1c4e68cc7ea5241eeb4e065b47c4e47480aeebefc6c438f
MD5 efc0f29b67769d3b39b1e548e943f5b2
BLAKE2b-256 3b29439d2a2c5f7bfabdae9161c95192b1029457c3864430668937ece2fbc282

See more details on using hashes here.

Provenance

The following attestation bundles were made for autoglm_gui-0.1.10-py3-none-any.whl:

Publisher: release.yml on suyiiyii/AutoGLM-GUI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page