Hermes Agent常用命令大全

2026年7月5日 52点热度 0人点赞 0条评论

Hermes Agent

什么是 Hermes Agent?

       Hermes Agent 是 Nous Research 开发的开源自主 AI 智能体,于 2026 年 2 月发布。它不是绑定在 IDE 上的代码补全工具,也不是套壳聊天机器人——它住在你的服务器上,记住它学到的一切,运行越久能力越强。支持 Linux、macOS 和 WSL(Windows Subsystem for Linux ),一条 curl 命令即可安装,无需任何前置依赖。


一、安装hermes

1、Linux/WSL/MacOS系统的一键安装命令:
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

 

2、安装完成后重载一下Shell:
#Linux/WSL系统
source ~/.bashrc

#MacOS系统
source ~/.zshrc

 

二、使用hermes
1、启动hermes
hermes

 

2、手动设置
hermes setup

 

3、手动配置模型
hermes model

 

三、hermes配置相关

hermes config # 查看当前所有配置
hermes config edit # 用编辑器打开 config.yaml
hermes config set KEY VAL # 改某一项,比如 hermes config set terminal.backend docker
hermes config path # 查看配置文件路径
hermes config check # 检查有没有缺失或过期的配置
hermes config migrate # 升级配置格式

 

四、检查与自我修复

# 自我检查
hermes doctor

# 加 --fix 让它尝试自动修复
hermes doctor --fix

五、凭证池管理
hermes auth add              # 交互式添加凭证
hermes auth list             # 查看凭证池里有哪些
hermes auth remove P INDEX   # 删掉某个
hermes auth reset PROVIDER   # 重置「配额耗尽」状态

六、插件管理
hermes plugins list      # 查看已装的插件
hermes plugins install   # 装插件
hermes plugins remove    # 删插件

七、记忆体配置
hermes memory setup    # 配置外部记忆服务
hermes memory status   # 查看状态
hermes memory off      # 关掉外部记忆,回到本地

八、MCP管理
hermes mcp add NAME --url URL       # 添加一个 HTTP 类型的 MCP 服务器
hermes mcp add NAME --command CMD   # 添加一个命令行类型的
hermes mcp list                     # 查看已配置的服务器
hermes mcp test NAME                # 测试连接
hermes mcp configure NAME           # 配置该服务器暴露哪些工具
hermes mcp remove NAME              # 删掉
hermes mcp serve                    # 把 Hermes 本身作为 MCP 服务器运行

九、多实例管理(Profiles)
hermes profile list              # 查看所有 profile
hermes profile create NAME       # 创建新 profile
hermes profile use NAME          # 设为默认
hermes profile show NAME         # 看详情
hermes profile rename A B        # 改名
hermes profile delete NAME       # 删掉
hermes profile export NAME       # 导出成 tar.gz
hermes profile import FILE       # 从压缩包导入

十、日志
hermes logs              # 查看日志
hermes dump              # 导出安装和配置摘要,排错或提交 issue 时用
hermes insights          # 查看使用统计和分析
hermes insights --days 7 # 只看最近 7 天

十一、其他常用的
hermes status        # 查看所有组件状态
hermes version       # 查看版本号
hermes update        # 更新到最新版
hermes login         # OAuth 登录(Nous Portal、OpenAI Codex 等)
hermes logout        # 清除登录状态

十二、迁移OpenClaw
hermes claw migrate

十三、卸载hermes
hermes uninstall

十四、技能管理
hermes skills browse  # 浏览所有技能
hermes skills search kubernetes # 搜索关键词
hermes skills search react --source skills-sh # 搜索社区目录
hermes skills list       # 查看已装的技能
hermes skills inspect ID # 先预览,不安装
hermes skills update     # 更新过时技能
hermes skills uninstall  # 卸载
hermes skills publish    # 发布自己写的技能
hermes tools # 交互式启用/禁用工具
hermes tools list # 查看所有工具和状态
hermes tools enable NAME
hermes tools disable NAME
hermes toolsets # 查看工具集分组

十五、消息管理
hermes gateway setup    # 交互式配置,跟着提示走
hermes gateway run      # 前台启动
hermes gateway install  # 安装成后台服务
hermes gateway start    # 启动服务
hermes gateway stop     # 停止
hermes gateway restart  # 重启
hermes gateway status   # 查看状态

十六、定时任务
hermes cron create "09:00"   # 创建定时任务,跟着提示填提示词和投递平台
hermes cron list             # 查看所有任务
hermes cron edit ID          # 改时间、提示词、投递方式
hermes cron pause ID         # 暂停
hermes cron resume ID        # 恢复
hermes cron run ID           # 立即触发一次
hermes cron remove ID        # 删除
hermes cron status           # 查看调度器状态

十七、WebUI

Web 仪表盘是一个基于浏览器的 UI,用于管理你的 Hermes Agent 安装。无需编辑 YAML 文件或运行 CLI 命令,你可以通过一个简洁的 Web 界面来配置设置、管理 API 密钥以及监控会话。

hermes dashboard

选项

标志 默认值 描述
--port 9119 Web 服务器运行的端口
--host 127.0.0.1 绑定地址
--no-open 不自动打开浏览器
--insecure off 允许绑定到非 localhost 的主机(危险——会在网络上暴露 API 密钥;请配合防火墙和强认证使用)
--tui off 暴露浏览器内的聊天标签页(通过 PTY/WebSocket 嵌入的 hermes --tui)。也可以设置 HERMES_DASHBOARD_TUI=1

# 自定义端口
hermes dashboard --port 8080

# 绑定到所有接口(在共享网络上请谨慎使用)
hermes dashboard --host 0.0.0.0

# 启动时不打开浏览器
hermes dashboard --no-open

 

十八、斜杠指令

进入 Hermes 聊天之后,输入 / 会弹出自动补全菜单

会话控制👇

指令
用途
频率
-----
-------
-----
/new
开一个全新对话
/retry
重试上一条,删掉上次回复重新发
/undo
撤销上一轮,连你的消息一起删
/history
看当前会话的完整对话历史
/compress
手动压缩上下文,省 token
/background 提示词
把任务扔到后台跑,不打断当前对话
/btw 问题
临时提问,用当前上下文但不保存,不调工具
/queue 提示词
排队到下一轮再处理
/rollback
回滚文件改动,像时光机
/resume 名字
恢复某个命名会话
/stop
停掉所有后台进程
/title 名字
给当前会话起个好记的名字
/save
把对话保存到文件

配置相关👇

指令
用途
频率
-----
-------
-----
/model
查看或切换当前模型
/yolo
切换是否跳过危险命令确认
/voice on
开语音输入
/voice tts
让 Hermes 朗读回复
/reasoning high
调高推理强度(none/low/medium/high/xhigh)
/personality 名字
切换人格风格
/verbose
切换工具进度显示详细程度
/prompt 文本
查看或设置系统提示词
/skin 名字
换界面主题
/statusbar
开关顶部状态栏

工具与技能👇

指令
用途
频率
-----
-------
-----
/skill 名字
把某个技能加载进当前会话
/tools
管理工具
/skills
搜索或安装技能
/browser connect
连接本地 Chrome 浏览器(CDP 协议)
/paste
检查剪贴板里的图片并附加
/cron
管理定时任务
/reload-mcp
重新加载 MCP 服务器
/plugins
看已装的插件

信息查看👇

指令
用途
频率
-----
-------
-----
/help
看所有命令
/usage
看 token 用了多少
/profile
看当前用的是哪个配置档案
/insights
看使用统计
/provider
看当前提供商信息

退出用 /quit,或者 /exit,或者 /q,三个都行。

 

在 Telegram / Discord 等平台里,还有几个专属指令👇

指令
用途
-----
-------
/approve
批准 Hermes 要执行的危险命令
/deny
拒绝
/sethome
把当前聊天设为主频道,cron 任务默认推送到这里
/status
看当前会话信息
/commands
分页浏览所有命令
/update
在平台里直接更新 Hermes

veenyi

这个人很懒,什么都没留下

文章评论