Z.AI

Z.AI ist die API-Plattform für GLM-Modelle. Sie bietet REST-APIs für GLM und nutzt API-Keys zur Authentifizierung. Erstelle deinen API-Key in der Z.AI-Konsole. OpenClaw verwendet den zai-Provider mit einem Z.AI-API-Key.

CLI-Einrichtung

openclaw onboard --auth-choice zai-api-key
# oder nicht-interaktiv
openclaw onboard --zai-api-key "$ZAI_API_KEY"

Konfigurationsbeispiel

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

Hinweise

  • GLM-Modelle sind als zai/<model> verfügbar (Beispiel: zai/glm-5).
  • tool_stream ist für Z.AI Tool-Call-Streaming standardmäßig aktiviert. Setze agents.defaults.models["zai/<model>"].params.tool_stream auf false, um es zu deaktivieren.
  • Siehe /providers/glm für die Modellfamilien-Übersicht.
  • Z.AI nutzt Bearer-Authentifizierung mit deinem API-Key.