其他客户端
只配置自己要用的先按第 7 步确认 Codex 已经正常回复且出现新使用记录。下面的软件只选自己需要的,并不是全部都要安装。
不同软件的菜单名字可能不同。找到 Provider、Base URL、API Key、Protocol 和 Model 后,按协议填写:
| 客户端 | Base URL | 协议 | 模型 |
|---|---|---|---|
| VS Code(Continue / Cline)、Cherry Studio、ChatBox、Cursor | https://api.zhiwei.dpdns.org/v1 | OpenAI Compatible | 当前分组支持的 GPT 模型 |
| Claude Desktop | https://api.zhiwei.dpdns.org | Anthropic | 当前分组支持的 Claude 模型 |
| OpenClaw | https://api.zhiwei.dpdns.org | anthropic-messages | 当前分组支持的 Claude 模型 |
| Gemini CLI | https://api.zhiwei.dpdns.org | Gemini | 当前分组支持的 Gemini 模型 |
| OpenCode Gemini provider | https://api.zhiwei.dpdns.org/v1beta | Gemini v1beta | 当前分组支持的 Gemini 模型 |
| Hermes | https://api.zhiwei.dpdns.org/v1 或 https://api.zhiwei.dpdns.org | chat_completions 或 anthropic_messages | 与所选协议匹配 |
VS Code、ChatBox、Cherry Studio、Cursor 和 Cline
VS Code 先确认正在使用的扩展:
- OpenAI Codex 扩展: 按下载并打开 Codex配置,使用 Responses、根地址
https://api.zhiwei.dpdns.org和本机 Codex 配置,不要填/v1。 - Continue 或 Cline: 按本节使用 OpenAI Compatible,Base URL 填
https://api.zhiwei.dpdns.org/v1,模型从当前分组复制。
VS Code 中的 Cline、ChatBox、Cherry Studio 和 Cursor 都选择 OpenAI Compatible / Custom OpenAI,API Key 粘贴完整 Key。Base URL 不要填根地址,也不要再加 /chat/completions。
VS Code 使用 Continue 时,先安装 Continue 扩展,再编辑用户级 config.yaml。macOS / Linux 路径是 ~/.continue/config.yaml,Windows 是 %USERPROFILE%\.continue\config.yaml。已有配置时只合并下面的模型项:
yaml
name: 智维
version: 1.0.0
schema: v1
models:
- name: 智维
provider: openai
model: "gpt-5.5"
apiBase: "https://api.zhiwei.dpdns.org/v1"
apiKey: "sk-your-api-key"保存后在对应扩展或客户端中选择刚新增的模型,发送 hi。Continue 没有自动显示新模型时,在 VS Code 命令面板运行 Developer: Reload Window。Continue 当前使用 config.yaml,不要再编辑旧的 config.json。
Claude Desktop
从 Claude 下载页安装并完全退出应用。在 CC Switch 顶部选择 Claude Desktop,不要选终端图标的 Claude Code,然后新增自定义配置:
- 请求地址
https://api.zhiwei.dpdns.org不加/v1/messages- API Key
- 粘贴完整 Key不要添加
Bearer - 模型
- 无需手动填写最新版 CC Switch 会根据当前 Key 自动映射
保存并启用后完全退出 Claude Desktop,再重新打开并发送 hi。
OpenClaw(小龙虾)
OpenClaw 不按普通 OpenAI Compatible 配置。先确认 Node.js 不低于 22.19,再安装:
macOS / Linux / WSL2:
bash
curl -fsSL https://openclaw.ai/install.sh | bashWindows PowerShell:
powershell
iwr -useb https://openclaw.ai/install.ps1 | iex在 CC Switch 选择 OpenClaw,地址填 https://api.zhiwei.dpdns.org,协议设为 anthropic-messages;模型由最新版 CC Switch 根据当前 Key 自动映射,无需手动选择。保存并启用后运行:
bash
openclaw config validate
openclaw gateway restart
openclaw models list
openclaw dashboard如果配置未生效,先看 openclaw config validate 的具体路径和字段,再重启 Gateway。
Gemini CLI
Gemini CLI 使用环境变量:
macOS / Linux:
bash
export GOOGLE_GEMINI_BASE_URL="https://api.zhiwei.dpdns.org"
export GEMINI_API_KEY="sk-your-api-key"
export GEMINI_MODEL="gemini-2.0-flash"Windows PowerShell:
powershell
$env:GOOGLE_GEMINI_BASE_URL="https://api.zhiwei.dpdns.org"
$env:GEMINI_API_KEY="sk-your-api-key"
$env:GEMINI_MODEL="gemini-2.0-flash"Gemini CLI 填根地址,由客户端自己拼 /v1beta。保存或导出环境变量后完全退出软件,再重新打开并发送 hi。
Hermes
在终端运行 hermes model,选择 Custom endpoint。GPT 模型使用 https://api.zhiwei.dpdns.org/v1 + chat_completions;Claude 模型使用 https://api.zhiwei.dpdns.org + anthropic_messages。手动配置写入 ~/.hermes/config.yaml,Key 放在 ~/.hermes/.env:
text
智维_API_KEY=sk-your-api-keyGPT 分组示例:
yaml
model:
provider: custom
default: gpt-5.5
base_url: https://api.zhiwei.dpdns.org/v1
api_mode: chat_completions
api_key: ${智维_API_KEY}使用 Claude 分组时,把 default 改成当前 Claude 模型、base_url 改为 https://api.zhiwei.dpdns.org、api_mode 改为 anthropic_messages。保存后运行 hermes,发送 hi;异常时运行 hermes doctor。
Antigravity 使用独立地址,按 Antigravity 接入 配置,不要套用普通 OpenAI 或 Gemini 地址。