This guide will help you get started with GLM Coding Plan in minutes—from subscribing to using the GLM-4.5 model in coding tools.

Getting Started

1

Register or Login

2

Subscribe to GLM Coding Plan

After logging in, navigate to the GLM Coding Plan to select your preferred subscription plan.description
3

Obtain API Key

After subscribing, navigate to your account dashboard and click API Keys to generate a new API Key.description
Safeguard your API Key by keeping it confidential and avoiding hard-coding it in your code. We recommend storing it in environment variables or configuration files.
4

Select Coding Tool

GLM Coding Plan supports multiple mainstream coding tools. Choose based on your preference:
5

Configuring Coding Tools

Using Claude Code as an example, configure the GLM-4.5 model:
1. Install Claude CodePrerequisite: You need to install Node.js 18 or latest version
# Open your terminal and install Claude Code
npm install -g @anthropic-ai/claude-code

# Create your working directory (e.g., `your-project`) and navigate to it using `cd`
cd your-project

# After installation, run `claude` to enter the Claude Code interactive interface
claude
2. Configure Environment VariablesAfter installing Claude Code, set up environment variables using one of the following two methods by enter the following commands in the Mac OS terminal or Windows cmd:
Note: When setting environment variables, the terminal will not return any output. This is normal, as long as no error message appears, the configuration has been applied successfully.
Method 1: Using a Script (Recommended for First-Time Users)
curl -O "http://bigmodel-us3-prod-marketplace.cn-wlcb.ufileos.com/1753683755292-30b3431f487b4cc1863e57a81d78e289.sh?ufileattname=claude_code_prod_zai.sh"
Method 2: Manual Configuration
export ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic
export ANTHROPIC_AUTH_TOKEN=YOUR_API_KEY
6

Start Coding

Once configured, you can begin coding with GLM-4.5!
# Using Natural Language Commands in Claude Code
Please create a React component containing a user login form
GLM-4.5 will automatically:
  • Analyze requirements and formulate an implementation plan
  • Generate complete React component code
  • Include form validation and styling
  • Ensure code runs directly

Feature Examples

Smart Code Completion

Generates real-time completion suggestions based on context, reducing manual input and significantly boosting development efficiency.
// Type function name, GLM-4.5 auto-completes implementation
function calculateTotal(items) {
    // GLM-4.5 automatically generates complete function implementation
}

Code Repository Q&A

Ask questions about your team’s codebase anytime to maintain a holistic understanding.
Q: How is user authentication implemented in this project?
A: GLM-4.5 analyzes your codebase and provides detailed explanations of the authentication process and related files.

Automated Task Management

One-click fixes for lint issues, merge conflicts, and release note generation.
# Auto-fix code style issues
Fix all ESLint errors

# Auto-generate documentation
Generate detailed documentation for this API

Advanced Features