GLM 模型
GLM 是一个模型家族(不是公司),可通过 Z.AI 平台使用。在 OpenClaw 中,GLM 模型通过zai 提供商访问,模型 ID 形式如 zai/glm-5。
CLI 设置
配置片段
说明
- GLM 版本和可用性可能会变化;请查看 Z.AI 的文档以获取最新信息。
- 示例模型 ID 包括
glm-5、glm-4.7和glm-4.6。 - 关于提供商详情,请参阅 /providers/zai。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
zai 提供商访问,模型 ID 形式如 zai/glm-5。
# Coding Plan Global,推荐给 Coding Plan 用户
openclaw onboard --auth-choice zai-coding-global
# Coding Plan CN(中国区域),推荐给 Coding Plan 用户
openclaw onboard --auth-choice zai-coding-cn
# 通用 API
openclaw onboard --auth-choice zai-global
# 通用 API CN(中国区域)
openclaw onboard --auth-choice zai-cn
{
env: { ZAI_API_KEY: "sk-..." },
agents: { defaults: { model: { primary: "zai/glm-5" } } },
}
glm-5、glm-4.7 和 glm-4.6。