Windsurf
Windsurf(原 Codeium)是另一款 AI 代码编辑器,同样支持自定义 OpenAI 兼容 API。
配置步骤
- 打开 Windsurf,进入 Settings → Windsurf Settings
- 找到 Custom API 或 OpenAI API 部分
- 填写以下信息:
| 字段 | 值 |
|---|---|
| API Key | sk-你的Token |
| Base URL | https://aigateway.link/v1 |
- 保存后重启 Windsurf 使配置生效。
支持的模型
Windsurf 支持填写自定义模型 ID,可使用 AI Gateway 中任意可用的模型。
TIP
如果界面找不到自定义 Base URL 的入口,可以通过 Windsurf 的 JSON 配置文件设置,路径通常为 ~/.windsurf/settings.json。