forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlesson-ccswitch-hermes-switch.json
More file actions
12 lines (12 loc) · 2 KB
/
Copy pathlesson-ccswitch-hermes-switch.json
File metadata and controls
12 lines (12 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
{
"task_id": "lesson-ccswitch-hermes-switch",
"title": "Ccswitch Hermes Switch",
"domain": "general",
"tags": [
"contrib"
],
"problem": "Claude Code (cc) 和 Hermes Agent 使用不同的配置文件/代理通道,各自需要独立的模型管理方案。手动改配置容易出错(改错文件、两侧不一致)。",
"solution": "两个独立脚本,各管各的:\n\n### ccswitch — 给 Claude Code 用\n\n`~/ccswitch` — 一键切换 cc 的模型+代理上游。\n\n```bash\nccswitch list # 可用模型\nccswitch status # 当前配置\nccswitch ds-flash # 切到 DeepSeek Flash\n```\n\n自动做三件事:\n1. 更新 `~/.claude/settings.json`(WSL 侧)\n2. 更新 `/mnt/c/Users/hp/.claude/settings.json`(Windows 侧)\n3. 重启 `~/anthropic-openai-proxy.py` 换上游\n\n### hermes-switch — 给 Hermes Agent 用\n\n`~/hermes-switch` — 一键切换 Hermes 的 model/provider/base_url。\n\n```bash\nhermes-switch list # 可用模型\nhermes-switch status # 当前配置\nhermes-switch ds-flash # 切到 DeepSeek Flash\n```\n\n改的是 `~/.hermes/config.yaml` 的 `model.default` / `model.provider` / `model.base_url`。\n\n### 常用组合\n\n```bash\n# cc 跑 DeepSeek,Hermes 跑 InternalModel(省 Hermes token)\nccswitch ds-flash\nhermes-switch InternalModel-2.5-pro\n\n# cc 跑 InternalModel,Hermes 跑 DeepSeek(cc 省 token)\nccswitch InternalModel-2.5-pro\nhermes-switch ds-flash\n```\n\n### 支持的模型\n\n| 短名 | 模型 | 上游 |\n|------|------|------|\n| ds-flash | deepseek-v4-flash | DeepSeek |\n| ds-pro | deepseek-v4-pro | DeepSeek |\n| InternalModel-2.5-pro | internal/InternalModel-v2.5-pro | InternalGateway |\n| InternalModel-2.5 | internal/InternalModel-v2.5 | InternalGateway |\n| InternalModel-2-pro | internal/InternalModel-v2-pro | InternalGateway |\n| InternalModel-flash | internal/InternalModel-v2-flash | InternalGateway |",
"source": "lessons/contrib/ccswitch-hermes-switch.md",
"test_cmd": ""
}