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.8.tar.gz (107.5 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.8-py3-none-any.whl (110.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autoglm_gui-0.1.8.tar.gz
  • Upload date:
  • Size: 107.5 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.8.tar.gz
Algorithm Hash digest
SHA256 b37e1cb7f2f494ece03e7e7ec84b1751b9d2dd2c4518566d7c6bb4c05f5bd8ca
MD5 4e764a6a1ef1593985db7ebdeb82fedd
BLAKE2b-256 8698ae32c783e2a836462a1a2002f5a6b24b01e95d95a73e8cd3f978875275db

See more details on using hashes here.

Provenance

The following attestation bundles were made for autoglm_gui-0.1.8.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.8-py3-none-any.whl.

File metadata

  • Download URL: autoglm_gui-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 110.1 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1b90b1a8aeb2bc57802f2d3cd1d3b82e0b84791d9656f81ad2fbb9c39a30b9cb
MD5 3f8ca4f7ee259405b24dd87dbd69a0b3
BLAKE2b-256 6f3e6a665a13d30ba0def44a4b0d9ef97bc922d82f9cc531cdde01336c47c117

See more details on using hashes here.

Provenance

The following attestation bundles were made for autoglm_gui-0.1.8-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