Skip to main content

Supported Tools

The GLM Coding Plan is limited to use within the following officially supported tools and product environments; users may not use their subscription benefits for tools or scenarios outside of this scope.

1. Coding Agent Tool

Click on the tool documentation below that you wish to use, and follow the corresponding integration guide to set it up.

Claude Code

The Claude Code IDE plugin supports VSCode and JetBrains.

Claude for IDE

The Claude Code IDE plugin supports VSCode and JetBrains.

OpenCode

The Claude Code IDE plugin supports VSCode and JetBrains.

Cursor

An AI-first code editor that supports custom model configurations.

Cline

An AI programming extension for VS Code that supports code generation and file operations.

TRAE

An AI editor capable of independently completing various development tasks.

Qoder

An agentic coding platform designed for real software development.

Droid

Enterprise-grade AI coding agent that runs in the terminal to handle end-to-end workflows.

Kilo Code

A powerful VS Code extension for code generation and project management.

Roo Code

A smart VS Code extension for code writing and refactoring.

Crush

A terminal-based AI programming tool that supports both CLI and TUI interfaces.

Goose

AI Agent tool, supporting local execution and automated engineering tasks.

Eigent

A desktop AI agent built on a multi-agent architecture, capable of automating browser, terminal, and MCP-powered workflows.

2. General-purpose Agent Tool

The general-purpose agent tools listed below are also supported and will continue to be served on a best-effort basis. Under high inference load (typically around 2–6 PM Singapore time, though this may shift), some requests may face temporary rate limits.

OpenClaw

An open-source AI assistant that runs on local devices, supports multi-platform use.

Hermes Agent

An open-source evolving AI agent with persistent memory,getting smarter with use.

SillyTavern

A highly customizable AI chat frontend for immersive roleplay with multi-model & media support.

Coding Endpoint

GLM Coding Plan provides endpoints for two protocols for different coding tools: OpenAI Chat Completions protocol endpoint: https://api.z.ai/api/coding/paas/v4 Anthropic Messages protocol endpoint: https://api.z.ai/api/anthropic
Please select the correct endpoint address based on the tool you are using. Incorrect endpoint configuration will result in inability to use GLM Coding Plan subscription quota.

Config Example

Core Steps:
  1. Select an OpenAI-compatible provider.
  2. Add/Replace the OpenAI Base URL with https://api.z.ai/api/coding/paas/v4.
  3. Enter your Z.AI API Key and select a GLM model.
Using Cline as an example, the following steps demonstrate how to integrate GLM models via the OpenAI Compatible protocol. Similarly, other tools supporting the OpenAI-compatible protocol can adopt the same configuration approach.

1. Install the Cline Plugin

  1. Open VS Code and click the Extensions Marketplace icon on the left.
  2. Enter cline in the search box and locate the Cline extension.
  3. Click Install to install it, then choose to trust the developer.
Description Description

2. Configure API Settings

In Cline, select Use your own API Key, then fill in the following configuration: Description
  • API Provider: Select OpenAI Compatible
  • Base URL: Enter https://api.z.ai/api/coding/paas/v4
  • API Key: Enter your Z.AI API Key
  • Model: Select “Use custom” and enter the GLM model code you want to use (e.g., glm-5.2)
  • Other Configurations:
    • Uncheck Support Images
    • Adjust Context Window Size based on your model (glm-5.2 is 1000000; other models 200000)
Description

3. Get Started

Once configured, you can enter your requirements in the input box to let the model assist you with code generation, file editing, refactoring, explaining code logic, debugging, and more. Description

Step 3: Replacing the API URL

  1. Locate the API configuration section in your tool:
For example, in Goose, this is typically where you set the API address in the configuration file; In VS Code plugins or IntelliJ IDEA plugins, configuration is usually done through the plugin’s settings interface.
  1. Replace the OpenAI Base URL:
Replace the default OpenAI API URL with https://api.z.ai/api/coding/paas/v4.
  1. Enter API Key and Select Model:
  • Enter your Z.ai API Key.
  • Select the GLM model code you want to use.