Methods for Using the GLM Coding Plan in Claude Code

2 hours ago 2

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows — all through natural language commands.

Step 1: Installing the Claude Code

Step 2: Config GLM Coding Plan

Step 3: Start with Claude Code

Once the configuration is complete, you can start using Claude Code in your terminal or cmd:

cd your-project-directory claude
If prompted with “Do you want to use this API key,” select “Yes.”

After launching, grant Claude Code permission to access files in your folder as shown below: Description You can use Claude Code for development Now!


FAQ

How to Switch the Model in Use

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

  1. Configure ~/.claude/settings.json with the following content:
{ "env": { "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-4.5-air", "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-4.6", "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-4.6" } }
  1. Open a new terminal window and run claude to start Claude Code, enter /status to check the current model status.

Description

Vision and Search MCP

Refer to the Vision MCP Server and Search MCP Server documentation; once configured, you can use them in Claude Code.

Manual Configuration Not Work

If you manually modified the ~/.claude/settings.json configuration file but found the changes did not take effect, refer to the following troubleshooting steps.

  • Close all Claude Code windows, open a new command-line window, and run claude again to start.
  • If the issue persists, try deleting the ~/.claude/settings.json file and then reconfigure the environment variables; Claude Code will automatically generate a new configuration file.
  • Confirm that the JSON format of the configuration file is correct, check the variable names, and ensure there are no missing or extra commas; you can use an online JSON validator tool to check.

We recommend using the latest version of Claude Code. You can check the current version and upgrade with the following commands:

We have verified compatibility with Claude Code 2.0.14 and other versions.
# Check the current version claude --version 2.0.14 (Claude Code) # Upgrade to the latest claude update
Read Entire Article