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

# Cline 插件

> 本文档仅供参考，演示如何配置我们的 API 与第三方 AI 聊天界面配合使用。文中提及的任何第三方软件、网站或服务均非由我们运营、控制或背书。

# **Cline 插件简介**

<Frame>
  <img src="https://mintcdn.com/x6/el_h-gJpYp66h95k/images/image-52.png?fit=max&auto=format&n=el_h-gJpYp66h95k&q=85&s=5f7533561f93dc7dddaed808e7f81790" alt="Image" width="807" height="625" data-path="images/image-52.png" />
</Frame>

[Cline](https://github.com/cline/cline) 是一款驻留在您的编辑器和终端中的 AI 编程智能体。它可以读写文件、运行终端命令、使用浏览器，并通过自然对话帮助您构建功能。每项操作都需要您的明确授权，您始终掌握控制权。

# **步骤**

<Steps>
  <Step title="安装 Cline">
    从 [**VS Code**](https://code.visualstudio.com/download) 应用市场 **安装** **[Cline 扩展](https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev)。**

    <Frame>
      <img src="https://mintcdn.com/x6/el_h-gJpYp66h95k/images/image-53.webp?fit=max&auto=format&n=el_h-gJpYp66h95k&q=85&s=99da9dc5716ce2d0294a81fc6caadf17" alt="Image" width="975" height="303" data-path="images/image-53.webp" />
    </Frame>
  </Step>

  <Step title="模型配置与 API Key">
    点击侧边栏的 "Cline" 图标启动插件，然后点击 x. 如果出现"How will you use Cline", 请选择“Absoluately Free”。

    <Frame>
      <img src="https://mintcdn.com/x6/el_h-gJpYp66h95k/images/image-54.webp?fit=max&auto=format&n=el_h-gJpYp66h95k&q=85&s=eafa7ca97aad0aca3554b1d330693564" alt="Image" width="1360" height="938" data-path="images/image-54.webp" />
    </Frame>

    选择 API 提供商。

    <Frame>
      <img src="https://mintcdn.com/x6/el_h-gJpYp66h95k/images/image-56.webp?fit=max&auto=format&n=el_h-gJpYp66h95k&q=85&s=188bb139af5c31d56b6e59eaf68ba224" alt="Image" width="1360" height="938" data-path="images/image-56.webp" />
    </Frame>

    在以下字段中输入配置信息。

    <Frame>
      <img src="https://mintcdn.com/x6/el_h-gJpYp66h95k/images/image-59.webp?fit=max&auto=format&n=el_h-gJpYp66h95k&q=85&s=c633a0d27d3736451ac82a67d0f54f54" alt="Image 59" width="568" height="662" data-path="images/image-59.webp" />
    </Frame>

    以下示例使用 claude-opus-4.7，API 格式设置为 OpenAI。完成后点击 "Done"。

    | 字段           | 内容                                            |
    | :----------- | :-------------------------------------------- |
    | API Provider | 选择 "OpenAI Compatible"                        |
    | Base URL     | [https://api.x6.ai/v1](https://api.x6.ai/v1)  |
    | API Key      | 从 [x6.ai](https://x6.ai/settings/api-keys) 获取 |
    | Model ID     | claude-opus-4-7                               |

    您可以通过改变 Model ID 手动切换[模型](https://x6.ai/models)（需要使用 OpenAI 兼容的 API 格式）：

    <Frame>
      <img src="https://mintcdn.com/x6/el_h-gJpYp66h95k/images/image-92.webp?fit=max&auto=format&n=el_h-gJpYp66h95k&q=85&s=ef9f3c656edfaf3e9ab3efcaa88b089b" alt="Image" width="1180" height="913" data-path="images/image-92.webp" />
    </Frame>
  </Step>

  <Step title="使用 Cline">
    在输入框上方，您可以使用 Auto-approve 配置 Cline 的读写权限和命令执行权限。启用这些权限可增强自动化能力，但也可能增加 token 用量，建议在充分了解 Cline 行为后再启用。

    Cline 提供两种工作模式，可在对话框底部切换：

    * Plan 模式：专注于信息收集、问题拆解和任务规划，不直接修改文件。
    * Act 模式：根据规划执行变更、运行命令并完成任务。

    <Frame>
      <img src="https://mintcdn.com/x6/el_h-gJpYp66h95k/images/image-60.webp?fit=max&auto=format&n=el_h-gJpYp66h95k&q=85&s=d9e23be657638e0666c5d648660518ee" alt="Image" width="1360" height="938" data-path="images/image-60.webp" />
    </Frame>
  </Step>
</Steps>
