| confidence | 0.7 | ||
|---|---|---|---|
| created | 2026-05-02 | ||
| domain | devops | ||
| source | bootstrap | ||
| status | draft | ||
| tags |
|
||
| title | ccswitch-hermes-switch 踩坑记录 |
Domain: devops | Tags: ccswitch, hermes-switch, model, switching, proxy, deepseek, InternalGateway | Source: hermes_wsl
Claude Code (cc) 和 Hermes Agent 使用不同的配置文件/代理通道,各自需要独立的模型管理方案。手动改配置容易出错(改错文件、两侧不一致)。
两个独立脚本,各管各的:
~/ccswitch — 一键切换 cc 的模型+代理上游。
ccswitch list # 可用模型
ccswitch status # 当前配置
ccswitch ds-flash # 切到 DeepSeek Flash自动做三件事:
- 更新
~/.claude/settings.json(WSL 侧) - 更新
/mnt/c/Users/hp/.claude/settings.json(Windows 侧) - 重启
~/anthropic-openai-proxy.py换上游
~/hermes-switch — 一键切换 Hermes 的 model/provider/base_url。
hermes-switch list # 可用模型
hermes-switch status # 当前配置
hermes-switch ds-flash # 切到 DeepSeek Flash改的是 ~/.hermes/config.yaml 的 model.default / model.provider / model.base_url。
# cc 跑 DeepSeek,Hermes 跑 InternalModel(省 Hermes token)
ccswitch ds-flash
hermes-switch InternalModel-2.5-pro
# cc 跑 InternalModel,Hermes 跑 DeepSeek(cc 省 token)
ccswitch InternalModel-2.5-pro
hermes-switch ds-flash| 短名 | 模型 | 上游 |
|---|---|---|
| ds-flash | deepseek-v4-flash | DeepSeek |
| ds-pro | deepseek-v4-pro | DeepSeek |
| InternalModel-2.5-pro | internal/InternalModel-v2.5-pro | InternalGateway |
| InternalModel-2.5 | internal/InternalModel-v2.5 | InternalGateway |
| InternalModel-2-pro | internal/InternalModel-v2-pro | InternalGateway |
| InternalModel-flash | internal/InternalModel-v2-flash | InternalGateway |
~/ccswitch— cc 切换脚本~/hermes-switch— Hermes 切换脚本~/.hermes/config.yaml— Hermes 配置(含完整 fallback 链)/tmp/proxy_env.sh— InternalGateway API key~/anthropic-openai-proxy.py— 本地代理