Hermes Agent 命令速查表

社区话题 📺 VFX Pipeline | 数字创意工作流 Hermes Agent 命令速查表

标签: ,

  • 该话题为空。
正在查看 0 条回复
  • 作者
    帖子
    • #132329

      追光
      参与者

      Hermes Agent 完整命令参考手册

      Hermes Agent 实际使用案例

      🚀 最常用的命令

      # 交互式聊天
      hermes
      
      # 单次查询
      hermes chat -q "你的问题"
      
      # 配置向导
      hermes setup
      
      # 设置模型
      hermes model set --provider anthropic --model "claude-3-5-sonnet"
      
      # 启用工具
      hermes tools enable terminal
      
      # 启动网关
      hermes gateway telegram start
      
      # 诊断
      hermes doctor

      📦 安装相关

      命令说明
      curl .../install.sh | bash
      安装 Hermes
      hermes setup
      运行配置向导
      hermes update
      更新到最新版本
      uv pip install -e ".[voice]"
      安装语音支持
      hermes computer-use install
      安装计算机使用工具

      💬 聊天相关

      命令说明示例
      hermes
      交互式聊天
      hermes
      hermes chat
      单次查询
      hermes chat -q "Hello"
      hermes chat --provider <p>
      指定提供商
      hermes chat --provider anthropic
      hermes chat --model <m>
      指定模型
      hermes chat --model "claude-3-5-sonnet"
      hermes chat --worktree
      隔离工作区
      hermes chat --worktree
      hermes chat --quiet
      静默模式
      hermes chat -q
      hermes chat --checkpoints
      启用检查点
      hermes chat --checkpoints
      hermes chat --resume <id>
      恢复会话
      hermes chat --resume abc123
      hermes chat --continue <name>
      继续会话
      hermes chat --continue "上次"

      🔧 工具管理

      命令说明
      hermes tools
      交互式工具配置
      hermes tools enable <tool>
      启用工具
      hermes tools disable <tool>
      禁用工具
      hermes tools list
      列出所有工具
      hermes tools status
      查看工具状态
      hermes tools show
      显示工具详情
      hermes tools enable all
      启用所有工具
      hermes tools disable all
      禁用所有工具
      hermes tools enable terminal
      启用终端工具
      hermes tools enable web
      启用 Web 工具
      hermes tools enable browser
      启用浏览器工具
      hermes tools enable wechat
      启用微信工具

      🧠 技能管理

      命令说明
      hermes skills list
      列出所有技能
      hermes skills search <q>
      搜索技能
      hermes skills install <name>
      安装技能
      hermes skills uninstall <name>
      卸载技能
      hermes skills enable <name>
      启用技能
      hermes skills disable <name>
      禁用技能
      hermes skills installed list
      查看已安装技能
      hermes skills show <name>
      查看技能详情

      ⚙️ 配置管理

      命令说明
      hermes config
      交互式配置
      hermes config set <key> <value>
      设置配置
      hermes config show
      显示配置
      hermes config get <key>
      获取配置值
      hermes config backup <path>
      备份配置
      hermes config restore <path>
      恢复配置
      hermes config set -f <key>=<val>
      批量设置

      👤 Profile 管理

      命令说明
      hermes profile list
      列出所有 Profile
      hermes profile create <name>
      创建 Profile
      hermes profile use <name>
      使用 Profile
      hermes profile configure <name>
      配置 Profile
      hermes profile delete <name>
      删除 Profile
      hermes profile reset <name>
      重置 Profile

      🌉 网关管理

      命令说明
      hermes gateway
      交互式网关配置
      hermes gateway <platform> start
      启动网关
      hermes gateway stop
      停止网关
      hermes gateway restart
      重启网关
      hermes gateway logs
      查看日志
      hermes gateway config
      网关配置

      🏥 诊断与维护

      命令说明
      hermes doctor
      系统诊断
      hermes doctor --verbose
      详细诊断
      hermes doctor check-keys
      检查 API 密钥
      hermes doctor check-config
      检查配置
      hermes doctor check-tools
      检查工具
      hermes doctor check-models
      检查模型
      hermes doctor check-gateway
      检查网关
      hermes doctor fix
      修复问题

      🔍 浏览器扩展管理

      命令说明
      hermes browser-extension status
      查看状态
      hermes browser-extension enable
      启用扩展
      hermes browser-extension doctor
      诊断问题
      hermes browser-extension logs
      查看日志

      🖥️ 计算机使用工具

      命令说明
      hermes computer-use install
      安装 cua-driver
      hermes computer-use doctor
      诊断问题

      🎯 全局选项

      # --version, -V          # 显示版本
      # --profile <name>, -p   # 选择 Profile
      # --resume <session>     # 恢复会话
      # --continue [name]      # 继续会话
      # --worktree, -w         # 隔离工作区
      # --yolo                 # 跳过确认
      # --pass-session-id      # 加入 session ID
      # --ignore-user-config   # 忽略用户配置
      # --ignore-rules         # 跳过规则
      # --tui                  # TUI 模式
      # --dev                  # 开发模式

      📝 常用配置示例

      ~/.hermes/config.yaml

      model:
        provider: anthropic
        model: claude-3-5-sonnet-20241022
      
      agent:
        max_turns: 90
        tool_choice: auto
      
      tools:
        enabled:
          - terminal
          - web
          - skills
        disabled: []
      
      quick_commands:
        status:
          type: exec
          command: hermes doctor
        gpu:
          type: exec
          command: nvidia-smi
        restart:
          type: alias
          target: /gateway restart

      ~/.hermes/.env

      # API Keys
      OPENAI_API_KEY=sk-xxx
      ANTHROPIC_API_KEY=sk-xxx
      TELEGRAM_BOT_TOKEN=xxx
      # ... 其他密钥

      🌐 平台命令

      # Telegram
      hermes gateway telegram config set bot_token=$TELEGRAM_BOT_TOKEN
      hermes gateway telegram start
      
      # Discord
      hermes gateway discord config set client_id=$DISCORD_CLIENT_ID
      hermes gateway discord config set client_secret=$DISCORD_CLIENT_SECRET
      hermes gateway discord start
      
      # Slack
      hermes gateway slack config set bot_token=$SLACK_BOT_TOKEN
      hermes gateway slack start
      
      # WhatsApp
      hermes gateway whatsapp config set phone_number=$PHONE_NUMBER
      hermes gateway whatsapp start
      
      # Signal
      hermes gateway signal config set device_id=$DEVICE_ID
      hermes gateway signal start
      
      # Email
      hermes gateway email config set smtp_server=$SMTP_SERVER
      hermes gateway email config set from_address=$FROM_EMAIL
      hermes gateway email start

      🔄 快捷命令(在 config.yaml 中定义)

      quick_commands:
        status:
          type: exec
          command: hermes doctor
        gpu:
          type: exec
          command: nvidia-smi --query-gpu=name,memory.total --format=csv,noheader
        restart:
          type: alias
          target: /gateway restart
        models:
          type: exec
          command: hermes model list
        tools:
          type: exec
          command: hermes tools status
        skills:
          type: exec
          command: hermes skills list

      然后可以在聊天中使用:

      /status    # 运行 hermes doctor
      /gpu       # 运行 nvidia-smi
      /restart   # 重启网关
      /models    # 列出模型
      /tools     # 工具状态
      /skills    # 列出技能

      💡 提示

      • 首次安装后,先运行
        hermes setup

        完成配置

      • 使用
        hermes doctor

        诊断任何问题

      • 使用 Profile 分离不同环境的配置
      • 浏览器扩展需要手动安装到 Chrome/Edge
      • 网关支持多种平台,可以组合使用
      • 使用
        --tui

        启动现代化的终端界面


      速查表版本: 1.0 | 最后更新: 2026-05-25

正在查看 0 条回复
  • 在下方一键注册,登录后就可以回复啦。