在 CC-Switch 中配置 Claude Code 时,请使用不带Documentation Index
Fetch the complete documentation index at: https://docs.000328.xyz/llms.txt
Use this file to discover all available pages before exploring further.
/v1 的基础地址。
配置步骤:
- 打开 CC-Switch。
- 在顶部工具分组中选择
Claude或Claude Code。 - 点击添加供应商。
- 如果没有 Matrix 预设模板,选择自定义供应商。
- 填写供应商信息:
| 字段 | 值 |
|---|---|
| 供应商名称 | Matrix Claude |
| API Key | sk-你的ClaudeCode分组APIKey |
| Base URL | https://matrix.000328.xyz:2053 |
- 保存供应商配置。
- 将
Matrix Claude设置为当前启用供应商。 - 关闭并重新打开终端。
- 在项目目录运行:
- Base URL 是否为
https://matrix.000328.xyz:2053。 - Base URL 末尾是否误加了
/v1。 - API Key 是否属于 Claude Code 对应分组。
- 修改配置后是否已经重启 Claude Code 和终端。
| 系统 | 配置文件 |
|---|---|
| Windows | %USERPROFILE%\.claude\settings.json |
| macOS / Linux | ~/.claude/settings.json |