mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-07 07:11:06 +00:00
69 lines
1.7 KiB
Markdown
69 lines
1.7 KiB
Markdown
---
|
|
summary: "GLM model family overview + how to use it in OpenClaw"
|
|
read_when:
|
|
- You want GLM models in OpenClaw
|
|
- You need the model naming convention and setup
|
|
title: "GLM Models"
|
|
---
|
|
|
|
# GLM models
|
|
|
|
GLM is a **model family** (not a company) available through the Z.AI platform. In OpenClaw, GLM
|
|
models are accessed via the `zai` provider and model IDs like `zai/glm-5`.
|
|
|
|
## CLI setup
|
|
|
|
```bash
|
|
# Generic API-key setup with endpoint auto-detection
|
|
openclaw onboard --auth-choice zai-api-key
|
|
|
|
# Coding Plan Global, recommended for Coding Plan users
|
|
openclaw onboard --auth-choice zai-coding-global
|
|
|
|
# Coding Plan CN (China region), recommended for Coding Plan users
|
|
openclaw onboard --auth-choice zai-coding-cn
|
|
|
|
# General API
|
|
openclaw onboard --auth-choice zai-global
|
|
|
|
# General API CN (China region)
|
|
openclaw onboard --auth-choice zai-cn
|
|
```
|
|
|
|
## Config snippet
|
|
|
|
```json5
|
|
{
|
|
env: { ZAI_API_KEY: "sk-..." },
|
|
agents: { defaults: { model: { primary: "zai/glm-5" } } },
|
|
}
|
|
```
|
|
|
|
`zai-api-key` lets OpenClaw detect the matching Z.AI endpoint from the key and
|
|
apply the correct base URL automatically. Use the explicit regional choices when
|
|
you want to force a specific Coding Plan or general API surface.
|
|
|
|
## Current bundled GLM models
|
|
|
|
OpenClaw currently seeds the bundled `zai` provider with these GLM refs:
|
|
|
|
- `glm-5.1`
|
|
- `glm-5`
|
|
- `glm-5-turbo`
|
|
- `glm-5v-turbo`
|
|
- `glm-4.7`
|
|
- `glm-4.7-flash`
|
|
- `glm-4.7-flashx`
|
|
- `glm-4.6`
|
|
- `glm-4.6v`
|
|
- `glm-4.5`
|
|
- `glm-4.5-air`
|
|
- `glm-4.5-flash`
|
|
- `glm-4.5v`
|
|
|
|
## Notes
|
|
|
|
- GLM versions and availability can change; check Z.AI's docs for the latest.
|
|
- Default bundled model ref is `zai/glm-5`.
|
|
- For provider details, see [/providers/zai](/providers/zai).
|