Overview

Z.ai is available as the zai provider. It is useful for teams that want GLM-family models with straightforward API-key setup and model switching inside Autohand.

Setup

export ZAI_API_KEY="your-zai-api-key"

autohand --provider zai --model glm-4.5

CLI configuration

{
  "provider": "zai",
  "zai": {
    "apiKey": "${ZAI_API_KEY}",
    "baseUrl": "https://api.z.ai/api/paas/v4",
    "model": "glm-4.5"
  }
}
OptionDescriptionDefault
apiKeyYour Z.ai API key-
baseUrlZ.ai API endpointhttps://api.z.ai/api/paas/v4
modelGLM model IDglm-4.5

Models

Use /model to select a Z.ai model or enter a custom model ID supported by your Z.ai account.

/model zai/glm-4.5