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 devicesList of devices attached
R5CX528X16A deviceInstall 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' >> ~/.zshrcCreate 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 打开美团搜索烧烤