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

# Cline

> 在 Cline 插件中使用 GLM Coding Plan 的方法

Cline 是一个强大的 VS Code 插件，可以帮助您在编辑器中直接使用 AI 模型进行代码生成、文件操作等任务。

<Warning>
  使用 GLM Coding Plan 时，需要配置专属的 Coding API 端点 [https://open.bigmodel.cn/api/coding/paas/v4](https://open.bigmodel.cn/api/coding/paas/v4) 而不是通用 API 端点
</Warning>

<Tip>
  使用最新 GLM 模型，需要修改自定义模型编码为对应的模型编码
</Tip>

## 一、安装 Cline 插件

1. 打开 VS Code
2. 点击左侧插件市场图标
3. 在搜索框中输入 `cline`
4. 找到 `Cline` 扩展安装

## 二、配置 API 设置

选择 `Use your own API Key`，并按照以下配置填入相关信息：

* **API Provider**：选择 `OpenAI Compatible`
* **Base URL**：输入 `https://open.bigmodel.cn/api/coding/paas/v4`
* **API Key**：填入您的智谱 API Key
* **模型**：选择"使用自定义"，并输入您要使用的 GLM 模型编码 （如：`glm-5.2`）
* **其他配置**：
  * 取消勾选 **Support Images**
  * 调整 **Context Window Size**：根据您使用的模型调整（`glm-5.2` 为 `1000000` 其它模型为 `200000` ）
  * 根据您的任务需求调整 `temperature` 等其它参数

## 三、开始使用

配置完成后，您可以在输入框中输入需求，让模型帮助您完成各种编码任务。

## 四、套餐 MCP 服务器

参考 [视觉MCP服务器](/cn/coding-plan/mcp/vision-mcp-server) ，[搜索MCP服务器](/cn/coding-plan/mcp/search-mcp-server) 和 [网页读取MCP服务器](/cn/coding-plan/mcp/reader-mcp-server) 文档，配置完成后即可在 Cline 中使用。
