
The GLM Coding Plan is Z.ai's flat-fee subscription that routes GLM models into coding tools a developer already uses, rather than shipping a new editor. Subscribing grants an API key and access to Z.ai's coding endpoints, but the plan itself has no interface, which is exactly where many new subscribers stall in the first 24 hours. The account page, the API key console, and the per-tool endpoint configuration are separate surfaces, and pointing a client at the wrong endpoint produces a confusing billing error instead of a connection failure. This article walks through the Z.ai account-to-key flow, explains why Continue.dev is a practical first editor integration, and lays out a concrete first-week workflow. It is aimed at solo engineers who have subscribed but have not yet wired the plan into a daily editor. Version-sensitive details, including the current model lineup and promotional multipliers, are flagged where they apply.

The GLM Coding Plan is not a standalone product; it delivers only a set of credentials and API endpoints that your existing coding assistants can call. When you subscribe you receive a flat‑monthly quota of coding prompts that are consumed inside officially supported tools. The quota is tracked on Z.ai’s servers, not in your local editor, so the same allowance is shared across every integrated assistant.
Z.ai exposes two compatible APIs for the plan:
| Protocol | Typical clients | Base URL (example) |
|---|---|---|
| Anthropic‑compatible messages | Claude Code, Goose | https://api.z.ai/api/anthropic |
| OpenAI‑compatible Chat Completions | Cline, Cursor, OpenCode, Kilo Code, others | https://api.z.ai/api/coding/paas/v4 |
Because the endpoints mimic the public Anthropic and OpenAI wire formats, more than 20 editors work out‑of‑the‑box without a custom adapter 【7†content】.
The current authoritative list lives at docs.z.ai/devpack and includes (as of November 2026):
Different community snapshots disagree—some omit Cursor, others include it—but the documentation should be treated as the final source 【1†content】.
The underlying GLM models have changed repeatedly throughout 2026. Earlier tutorials may reference GLM‑4.5, 4.6, 4.7, 5.1, or 5.2. According to the latest FAQ, the current lineup exposed to coding assistants is GLM‑5.3 and GLM‑5.3‑Flash, the newest multimodal releases launched in August 2026 【8†content】. When configuring a tool, always copy the model identifier from the up‑to‑date docs rather than from legacy guides.
In summary, the GLM Coding Plan gives you a credential‑plus‑endpoint bundle that unlocks a shared prompt quota across a curated set of IDE assistants, accessed via either Anthropic‑ or OpenAI‑compatible APIs. Understanding this mental model prevents the common “billing error instead of connection failure” pitfall that many newcomers encounter during the first 24 hours.

Create or log into your Z.ai account – Visit the Z.ai homepage, click Sign In or Register, and complete the onboarding flow.
Subscribe to the GLM Coding Plan – Navigate to https://z.ai/subscribe, pick the desired tier (individual or team), and confirm the fixed‑fee subscription. The current model lineup and any promotional multipliers are shown on this page.
Finalize payment – Enter your payment details and complete the transaction. Z.ai immediately records the plan in your account’s quota ledger; no per‑token charges will apply while the plan is active.
Generate a plan‑specific API key – Open the API key console at https://z.ai/manage-apikey/apikey-list. Click Create New Key, give it a descriptive name such as “Coding‑Plan‑Key‑Dev”, and copy the key verbatim. This key is the only credential that unlocks the Coding Plan quota and the exclusive MCP tools.
Key distinction: The Coding Plan key (
sk‑sp‑…) is not interchangeable with a general platform API key (sk‑…). Using a general key inside a supported coding client will not deduct from the plan’s quota and may trigger unexpected pay‑as‑you‑go charges. Conversely, feeding a plan key to an unsupported tool can cause rate‑limit errors or even temporary account freezes. Source: Z.ai GLM Coding Plan pricing and tiers, 2026
Domain split: International Z.ai accounts and domestic bigmodel.cn accounts operate on separate credential sets; a key issued for one domain will be rejected by the other. Keep this separation in mind when collaborating across regions.
Version‑sensitivity notice: The exact URL path for the API‑key console and the subscription flow have been updated in recent releases. Always verify the current navigation against the latest Z.ai documentation rather than relying on an older tutorial.
Practical tip: Naming the key after its purpose (e.g., “VSCode‑Coding‑Plan”) in the console prevents accidental use of a metered API key later, ensuring that all coding‑tool requests correctly consume the plan quota.

Third‑party testing has identified Continue.dev as the smoothest editor integration for the GLM Coding Plan. A recent review noted that “Continue.dev has the smoothest GLM integration tested” because it lets GLM plug in as a custom provider directly in the config.json file, avoiding the wizard‑style setup that assumes a specific vendor 【vibecoding.app (2026)】. This makes the initial wiring step less error‑prone and reduces the chance of billing‑related connection failures.
| Feature | Why it matters for the GLM Coding Plan |
|---|---|
Single config for multiple IDE families – Continue ships both a VS Code extension and a JetBrains‑family extension from the same config.json. This means one configuration covers the two most common IDE ecosystems, saving time when you switch editors 【opensourcealternatives.to (2026)】. | |
OpenAI‑compatible model block – The models array uses apiBase and model fields to point at any OpenAI‑style endpoint. You can set apiBase: "https://api.z.ai/api/coding/paas/v4" and model: "glm‑5.2" to route all requests through the GLM Coding Plan without additional adapters 【localaimaster.com (2026)】. | |
Built‑in MCP server support – Continue’s config.json is also the place where MCP servers are declared. The GLM Coding Plan bundles exclusive MCP tools (Vision Understanding, Web Search, Web Reader) 【docs.z.ai (FAQ)】, so having them in the same file ensures the new subscriber can enable these capabilities immediately, without juggling separate configuration locations. | |
| Cross‑IDE portability – Because the same JSON file is read by both the VS Code and JetBrains extensions, any changes (e.g., swapping a model or updating the API key) propagate instantly across your development environments. |
ANTHROPIC_DEFAULT_OPUS_MODEL, …SONNET_MODEL, …HAIKU_MODEL) in a settings.json file 【docs.z.ai (Claude)】. This extra layer can cause confusion, especially when the IDE does not pick up the new variables until a restart.For a solo engineer who spends most of the day inside an IDE, Continue.dev therefore minimizes first‑day friction (single JSON, no wizard, cross‑IDE) while maximizing the value of the bundled MCP tools. Terminal‑first developers may still prefer Claude Code or OpenCode, but for the typical IDE‑centric workflow Continue.dev offers the clearest path from subscription to productive coding.

1. Install the Continue extension
code --install-extension Continue.continue or add it from the Marketplace.2. Open the Continue configuration file
The extension reads ~/.continue/config.json (create the file if it does not exist) 【1†source】.
3. Add a GLM Coding model block
{
"models": [
{
"title": "Z.ai GLM Coding",
"provider": "openai",
"model": "GLM-5.3", // update to the identifier listed in the current Z.ai FAQ
"apiBase": "https://api.z.ai/api/coding/paas/v4",
"apiKey": "sk-sp-xxxxxxxxxxxx", // your Coding Plan key
"disableImageSupport": true,
"maxContextTokens": 1000000 // matches the 1 M‑token window of GLM‑5.3‑Flash
}
]
}
Why these fields?
glm-5.2 are now outdated.4. Save the file – Continue will automatically reload the configuration.
5. (Optional) Zero‑manual‑JSON path
If you prefer not to edit JSON, run the one‑liner provided on the subscription page:
npx @z_ai/coding-helper
The Coding Tool Helper downloads the appropriate extension, injects the model block, and starts the required MCP server 【4†source】. This is useful for developers who want a completely hands‑off setup.
6. Verify the integration
Open the Continue chat panel (⌘ L on macOS, Ctrl L on Windows/Linux) and type a simple request, e.g.:
“Write a Python function
add(a, b)that returns the sum ofaandb.”
A streaming response should appear within a few seconds. If the panel shows an error mentioning billing or an unknown model, double‑check that the apiBase, apiKey, and model fields exactly match the current documentation.
Once the test succeeds, you can start using the GLM model for autocomplete, code generation, and refactoring directly inside your existing editor workflow.

When a newly‑subscribed developer sees error 1113 – Insufficient Balance, the instinct is to assume the plan’s quota is exhausted. In reality the request never qualified as “plan usage”. The GLM Coding Plan only counts calls that satisfy all three conditions outlined in the official FAQ 📄 and confirmed by third‑party analysis 📄:
https://api.z.ai/api/anthropichttps://api.z.ai/api/coding/paas/v4Developers frequently point a Claude‑compatible client at the generic paas/v4 endpoint (or vice‑versa). The request succeeds at the network level, so the client reports a billing error rather than a connection failure, leading to the misleading 1113 message 📄.
Another subtle cause is a lingering model name such as GLM‑5.2. After the plan’s rollout to the GLM‑5.3 era, any configuration still referencing GLM‑5.2 will be rejected, even though the model remains reachable on other Z.ai endpoints 📄. Updating the identifier to one of the three supported models resolves the error.
For clients that read a local configuration file (e.g., settings.json for Claude Code), follow this ordered checklist 📄:
Applying this sequence usually uncovers a mismatched endpoint or outdated model name, allowing you to correct the configuration and avoid unintended billing. Once the URL, tool, and model align, the request will be routed through the Coding Plan quota instead of the regular pay‑as‑you‑go API.

The GLM Coding Plan issues a single API key that can be reused across all supported editors. Because the key authorises the account‑wide quota, any tool that points to the correct endpoint will draw from the same monthly allowance – adding a client adds convenience, not extra capacity.
opencode auth login and choose Z.AI.opencode) and issue the /models command to select the desired GLM model (e.g., GLM‑5.2)【3†L1-L9】.OpenCode stores the key in its local config, so subsequent sessions automatically use the same plan.
These extensions accept a custom “own‑API‑key” mode that follows the OpenAI Chat Completion schema:
| Setting | Value |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://api.z.ai/api/coding/paas/v4 |
| API Key | your GLM Coding Plan key |
| Model | custom identifier, e.g. glm-5.2 |
| Context window | match the model (≈1 M tokens for GLM‑5.2) |
After installing the extension, open its settings, choose own API key, fill the fields above, and save. The extension will now route every request to Z.ai’s endpoint, counting against the same quota as OpenCode【1†L1-L3】【4†L1-L9】.
Roo Code follows the identical configuration because it also implements the OpenAI‑compatible protocol.
Claude Code expects Anthropic‑style messages, so it must be pointed at the Anthropic endpoint and configured via a JSON settings file:
{
"ANTHROPIC_DEFAULT_OPUS_MODEL": "GLM-5.3-Flash",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "GLM-5.3-Flash",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "GLM-5.3-Flash",
"ANTHROPIC_API_KEY": "<your‑coding‑plan‑key>",
"API_BASE": "https://api.z.ai/api/anthropic"
}
Place this file at ~/.claude/settings.json. On first launch Claude Code will ask whether to use the API key; answer yes to activate the configuration【5†L1-L9】.
All four clients draw from the same account‑level allowance defined by the Coding Plan; there is no per‑client limit. To avoid a single leaked key invalidating every editor, generate one key per environment (e.g., one for a laptop, another for a workstation). Rotating a key only forces re‑configuration in the affected environments, leaving others untouched.
By reusing the same key across OpenCode, Cline/Roo Code, and Claude Code you get a unified coding experience while keeping the management surface minimal. The only trade‑off is shared quota, which is usually ample for solo developers but should be monitored in the Z.ai dashboard.

GET https://api.z.ai/v1/health) to confirm the key is accepted.glm-5.2) and lock it in your Continue.dev configuration.| MCP tool | Endpoint (plan‑exclusive) | Quota source |
|---|---|---|
| Vision Understanding | https://mcp.z.ai/vision | “Vision … draws from the same 5‑hour prompt pool”【https://threatfrontier.com/articles/glm-coding-plan-pricing-2026-z-ai-lite-vs-pro-vs-max-explained】 |
| Web Search | https://mcp.z.ai/search | “Web Search … share a monthly MCP pool (Lite ≈ 100 calls/month)”【https://www.aipricing.guru/z-ai-subscription-pricing】 |
| Web Reader (Zread) | https://mcp.z.ai/reader | Same as above |
Add these URLs to the Continue.dev settings.json under the customEndpoints block.
During these days keep usage light: a single vision query or a few web searches per day is enough to verify the integration without jeopardising the quota.
Agentic tasks (e.g., “refactor this module”) trigger 15‑20 model invocations per user prompt【https://www.aipricing.guru/z-ai-subscription-pricing】, so a single agent run can exhaust the 5‑hour window quickly, especially during peak hours.
Recommended habit:
Important: All calls must go through the officially supported endpoints; calls made via undocumented paths are billed to the account balance without quota protection【https://docs.z.ai/devpack/faq】.
Following this week‑long cadence keeps you inside the quota windows, avoids surprise throttling, and gives a concrete basis for any future tier upgrade.

The GLM Coding Plan unlocks a fixed‑quota pool that works only inside Z.ai’s officially supported coding clients (Claude Code, Cline, Cursor, etc.) 【5†L1-L6】. Anything outside those editors—scripts, CI pipelines, backend services, or custom UI integrations—must use Z.ai’s pay‑as‑you‑go API, which is billed per‑million‑tokens and has no tool restrictions 【1†L1-L5】.
| Use case | Recommended key | Why |
|---|---|---|
| Supported IDE or CLI assistant (e.g., Continue.dev) | Coding‑Plan key (Team/Individual) | Consumes the subscription quota; avoids unexpected balance deductions 【4†L2-L5】 |
| Scripts, automated tests, CI/CD, custom back‑ends, customer‑facing services | Platform (pay‑per‑token) key | Unlimited access, metered billing, no quota limits 【1†L1-L5】 |
| Anything not listed in Z.ai’s “officially supported tools” list | Platform key | Prevents error 1113 (“Insufficient Balance”) caused by mixing keys 【4†L1-L4】 |
Using a general platform key inside a supported editor will not unlock the Coding Plan’s exclusive MCP features (web search/reader, Vision) and can trigger unexpected charges 【4†L5-L7】. Conversely, feeding a Coding Plan key to an unsupported client may hit hidden rate limits or trigger account actions 【4†L8-L9】.
ZAI_API_KEY) that are loaded at runtime. Do not commit it to source control.~/.continue/config.json). Keep these files out of any repository that may be shared.This separation makes the boundary explicit, satisfies Z.ai’s policy that “Plan‑exclusive MCP tools have no access path outside the package” 【5†L9-L11】, and avoids the error 1113 caused by a mismatched key‑base‑URL pair 【4†L1-L4】.
For light or bursty workloads, the per‑million‑token API is often cheaper than exhausting the subscription quota 【1†L1-L5】. If a team begins to use many unsupported IDEs or needs granular scaling, layering the Platform API alongside the subscription is more economical than trying to stretch the fixed quota.
After configuring both keys, run the following checklist:
https://api.z.ai/... uses the Platform key from an environment variable.Maintaining this clear split from day one prevents billing surprises, respects Z.ai’s usage policies, and keeps your development environment ready for scale.