Lybic Docs

Experience AutoGLM in the Lybic Cloud Android Sandbox

Open-AutoGLM is an open-source mobile intelligent assistant framework built on the Zhipu-ChatGLM family of models. It can autonomously complete tasks on Android devices through natural language instructions. With Lybic's cloud Android sandbox, you can experience and run AutoGLM directly in the cloud without preparing a local phone or configuring ADB, making it easy to develop, test, and validate Phone Agent workflows.

Currently, the AutoGLM-Phone-9B model is available for download on Hugging Face and ModelScope. The framework supports mainstream apps such as Gmail, Google Maps, WeChat, Taobao, and Meituan, and works in both English and Chinese.

This article explains how to experience the AutoGLM model within the Lybic cloud Android sandbox.


Zhipu-Phone Agent is a mobile intelligent assistant built on AutoGLM that understands screen content multimodally and executes automated workflows to help users finish tasks. The system uses ADB (Android Debug Bridge) to control the device, leverages a vision-language model to perceive the screen, and combines intelligent planning to generate and execute operational plans. Users simply describe their needs in natural language—such as "open Xiaohongshu and search for food"—and the Phone Agent automatically interprets the intent, understands the current interface, plans the next actions, and completes the entire flow. Sensitive operations require confirmation, and the agent supports manual takeover during login or verification code scenarios. It also provides remote ADB debugging, so you can connect to devices over WiFi or the network for flexible remote control and development.

You can now experience the power of Zhipu-Phone Agent in the Lybic cloud Android sandbox.

Unlike the official repository, you should use Lybic’s forked Zhipu-Phone Agent. This fork integrates the Lybic cloud sandbox so you can run automation tasks without a local Android device.

Features

  • No local device needed: Run directly in the cloud sandbox
  • No ADB setup: Control via API
  • Ready to use: Automatically creates and manages the sandbox environment

Install the Agent

Clone the project and install dependencies:

git clone git@github.com:lybic/Open-AutoGLM.git
cd Open-AutoGLM/
pip install -r requirements.txt

Obtain API Keys

Lybic API key

Visit the Lybic website to obtain your LYBIC_ORG_ID and LYBIC_API_KEY.

Large model API key

Choose one of the following platforms to get an online inference API key for the AutoGLM-Phone-9B model:

1. Zhipu BigModel

2. ModelScope (MoDa Community)

Example usage with third-party services:

# Using Zhipu BigModel
python main.py --lybic --lybic-org-id YOUR_ORG_ID \
  --lybic-api-key YOUR_API_KEY \
  --base-url https://open.bigmodel.cn/api/paas/v4 \
  --model "autoglm-phone" \
  --apikey "your-bigmodel-api-key" \
  "Open Meituan and search for nearby hotpot restaurants"

# Using ModelScope
python main.py  --lybic --lybic-org-id YOUR_ORG_ID \
  --lybic-api-key YOUR_API_KEY \
  --base-url https://api-inference.modelscope.cn/v1 \
  --model "ZhipuAI/AutoGLM-Phone-9B" \
  --apikey "your-modelscope-api-key" \
  "Open Meituan and search for nearby hotpot restaurants"

If you prefer to run the model locally, see Model Local Deployment.

Environment Variables

VariableDescriptionDefault
PHONE_AGENT_BASE_URLModel API endpointhttp://localhost:8000/v1
PHONE_AGENT_MODELModel nameautoglm-phone-9b
PHONE_AGENT_API_KEYModel authentication API keyEMPTY
PHONE_AGENT_MAX_STEPSMaximum steps per task100
PHONE_AGENT_DEVICE_IDADB device ID(auto-detected)
PHONE_AGENT_LANGLanguage (cn or en)cn
LYBIC_ORG_IDLybic organization ID(none)
LYBIC_API_KEYLybic API key(none)
LYBIC_SANDBOX_IDSpecific sandbox ID(auto-created)
LYBIC_SANDBOX_SHAPESandbox typeguangzhou-4c6g-android-12

Command Line Parameters

ParameterDescriptionDefault
--base-urlModel API endpointhttp://localhost:8000/v1
--modelModel nameautoglm-phone-9b
--apikeyModel authentication API keyEMPTY
--max-stepsMaximum steps per task100
--langLanguage (cn or en)cn
--lybicUse the Lybic cloud sandbox(disabled)
--lybic-endpointLybic API endpointhttps://api.lybic.cn
--lybic-org-idLybic organization ID(none)
--lybic-api-keyLybic API key(none)
--lybic-sandbox-idSpecific sandbox ID (auto-created if omitted)(auto-created)
--lybic-sandbox-shapeSandbox typeguangzhou-4c6g-android-12

For more command line options, refer to main.py.

On this page