Hermes使用

39 阅读2分钟

Hermes使用

版本 Hermes 0.17.0 + ccswitch 3.14.6 (2026年6月29日 22:42:20)

Hermes配置模型(包括中转)

核心命令

  1. 测试Hermes是否安装成功:hermes --version
  2. 运行完整设置向导(一次性配置所有内容):hermes setup
  3. 单独配置某一个profile:hermes setup --profile xxx_profile
  4. 输入hermes默认进入指定的profile:hermes profile use xxx_profile
  5. 单独配置某一项:最直接的方法是先查看配置文件路径hermes config path,然后打开那个config.yaml手动改。或者:
hermes config set model.base_url https://baseurl地址/v1
hermes config set model.provider
hermes config set model.api_key

设置步骤

  1. 模型提供商:选 Custom (OpenAI-compatible endpoint)(绝对不能选 OpenAI 官方选项)
  2. API Base URL:完整粘贴官方地址 api.stepfun.com/step_plan/v…
  3. API Key:粘贴你的密钥
  4. 默认模型:先填官方推荐的验证模型 step-3.7-flash(跑通后再换其他型号)
  5. 后续可选配置保持默认
  6. 配置完成后验证:
    • 检查配置健康状态 hermes --profile stepfun_profile doctor

    • 测试聊天调用 hermes --profile stepfun_profile chat

  7. 手动编辑配置文件,打开对应 profile 配置:hermes config edit --profile stepfun_profile

🍎后面不用看,ccswitch当前版本对Hermes支持不够,bug也多,暂时先不要用css去下载安装Hermes

Hermes对接CCSwitch【未支持】

2026年6月29日 22:44:34 当前3.14.6版本不支持,未来一定会有

验证网络

  1. 先测试网络是否正常
  2. 验证端口确在监听:netstat -ano | findstr "LISTENING" | findstr "7890"
  3. 验证能否正常转发:Invoke-WebRequest -Uri "www.google.com" -Method Head

设置步骤

  1. 打开ccs的hermes入口,自定义配置中填好相应baseurl和key
  2. 找个目录右键打开powershell,输入 hermes model,选择 Custom endpoint (enter URL manually)
  3. Base URL 填:http://127.0.0.1:15721/v1(和你 Codex 用的本地代理端口一致),少了v1后缀会 404
  4. API Key 随便填:比如填 ccswitch(本地代理不需要真实鉴权,占位即可)
  5. 默认模型名填:gpt-5.5,如果报错模型不存在就是这里出的问题
  6. 确认设为默认提供商,完成配置
  7. 验证:执行 hermes 启动会话,发一句 hello,不再弹配置提示、能正常回复就是通了。此时去 CC Switch 「使用统计」里能看到 Hermes 应用产生了调用记录,就是走代理成功了。 8.注意:走 CC Switch 代理时,必须保持 CC Switch 后台运行,关了代理就断了。修改配置后,要关闭 Hermes 会话重新启动才会生效

参考链接:www.doubao.com/thread/x0c3…