skip to content

Configure Open-AutoGLM

1 min read

# bash
# android
Not in series

I found a very interesting and useful open-source project Open-AutoGLM.

Install ADB

(I’m using Galaxy S24+.)

Download ADB/paltform-tools from https://developer.android.com/tools/releases/platform-tools.

Make sure my MacOS has linked with Android:

adb devices
List of devices attached
R5CX528X16A	device

Install ADB KeyBoard and use it.

Download the Project

I download the project to /Applications/Open-AutoGLM

Configure BigModel API

echo 'export BIGMODEL_API_KEY=My_API_Key' >> ~/.zshrc

Create a Command Line Function to Use AutoGLM

Paste following function in to ~/.zshrc:

glm() {
  /Applications/Open-AutoGLM/venv/bin/python \
    /Applications/Open-AutoGLM/main.py \
    --base-url https://open.bigmodel.cn/api/paas/v4 \
    --model autoglm-phone \
    --apikey "$BIGMODEL_API_KEY" \
    "$*"
}

Usage

glm 打开美团搜索烧烤
image-20251220075617839 Screenshot 2025-12-20 at 07.57.15 Screenshot 2025-12-20 at 07.57.32