跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.llmeasy.ru/llms.txt

Use this file to discover all available pages before exploring further.

Cline 是 VS Code 的 AI 编程助手插件。接入 LLMEasy 时,请选择 OpenAI Compatible 提供商,并使用 Codex 分组模型 ID。

前置条件

  • 已安装 VS Code
  • 已获取 LLMEasy API Key(注册并获取 (https://www.llmeasy.ru/register))

安装 Cline

打开 VS Code,在扩展市场搜索 Cline,点击 Install 安装。

配置步骤

1

清除冲突的环境变量

unset OPENAI_API_KEY
unset OPENAI_BASE_URL
2

打开 Cline 配置界面

点击 Cline 侧边栏中的 Use your own API key
3

配置 API 提供商

按以下方式填写:
  • API ProviderOpenAI Compatible
  • Base URLhttps://www.llmeasy.ru/v1
  • API Key → 你的 LLMEasy API Key
  • Model → 从模型广场 (https://www.llmeasy.ru/pricing)复制的 Codex 分组模型 ID
4

仅在官方文档明确要求时再配置额外 headers

我们查到的 Cline 官方 OpenAI Compatible 接入文档默认只要求 Base URL、API Key 和模型 ID。接入 LLMEasy 时通常不需要额外设置 User-Agent如果你还接了自定义网关、租户路由或审计服务,再按对应上游服务的官方文档补充所需 headers。
5

保存配置

点击右上角 Done 保存配置。
6

重启 Cline

修改配置后,请重启 VS Code 或重新加载 Cline 插件,使新配置生效。
优先检查 Base URL、API Key、模型 ID 和工具版本;不要默认把 User-Agent 当作 LLMEasy 必填项。