> ## Documentation Index
> Fetch the complete documentation index at: https://docs.z.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Cline

> Methods for Using the GLM Coding Plan in Cline Plugin

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](/devpack/mcp/vision-mcp-server) , [Search MCP Server](/devpack/mcp/search-mcp-server) and [Web Reader MCP Server](/devpack/mcp/reader-mcp-server) documentation; once configured, you can use them in Cline.
