Skip to main content
Cline is a powerful VS Code plugin that lets you use AI models directly in your editor for code generation, file operations, and more.

Step 1: Installing the Cline Plugin

a. Open VS Code b. Click the Extensions Marketplace icon on the left c. Enter cline in the search box d. Locate the Cline extension and install it

Step 2: Configuring API Settings

Choose Use your own API Key, and fill in the relevant information according to the following settings:
  • 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:
    • Unchecking Support Images
    • Adjust Context Window Size based on your model (glm-5.2 is 1000000; other models 200000)
    • Adjust temperature and other params according to your task requirements.

Getting Started

Once configured, you can enter your requirements in the input box to let the model assist you with various coding tasks.

Coding Plan MCP Servers

Refer to the Vision MCP Server , Search MCP Server and Web Reader MCP Server documentation; once configured, you can use them in Cline.