openclaw/docs/providers/glm.md
Kyle Howells 60c26c4604 merge: upstream/main (Moltbot → OpenClaw rebrand)
Resolve conflicts in docs and TypeScript files after project rename
from Moltbot to OpenClaw. All GLM provider implementations updated to
use OpenClawConfig type and openclaw CLI command in documentation.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-01-30 07:56:02 +00:00

1.5 KiB

summary read_when
GLM model family overview + how to use it in OpenClaw
You want GLM models in OpenClaw
You need the model naming convention and setup

GLM Models

GLM is a model family developed by Zhipu AI. GLM models are available through two platforms:

  • Z.AI (api.z.ai) - International platform
  • Zhipu AI (bigmodel.cn) - China mainland platform

Provider Options

Provider Platform Use Case
zai Z.AI (International) Pay-as-you-go
zai-coding Z.AI (International) Coding Plan subscription
zhipu Zhipu AI (China) Pay-as-you-go
zhipu-coding Zhipu AI (China) Coding Plan subscription

CLI Setup

# International users
openclaw onboard --auth-choice zai-api-key

# China users
openclaw onboard --auth-choice zhipu-api-key

Config Snippet

{
  env: { ZAI_API_KEY: "sk-..." },
  agents: { defaults: { model: { primary: "zai/glm-4.7" } } }
}

Available Models

  • glm-4.7 - Latest flagship model (205K context)
  • glm-4.6 - Previous generation (205K context)
  • glm-4.6v - Vision model (128K context)
  • glm-4.5 - Balanced performance (131K context)
  • glm-4.5-air - Lighter variant (131K context)
  • glm-4.5-flash - Faster variant (131K context)

Model availability may vary by region; check the platform docs for the latest.

Notes

  • Model IDs follow the pattern {provider}/glm-{version} (e.g., zai/glm-4.7, zhipu/glm-4.7)
  • For detailed provider setup, see /providers/zai