Z.AI (Zai) with OpenClaw
Configure GLM-5, GLM-4.7, Coding Plan — API key
Configure GLM-5, GLM-4.7, Coding Plan — API key
Z.AI (Zai) provides access to Zhipu’s GLM models in OpenClaw. GLM-5, GLM-4.7, GLM-4.6, and Coding Plan variants. Popular for Chinese users and coding tasks. Onboard with zai-api-key.
openclaw onboard --auth-choice zai-api-key
Get an API key from the Z.AI console. Configure model as zai/glm-5 or zai/glm-4-7.
{
"agent": {
"model": "zai/glm-5"
}
}
Store the API key via onboard or openclaw secrets. See Secrets.
Compare with GLM overview (Volcano vs Z.AI paths).
openclaw onboard --auth-choice zai-api-key or refresh via Secrets.openclaw models list; slugs like zai/glm-5 change with provider releases.Use Coding Plan SKUs when the agent runs long tool loops over repositories; use GLM-5 or GLM-4.7 for conversational chat. Mixing them in one session is fine—set the default model in config and override per automation job if needed.