Skip to main content
Cline is a powerful VS Code plugin that allows you to directly use AI models in the editor for tasks such as code generation and file operations.

Step 1: Installing the Cline Plugin

1. Open the Extensions Marketplace

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 Description

2. Install the Plugin

a. Click the Install button to install b. After installation, choose to trust the developer Description

Step 2: Configuring API Settings

1. Select API Key Method

Choose Use your own API Key Description

2. Enter Configuration Information

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 model name (e.g., glm-4.6)
  • Other Configurations:
    • Unchecking Support Images
    • Adjust Context Window Size to 204800
    • Adjust temperature and other params according to your task requirements.
Description

Step 3: Getting Started

Once configured, you can enter your requirements in the input box to let the model assist you with various tasks, such as:
  • Creating and editing files
  • Generating code
  • Refactoring code
  • Explaining code logic
  • Debugging issues
Description

Step 4: Vision and Search MCP

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