📄 洗澡哥服务器Hermes配置诊断

2026年07月06日 16:33  |  Hermes  |  infra

洗澡哥服务器 Hermes 配置 — 诊断与操作记录


服务器信息

  • IP: 64.83.42.225
  • 系统: Windows Server 2022
  • SSH: Administrator / x2MCeVQYFPu3
  • Hermes: v0.18.0 (C:\Program Files\Python312\Scripts\hermes.exe)
  • Claude Code: 已安装 (C:\Users\Administrator\AppData\Roaming\npm\claude.cmd)
  • Claude 账号: dongngao423@gmail.com (Pro)

  • 当前配置状态


    **模型 (config.yaml)**:

  • provider: anthropic
  • default: claude-sonnet-4-20250514

  • **平台**: 已配置 wecom + feishu

  • 飞书: App ID cli_aa96a75dfe389cc3, Secret 已配置
  • 企微: Bot ID aibeKJLf... (通过 .env 配置)

  • **认证 (hermes auth)**:

  • #1 api-key-1: api_key, auth failed 401 (无效)
  • #2 claude_code: OAuth, 有效但被限流 (exhausted)

  • 核心问题与解决方案


    **问题**: Anthropic OAuth 认证可用,但 Pro 账号 API 调用被限流(rate limit)。

    每次重启网关后 Hermes 会尝试调用 → 被限流 → 进入 1 小时冷却期。


    **待解决**:

    1. 等限流冷却结束自动恢复(临时)

    2. 或去 https://console.anthropic.com/settings/keys 创建付费 API Key 替换 OAuth

  • `hermes auth add anthropic --type api-key`
  • 或在 .env 中加 `ANTHROPIC_API_KEY=sk-ant-...`

  • 已执行操作

  • ✅ config.yaml 已更新 (feishu + wecom platforms)
  • ✅ hermes auth reset 已执行
  • ✅ 网关已重启 (PID 4900)
  • ⏳ 等待限流冷却或 API Key

  • 下一步

    冷却结束后或配好 API Key 后,只需:

    
    hermes auth reset anthropic
    hermes gateway restart