docs: add Z.AI GLM coding plan setup guide

- Add comprehensive documentation for Z.AI GLM models
- Include curl examples for testing Z.AI API
- Document available models and troubleshooting
- Update .env.example with Z.AI configuration

Z.AI provides GLM models (glm-4.5, glm-4.6, glm-4.7, glm-5) through
the OpenAI-compatible endpoint at api.z.ai/api/coding/paas/v4.

Existing tests verify:
- zai_base_url() returns correct URLs for global/CN variants
- create_provider('zai', key) successfully creates provider
- Regional alias predicates cover all variants
This commit is contained in:
adisusilayasa 2026-02-18 13:50:03 +08:00 committed by Chummy
parent 42bf05df47
commit 402d8f0a32
2 changed files with 148 additions and 0 deletions

View file

@ -68,3 +68,16 @@ PROVIDER=openrouter
# ── Docker Compose ───────────────────────────────────────────
# Host port mapping (used by docker-compose.yml)
# HOST_PORT=3000
# ── Z.AI GLM Coding Plan ───────────────────────────────────────
# Z.AI provides GLM models (glm-4.5, glm-4.6, glm-4.7, glm-5).
# API key format: id.secret (e.g., abc123.xyz789)
#
# Usage:
# zeroclaw onboard --provider zai --api-key YOUR_ZAI_API_KEY
#
# Or set the environment variable:
# ZAI_API_KEY=your-id.secret
#
# Available models: glm-4.5, glm-4.5-air, glm-4.6, glm-4.7, glm-5
# See docs/zai-glm-setup.md for detailed configuration.