docs/providers/glm.md
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.
| Auth choice | Best for |
| ----------- | -------- |
| `zai-api-key` | Generic API-key setup with endpoint auto-detection |
| `zai-coding-global` | Coding Plan users (global) |
| `zai-coding-cn` | Coding Plan users (China region) |
| `zai-global` | General API (global) |
| `zai-cn` | General API (China region) |
```bash
# Example: generic auto-detect
openclaw onboard --auth-choice zai-api-key
# Example: Coding Plan global
openclaw onboard --auth-choice zai-coding-global
```
{
env: { ZAI_API_KEY: "sk-..." },
agents: { defaults: { model: { primary: "zai/glm-5.1" } } },
}
OpenClaw currently seeds the bundled zai provider with these GLM refs:
| Model | Model |
|---|---|
glm-5.1 | glm-4.7 |
glm-5 | glm-4.7-flash |
glm-5-turbo | glm-4.7-flashx |
glm-5v-turbo | glm-4.6 |
glm-4.5 | glm-4.6v |
glm-4.5-air | |
glm-4.5-flash | |
glm-4.5v |