 配置 Claude Code 接入 阿里云百炼 (Dashscope))
相关文章用 CC Switch (cc-sw) 配置 Claude Code 接入 MiniMax-CSDN博客安装 Claude Codevs code 安装 claude code安装 CC Switch下载https://github.com/farion1231/cc-switch/releasesWindows:.msimacOS:.dmgLinux:.AppImage/.deb安装后托盘出现 CC Switch 图标获取百炼 API Key登录https://dashscope.console.aliyun.com/左侧API-KEY 管理→创建新的 API-KEY复制sk-xxxxxxxxxxxx保存好只显示一次CC Switch 添加百炼配置图形化打开 CC Switch → 点右上角 (Add Provider)填写直接照抄Provider Name:阿里云百炼自定义API Type:Anthropic CompatibleAPI Base URL:plaintexthttps://dashscope.aliyuncs.com/api/v2/apps/claude-code-proxyAPI Key: 粘贴你百炼的sk-xxxModel可选默认:claude-3-5-sonnet-20241022或百炼支持的 Claude 模型名点Save / 添加→ 主界面出现「阿里云百炼」启用点一下「阿里云百炼」→ 状态变Active三、验证是否生效方式 1托盘 CC Switch → 查看当前选中「阿里云百炼」方式 2终端运行 能正常回复即成功。随便问一句能正常回复即成功。