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

# Overview

The GLM Coding Plan is a subscription package designed specifically for AI-powered coding.

<Note>
  The GLM Coding Plan is strictly limited to use within officially <a href="https://docs.z.ai/devpack/tool/others#step-1-supported-tools">supported tools and products</a>. The subscriber shall not use the subscription benefits in any unsupported tools or scenarios.

  If the system detects usage through unauthorized or unsupported tools (such as SDK-based access or other third-party integrations), some subscription benefits may be restricted to ensure fairness and service stability.
</Note>

## <Icon icon="list" iconType="solid" color="#ffffff" size={30} />   Usage

The plan can be applied to coding tools such as Claude Code, Cline, and OpenCode, covering a wide range of development scenarios:

<AccordionGroup>
  <Accordion title="Natural Language Programming">
    Describe requirements in plain language to automatically generate plans, write code, debug issues, and ensure smooth execution.
  </Accordion>

  <Accordion title="Intelligent Code Completion">
    Get real-time, context-aware completion suggestions that reduce manual typing and significantly improve productivity.
  </Accordion>

  <Accordion title="Code Debugging & Repair">
    Input error messages or descriptions to automatically analyze your codebase, locate problems, and provide fixes.
  </Accordion>

  <Accordion title="Codebase Q&A">
    Ask questions about your team’s codebase anytime, maintain global understanding, and receive precise answers with external data integration.
  </Accordion>

  <Accordion title="Automated Task Handling">
    Automatically fix lint issues, resolve merge conflicts, and generate release notes—allowing developers to stay focused on core logic.
  </Accordion>
</AccordionGroup>

## <Icon icon="stars" iconType="solid" color="#ffffff" size={30} />   Advantages

* **Access to high-intelligence Coding Model:** Upon release, the GLM series achieved SOTA performance among open-source models in reasoning, coding, and agent capabilities, delivering outstanding results in tool use and complex task execution.
* **Works with Multiple Tools:** Beyond Claude Code, it also supports Cline, OpenCode, and some <a href="https://docs.z.ai/devpack/tool/others#step-1-supported-tools">specific tools</a>, giving you flexibility across development workflows.
* **Generous Usage at a Fair Price:** Get higher call limits than standard plans. Starting at just 18 USD per month, with Pro and Max plans designed for high-frequency, complex projects.
* **Expanded Capabilities:** All plans support Vision Understanding, Web Search MCP， Web Reader MCP and Zread MCP helping you tackle a wider range of development tasks.

## <Icon icon="gauge-max" iconType="solid" color="#ffffff" size={30} />   Benefits

### Supported Models

<Tip>
  All plans support **GLM-5.1**, GLM-5-Turbo, GLM-4.7 and GLM-4.5-Air.
</Tip>

### Usage Instruction

To manage resources and ensure fair access for all users, we apply usage limits on a 5-hour and weekly basis. You can check your quota consumption progress in [Usage Statistics](https://z.ai/manage-apikey/subscription).

One prompt refers to one query. Each prompt is estimated to invoke the model 15–20 times.

**The monthly available quota is converted based on API pricing, equivalent to approximately 15–30× the monthly subscription fee (weekly caps already factored in).**

| Plan Type | 5-Hour Limit (Dynamically refreshed; quota resets 5 hours after consumption) | Weekly Limit (Activated upon subscription; resets every 7 days) |
| --------- | ---------------------------------------------------------------------------- | --------------------------------------------------------------- |
| Lite Plan | Up to approx. 80 prompts                                                     | Up to approx. 400 prompts                                       |
| Pro Plan  | Up to approx. 400 prompts                                                    | Up to approx. 2,000 prompts                                     |
| Max Plan  | Up to approx. 1,600 prompts                                                  | Up to approx. 8,000 prompts                                     |

<Check>
  The above figures are estimates. Actual available usage may vary depending on project complexity, repository size, and whether auto-accept is enabled.

  **GLM-5.1** and **GLM-5-Turbo** are advanced models designed to rival Claude Opus model. Its usage will be deducted at **3 × during peak hours** and **2 × during off-peak hours**. We recommend switching to GLM-5.1 for complex tasks and continuing to use GLM-4.7 for routine tasks to avoid rapid quota consumption.

  **As a limited-time benefit, GLM-5.1 and GLM-5-Turbo will only consume 1× quota during off-peak hours, valid through the end of June.**
</Check>

<Info>
  Peak hours are 14:00–18:00 (UTC+8).
</Info>

### Exclusive MCP Access

<CardGroup cols={2}>
  <Card title="Vision Understanding" icon="eye" color="#ffffff" href="/devpack/mcp/vision-mcp-server" />

  <Card title="Web Search" icon="globe" color="#ffffff" href="/devpack/mcp/search-mcp-server" />

  <Card title="Web Reader" icon="book-open" color="#ffffff" href="/devpack/mcp/reader-mcp-server" />

  <Card title="Zread" icon="github" color="#ffffff" href="/devpack/mcp/zread-mcp-server" />
</CardGroup>

<Tip>
  **MCP Usage Limits**

  * **Lite Plan**:  Include a total of 100 web searches and web readers per month, along with the 5-hour maximum prompt resource pool of the package for vision understanding.
  * **Pro Plan**: Include a total of 1,000 web searches and web readers per month, along with the 5-hour maximum prompt resource pool of the package for vision understanding.
  * **Max Plan**: Include a total of 4,000 web searches and web readers per month, along with the 5-hour maximum prompt resource pool of the package for vision understanding.

  Once the monthly quota is reached, these MCP tools will be unavailable until the next billing cycle.
</Tip>

<Info>
  **For Vision Understanding MCP**, all plans share a 5-hour maximum prompt resource pool with the underlying model.

  Once the limit is reached, the quota will automatically reset after a 5-hour window.
</Info>

### How to Switch Models

Mapping between Claude Code internal model environment variables and GLM models, with the default configuration as follows:

* `ANTHROPIC_DEFAULT_OPUS_MODEL`: `GLM-4.7`
* `ANTHROPIC_DEFAULT_SONNET_MODEL`: `GLM-4.7`
* `ANTHROPIC_DEFAULT_HAIKU_MODEL`: `GLM-4.5-Air`

If adjustments are needed, you can directly modify the configuration file (for example, `~/.claude/settings.json` in Claude Code) to switch to GLM-4.5 or other models.

## <Icon icon="list-check" iconType="solid" color="#ffffff" size={30} />   How to Integrate with Coding Tools

<CardGroup cols={3}>
  <Card title="Claude Code" color="#ffffff" href="https://docs.z.ai/devpack/tool/claude" />

  <Card title="Roo Code" color="#ffffff" href="https://docs.z.ai/devpack/tool/roo" />

  <Card title="OpenClaw" color="#ffffff" href="https://docs.z.ai/devpack/tool/openclaw" />

  <Card title="Kilo Code" color="#ffffff" href="https://docs.z.ai/devpack/tool/kilo" />

  <Card title="Cline" color="#ffffff" href="https://docs.z.ai/devpack/tool/cline" />

  <Card title="OpenCode" color="#ffffff" href="https://docs.z.ai/devpack/tool/opencode" />

  <Card title="Crush" color="#ffffff" href="https://docs.z.ai/devpack/tool/crush" />

  <Card title="Goose" color="#ffffff" href="https://docs.z.ai/devpack/tool/goose" />

  <Card title="Other Tools" color="#ffffff" href="https://docs.z.ai/devpack/tool/others" />
</CardGroup>

## <Icon icon="arrow-turn-down" iconType="solid" color="#ffffff" size={30} />   Next Steps

<CardGroup cols={3}>
  <Card title="Quick Start" color="#ffffff" icon="rocket" href="/devpack/quick-start">
    Get up and running in minutes — from subscribing to the plan to using it in your coding tools.
  </Card>

  <Card title="Usage Policy" color="#ffffff" icon="shield-keyhole" href="/devpack/usage-policy">
    Learn about account usage rules, rate limits, refund policies, and other important guidelines.
  </Card>

  <Card title="FAQ" color="#ffffff" icon="comments-question" href="/devpack/faq">
    Find answers to common questions about subscriptions, promotions, and using the plan.
  </Card>
</CardGroup>
