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

# Cline 配置指南

> 在 VS Code 的 Cline 扩展里配置 YeLin AI 的 OpenAI 兼容接口。

<Info>
  Cline 支持使用 OpenAI 兼容接口。
  你只需要 base URL 和 **API key**。
</Info>

## 你先准备什么

1. 你在 **Console** 创建 **API key**。
2. 你已安装 VS Code 和 Cline 扩展。

## 配置步骤

1. 打开 VS Code。
2. 打开 Cline 的 **Settings**。
3. 选择 **OpenAI-compatible**（或 OpenAI provider）。
4. 填入以下参数。

| 字段       | 你要填什么                        |
| -------- | ---------------------------- |
| Base URL | `https://api.yelinai.com/v1` |
| API key  | 你在 **Console** 复制的 key       |
| Model    | 例如 `gpt-4o-mini`             |

## 验证

你让 Cline 执行一个简单任务。
例如“读取当前文件并总结”。

## 常见问题

### 报 401

你检查 **API key** 是否正确。
你也检查 key 是否带了空格或换行。

### 模型不可用

你先拉取模型列表。
你再用列表里的模型 id。

<CardGroup cols={2}>
  <Card title="模型列表" icon="list" href="/api-reference/models">
    获取模型 id。
  </Card>

  <Card title="可用模型与权限" icon="server" href="/faq/model-availability">
    了解为什么模型不可用。
  </Card>
</CardGroup>
