VM0VM0
Model Selection

Z.AI (GLM)

Use GLM models with VM0

Z.AI provides access to GLM models with strong coding capabilities.

Quick Setup

vm0 model-provider setup --type zai-api-key

You'll be prompted for your API key and model selection.

Get API Key

Visit the Z.AI Platform to create and obtain an API key.

Available Models

ModelDescription
GLM-4.7Latest GLM model (default)
GLM-4.5-AirLighter, faster variant

Non-Interactive Setup

# With default model
vm0 model-provider setup --type zai-api-key --secret "xxx"

# With specific model
vm0 model-provider setup --type zai-api-key --secret "xxx" --model "GLM-4.5-Air"

Run

vm0 run my-agent "build a todo app"

Resources