Striveonger

vuePress-theme-reco Mr.Lee    2015 - 2025
Striveonger Striveonger
主页
分类
  • 笔记
  • 文章
  • 工具
标签
时间轴
简历
author-avatar

Mr.Lee

269

Article

137

Tag

主页
分类
  • 笔记
  • 文章
  • 工具
标签
时间轴
简历

浅尝 Open-AutoGLM

vuePress-theme-reco Mr.Lee    2015 - 2025

浅尝 Open-AutoGLM

Mr.Lee 2025-12-13 22:11:00 PythonAiAgent

豆包手机这几天很火, 紧接着...就传出被各大厂商"制裁"的消息...谁成想, 智谱清言, 前几天, 也发布操作手机的Agent和模型 "AutoGLM-Phone-9B" . 今天就来一起体验一下吧

# 初始化环境

# 克隆项目(fork)
❯ git clone git@github.com:Striveonger/Open-AutoGLM.git
❯ cd Open-AutoGLM/

# 初始化uv环境
❯ uv init
Initialized project `open-autoglm`

# 添加依赖
❯ uv add openai
Using CPython 3.11.12
Creating virtual environment at: .venv
Resolved 18 packages in 1.75s
Installed 16 packages in 34ms
 + annotated-types==0.7.0
 + anyio==4.12.0
 + certifi==2025.11.12
 + distro==1.9.0
 + h11==0.16.0
 + httpcore==1.0.9
 + httpx==0.28.1
 + idna==3.11
 + jiter==0.12.0
 + openai==2.11.0
 + pydantic==2.12.5
 + pydantic-core==2.41.5
 + sniffio==1.3.1
 + tqdm==4.67.1
 + typing-extensions==4.15.0
 + typing-inspection==0.4.2
❯ uv add Pillow
Resolved 19 packages in 229ms
Installed 1 package in 4ms
 + pillow==12.0.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

# 验证环境

# 查看手机是否连接
❯ adb devices
List of devices attached
9d6e1251        device
1
2
3
4

# 启动服务

# 使用智谱 BigModel
uv run main.py --base-url https://open.bigmodel.cn/api/paas/v4 --model "autoglm-phone" --apikey "your-api-key" "打开抖音"
🔍 Checking system requirements...
--------------------------------------------------
1. Checking ADB installation... ✅ OK (Android Debug Bridge version 1.0.41)
2. Checking connected devices... ✅ OK (1 device(s): 9d6e1251)
3. Checking ADB Keyboard... ❌ FAILED
   Error: ADB Keyboard is not installed on the device.
   Solution:
     1. Download ADB Keyboard APK from:
        https://github.com/senzhk/ADBKeyBoard/blob/master/ADBKeyboard.apk
     2. Install it on your device: adb install ADBKeyboard.apk
     3. Enable it in Settings > System > Languages & Input > Virtual Keyboard
--------------------------------------------------
❌ System check failed. Please fix the issues above.

# 注意安装完之后, 需要在手机中启用这个虚拟键盘哈~
❯ adb install ~/Downloads/ADBKeyboard.apk
Performing Streamed Install
Success


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22