packages/docs/plugin-registry/llm/zai.md
The Zai plugin connects Eliza agents to z.ai language models.
<Info> This plugin is available from the upstream elizaOS registry. It is **not bundled** in `plugins.json` and must be installed explicitly. </Info>Package: @elizaos/plugin-zai
eliza plugins install @elizaos/plugin-zai
The plugin auto-enables when ZAI_API_KEY is present. Legacy Z_AI_API_KEY is also accepted for existing installs:
export ZAI_API_KEY=your-zai-api-key
| Environment Variable | Required | Description |
|---|---|---|
ZAI_API_KEY | Yes | z.ai API key |
Z_AI_API_KEY | No | Legacy alias used only when ZAI_API_KEY is unset |
{
"auth": {
"profiles": {
"default": {
"provider": "zai"
}
}
}
}