Skip to content

GLM 模型

GLM 是一個透過 Z.AI 平台提供的 模型系列(不是公司)。在 OpenClaw 中,GLM 模型是透過 zai 提供者和類似 zai/glm-5 的模型 ID 存取的。

Terminal window
# 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
{
env: { ZAI_API_KEY: "sk-..." },
agents: { defaults: { model: { primary: "zai/glm-5" } } },
}
  • GLM 版本和可用性可能會有所變更;請查看 Z.AI 的文件以取得最新資訊。
  • 範例模型 ID 包括 glm-5glm-4.7glm-4.6
  • 如需提供者詳細資訊,請參閱 /providers/zai