# Continue 接入指南

Continue 是 VS Code 与 JetBrains 上的开源 AI 编程助手插件。本文介绍如何让它通过 UModelverse 平台调用模型。

## **系统要求**

| 平台 | 要求 |
| --- | --- |
| Windows | Windows 10 或 Windows 11 |
| macOS | macOS 10.15 (Catalina) 或更高版本 |
| Linux | 主流发行版（Ubuntu、Debian 等） |

所有平台均需要：已安装 [VS Code](https://code.visualstudio.com/) 或 JetBrains IDE，以及网络连接。

## **1. 安装 Continue**

-   **VS Code**：在扩展市场搜索 `Continue` 并安装。
    
-   **JetBrains**：在 Plugins 市场搜索 `Continue` 并安装。
    

安装后在侧边栏点击 Continue 图标打开面板。

## **2. 配置 UModelverse API**

### 2.1 获取 API Key

访问 [UModelverse 控制台](https://console.ucloud.cn/modelverse/api) 获取您的 API 密钥。可用模型见 UModelverse 平台[支持的模型](https://api.modelverse.cn/v1/models)。

### 2.2 编辑配置文件

Continue 的配置位于 `~/.continue/config.yaml`。打开该文件，在 `models` 下添加 UModelverse 模型（将 `YOUR_API_KEY` 替换为实际 Key）：

![Continue 配置文件示例](https://cdnv2-cache.udelivrs.com/2026/06/5b4c7f8e2a2f9e254c22e1b848eed36d_1781261163306.png)

```
models:
  - name: claude-sonnet-4-6
    provider: openai
    model: claude-sonnet-4-6
    apiBase: https://api.modelverse.cn/v1
    apiKey: YOUR_API_KEY
  - name: gpt-5.2
    provider: openai
    model: gpt-5.2
    apiBase: https://api.modelverse.cn/v1
    apiKey: YOUR_API_KEY
```

> 以上为示例，`model` 字段可替换为 UModelverse 平台[支持的模型](https://api.modelverse.cn/v1/models)中的任意一个。`provider` 保持 `openai`（OpenAI 兼容模式），`apiBase` 须带 `/v1`。

保存后在 Continue 面板底部的模型下拉中即可选择已添加的模型。

## **常见问题**

### 提示认证失败或无法连接？

请逐项确认：

1.  `apiKey` 来自 UModelverse 平台，复制完整且无空格。
    
2.  `provider` 为 `openai`、`apiBase` 为 `https://api.modelverse.cn/v1`。
    
3.  `model` 是 UModelverse 平台[支持的模型](https://api.modelverse.cn/v1/models)之一，没有写错。
