Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Setup guide - From GLM and Goose docs

Use GLM in Goose

Goose's docs document a built-in Z.AI Coding Plan provider (zai_coding_plan, OpenAI-compatible endpoint), and Z.ai's docs document an Anthropic Compatible custom provider pointed at https://api.z.ai/api/anthropic.

Last verified 4 steps3 official sources

Steps

  1. Step 1.

    Install Goose Desktop or CLI from the Goose quickstart.

  2. Step 2.

    Option A (Goose docs, built-in provider): in Goose Desktop open Settings > Models, choose Z.AI Coding Plan, and enter your Coding Plan API key. In the CLI, select Z.AI Coding Plan in goose configure, or set these env vars.

    Terminal
    GOOSE_PROVIDER=zai_coding_plan
    GOOSE_MODEL=glm-5.3
    ZAI_CODING_PLAN_API_KEY=<your Coding Plan API key>
  3. Step 3.

    Option B (Z.ai docs, custom provider): in Goose Desktop click Create New Provider, select Anthropic Compatible, and set Base URL, API Key (your Z.ai key) and Model (the GLM model code). Save.

    Snippet
    https://api.z.ai/api/anthropic
  4. Step 4.

    Click Switch Models at the bottom of the main screen and select the new provider.

Caveats

  • Goose docs: the Z.AI Coding Plan provider uses https://api.z.ai/api/coding/paas/v4 and falls back to GLM-5.3 and GLM-5.3-Flash when model discovery is unsupported; the existing Z.AI provider uses the Anthropic-compatible endpoint.
  • Z.ai's Goose page documents the Anthropic Compatible custom-provider route at https://api.z.ai/api/anthropic instead; both are official.
  • The value <your Coding Plan API key> is a placeholder; Goose docs do not give a literal example value.
  • Coding Plan and Standard keys are separate since 2026-10-16.

FAQ

How do I use GLM in Goose?

Goose's docs document a built-in Z.AI Coding Plan provider (zai_coding_plan, OpenAI-compatible endpoint), and Z.ai's docs document an Anthropic Compatible custom provider pointed at https://api.z.ai/api/anthropic.

Which GLM model ids work in Goose?

The official docs read for this guide list glm-5.3 and glm-5.3-flash. Requests go to https://api.z.ai/api/coding/paas/v4.

Is this an official GLM and Goose setup?

The steps draw on both GLM's and Goose's docs. It was last checked against 3 official pages on October 17, 2026.

Sources

Last verified against 3 official pages.

Newsletter

New models, set up the day they ship

One email per week. New model releases, the coding tools that support them and how to wire them up.