> ## Documentation Index
> Fetch the complete documentation index at: https://openclaw.veiseule.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Z.AI

# Z.AI

Z.AI ist die API-Plattform für **GLM**-Modelle. Sie stellt REST-APIs für GLM bereit und verwendet API-Schlüssel
zur Authentifizierung. Erstellen Sie Ihren API-Schlüssel in der Z.AI-Konsole. OpenClaw verwendet den Anbieter
`zai` mit einem Z.AI-API-Schlüssel.

## CLI-Einrichtung

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw onboard --auth-choice zai-api-key
# or non-interactive
openclaw onboard --zai-api-key "$ZAI_API_KEY"
```

## Konfigurationsausschnitt

```json5 theme={"theme":{"light":"min-light","dark":"min-dark"}}
{
  env: { ZAI_API_KEY: "sk-..." },
  agents: { defaults: { model: { primary: "zai/glm-4.7" } } },
}
```

## Hinweise

* GLM-Modelle sind als `zai/<model>` verfügbar (Beispiel: `zai/glm-4.7`).
* Siehe [/providers/glm](/providers/glm) für die Übersicht der Modellfamilie.
* Z.AI verwendet Bearer-Authentifizierung mit Ihrem API-Schlüssel.
