Skip to main content

GLM / Z.ai coding plan guide

Use the right Z.ai coding plan key

Connect the GLM coding-plan key, create a named profile, and verify it on controlled work.

4 min readUpdated Start the guide

A Z.ai Coding Plan connection uses the GLM (Z.ai) entry in Coding Agents. Treat the plan key, the model profile, and the build phase that uses it as three separate setup steps. Saving a key alone does not prove a build can use it.

On this page

Requirements

Before you start

Make sure you have these in place before following the steps:

  • An eligible Z.ai coding plan and its coding-plan key.
  • Account-owner access to Coding Agents and Pipeline Routing.
  • A ready runtime and a small noncritical app change for a controlled test.
Two named coding-agent profiles with different reasoning settings.
Named profiles separate implementation and review settings. Example account and model values. Open full-size screenshot
Step 1 of 6

Obtain the key for the intended plan

Sign in to the provider account that owns the coding plan. Obtain its key through the provider's authorized account controls. Confirm that it is the plan you intend to use; do not assume a general API balance and a coding subscription are interchangeable.

Step 2 of 6

Save it under GLM (Z.ai)

Open Settings, then Coding Agents, and enable GLM (Z.ai). Paste the key only into Coding subscription key and choose Save Key. The field should clear and the page should retain a masked reference rather than displaying the full credential.

Step 3 of 6

Check that the runtime received it

Read the resulting status. Key saved with a notice that it will apply when the runtime is reachable is an incomplete connection step. Check Environment Status, allow the runtime to become available, and recheck before diagnosing model or routing failures.

Step 4 of 6

Create a profile for a defined job

Expand the connected agent and choose + Add Profile. Use a descriptive name, such as glm-small-build. Use the model mapping or model ID shown for the connection rather than a guessed model name. Choose an offered Reasoning value and save with Create Profile.

Step 5 of 6

Prepare one controlled routing test

Open Pipeline Routing and record the existing phase order before changing it. Routing affects account build phases, not just the task you happen to be viewing. Arrange a small planned build with the owner, choose the intended profile for that phase, and retain a valid fallback.

Controlled GLM build request
Change the empty-state description on the projects screen. Keep routes, permissions, database structure, and dependencies unchanged.
Acceptance: the new text is visible and the existing create-project action still works.
Report the files changed, checks run, and any provider or model error.
Step 6 of 6

Verify the profile and the result

Start only the planned work and inspect which profile handled the phase. Read authentication or model errors before changing the key again. Review the resulting code and checks. Restore or keep the phase order deliberately after the test rather than leaving an experimental route in place.

Check the result

  • The intended plan key is stored without appearing in task text.
  • A named GLM profile exists with an appropriate model choice.
  • A controlled phase test and its result have been inspected, and routing is left in an intentional state.

Troubleshooting

The key is stored but the connection still cannot run.

Check runtime reachability and the actual provider error. Stored credentials and successful inference are different states; confirm plan eligibility and the endpoint shown for GLM.

The profile exists but a build uses another agent.

Inspect the phase's profile order, availability, and caps. Creating a profile does not put it first in every chain, and a direct Agents task has its own selection.

Availability and limits

  • This coding-plan path runs through the configured harness; it is not a separate GLM chat-agent entry in New Task.
  • Usage caps depend on provider reporting and are not dollar budgets. Provider terms and plan limits still apply.

Related documentation

Start with an idea, or start with what you have.

Use AI supplied by 1904, or connect the subscription you already pay for.