Files
bot/docs/providers/zai.md
zeekay 4bdc9ee3e4 chore: rebrand openclaw → hanzo-bot for bridge merge
Comprehensive rename of all openclaw references to hanzo-bot equivalents:
- Package: openclaw → @hanzo/bot
- Binary: openclaw → hanzo-bot
- Types: OpenClaw* → Bot*
- Env vars: OPENCLAW_* → BOT_*
- Android: ai.openclaw.android → ai.hanzo.bot.android
- iOS/macOS: ai.openclaw.* → ai.hanzo.*
- Swift modules: OpenClaw* → Bot*
- Plugins: openclaw.plugin.json → bot.plugin.json
- Paths: .openclaw/ → .hanzo/bot/
- URLs: github.com/openclaw → github.com/hanzoai
2026-02-26 22:36:01 -08:00

846 B

summary, read_when, title
summary read_when title
Use Z.AI (GLM models) with Hanzo Bot
You want Z.AI / GLM models in Hanzo Bot
You need a simple ZAI_API_KEY setup
Z.AI

Z.AI

Z.AI is the API platform for GLM models. It provides REST APIs for GLM and uses API keys for authentication. Create your API key in the Z.AI console. Hanzo Bot uses the zai provider with a Z.AI API key.

CLI setup

hanzo-bot onboard --auth-choice zai-api-key
# or non-interactive
hanzo-bot onboard --zai-api-key "$ZAI_API_KEY"

Config snippet

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

Notes

  • GLM models are available as zai/<model> (example: zai/glm-5).
  • See /providers/glm for the model family overview.
  • Z.AI uses Bearer auth with your API key.