Files
haiyushuke-website/content/integrations/cline.mdx
2026-07-02 12:58:18 +08:00

34 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Cline 接入
sidebarTitle: Cline
description: 在 VS Code 的 Cline 扩展中使用海宇 OpenAI 兼容 API
---
# Cline 接入
[Cline](https://github.com/cline/cline)(原 Claude Dev是 VS Code 中的自主编程扩展,支持通过 **OpenAI 兼容 API** 使用自定义模型。
## 前置条件
- 控制台创建 **API Key**,并确认可用模型包含目标 ID
## 配置步骤
1. 打开 VS Code → Cline 侧边栏 → **Settings**(设置)
2. 选择 API Provider 为 **OpenAI Compatible** / **OpenAI**(以扩展当前版本为准)
3. 填写:
- **Base URL**`https://api.haiyushuke.com/v1`
- **API Key**:海宇 API Key
- **Model ID**:模型广场中的 ID如 `glm-5.1`、`deepseek-chat` 等)
4. 保存并新建任务测试
## 注意
- 扩展界面若默认展示海外模型名称,请 **手动改为** 控制台国内模型 ID。
- 复杂 Agent 任务消耗 token 较多,请关注 [计费与财务](/docs/guides/billing) 与余额告警。
## 相关文档
- [Cursor 接入](/docs/integrations/cursor)
- [工具接入概览](/docs/integrations/overview)