跳转到内容

GLM 模型

GLM 是一个通过 Z.AI 平台提供的 模型系列(而非公司)。在 OpenClaw 中,GLM 模型通过 zai 提供商访问,模型 ID 例如 zai/glm-5

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