# Hermes Agent

**Hermes Agent** 是一款免费、开源、自托管的 AI 智能体框架，由 Nous Research 用 Python 编写，于 2026 年 2 月以 MIT 许可证发布。它是一个持久化、能使用工具的智能体，而非聊天机器人：它运行在用户自己的服务器或虚拟机上，跨会话保存记忆，执行命令和代码，连接 [Telegram](https://www.edgepedia.org/zh/telegram-software)、Discord、Slack、WhatsApp 等消息平台，并从自身的任务经验中编写可复用的技能文件。<sup>[1](https://www.techradar.com/pro/how-to-automate-workflows-using-open-source-ai-agents)</sup><sup> • </sup><sup>[2](https://github.com/nousresearch/hermes-agent?pubDate=20260509)</sup> 其营销口号是“与你共同成长的智能体”，其显著特征是内置学习回路，能将已完成的工作转化为智能体日后复用的技能。<sup>[2](https://github.com/nousresearch/hermes-agent?pubDate=20260509)</sup>

| 关键事实 | 详情 |
|---|---|
| 开发商与许可证 | Nous Research；MIT 许可证，免费且无功能限制；2026 年 2 月发布<sup>[1](https://www.techradar.com/pro/how-to-automate-workflows-using-open-source-ai-agents)</sup><sup> • </sup><sup>[3](https://axis-intelligence.com/hermes-agent-review-tested/)</sup> |
| 采用情况 | 截至 2026 年 6 月中旬，GitHub 星标超过 19 万；后续抓取数据显示为 25.3 万星标、5.47 万分支<sup>[1](https://www.techradar.com/pro/how-to-automate-workflows-using-open-source-ai-agents)</sup><sup> • </sup><sup>[2](https://github.com/nousresearch/hermes-agent?pubDate=20260509)</sup> |
| 自我改进 | 从经验中创建技能，并在使用过程中改进技能；TokenMix.ai 的一项基准测试发现，拥有 20 项以上自创技能的智能体完成类似未来任务的速度快 40%，以重复任务类别的 token 消耗和完成时间衡量<sup>[3](https://axis-intelligence.com/hermes-agent-review-tested/)</sup> |
| 记忆 | 有界、经过精心整理的持久化记忆，存储于 `MEMORY.md` 和 `USER.md`，在会话启动时注入；每一次过往对话都保存在数据库中，智能体可按需检索<sup>[4](https://hermes-agent.nousresearch.com/docs/user-guide/features/memory)</sup><sup> • </sup><sup>[5](https://everpod.ai/guides/openclaw-vs-hermes)</sup> |
| 沙盒 | 五种执行后端：本地、Docker、SSH、Singularity 和 Modal<sup>[6](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_hermes_agent_CVEs_20260504-csa-styled.pdf)</sup> |
| 模型支持 | 与模型无关：支持 Nous Portal、OpenRouter、OpenAI、Anthropic，或通过 Ollama、vLLM、llama.cpp 等使用本地端点；64,000 token 的上下文窗口为硬性最低标准，启动时强制执行<sup>[2](https://github.com/nousresearch/hermes-agent?pubDate=20260509)</sup><sup> • </sup><sup>[3](https://axis-intelligence.com/hermes-agent-review-tested/)</sup> |
| 安全记录 | 2026 年 4 月的一次审计在默认配置中发现 4 个严重问题和 9 个高危问题；CVE-2026-10222（CVSS 2.9，低危）已在 0.18.0 版本中修复<sup>[6](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_hermes_agent_CVEs_20260504-csa-styled.pdf)</sup><sup> • </sup><sup>[7](https://github.com/advisories/GHSA-mv8x-fg99-32mf)</sup> |

## 起源与发展

Hermes Agent 于 2026 年 2 月由 Nous Research 推出，该实验室是 Hermes、Nomos 和 Psyche 三大模型系列的缔造者。<sup>[1](https://www.techradar.com/pro/how-to-automate-workflows-using-open-source-ai-agents)</sup> 它进入的市场格局已由 OpenClaw 奠定——一个更早的开源智能体，由开发者彼得·施泰因贝格尔（Peter Steinberger）于 2025 年 11 月启动——其增长之快，促使 Nous 推出了一款专门的迁移命令 `hermes claw migrate`，供来自 OpenClaw 的用户使用。<sup>[1](https://www.techradar.com/pro/how-to-automate-workflows-using-open-source-ai-agents)</sup><sup> • </sup><sup>[2](https://github.com/nousresearch/hermes-agent?pubDate=20260509)</sup>

开发进展迅速。2026 年 4 月 13 日发布的 v0.9.0 版本新增了 Termux/Android 支持、通过 BlueBubbles 实现的 iMessage、微信和企业微信适配器、本地 Web 仪表盘，以及其发布说明所称的迄今最深入的安全加固，共计 487 次提交和 269 个合并的拉取请求。<sup>[8](https://github.com/NousResearch/hermes-agent/diffs/38?name=main&sha1=abf1e98f6253f6984479fe03d1098173a9b065a7&sha2=ff0a70381e238e7799b2bcfd09e479c76b037270&short_path=67078c2&w=false)</sup> 2026 年后续版本新增了支持群聊的多智能体 Bot 模式、流式语音转文字、隔离的第三方插件和本地模型支持；仅 0.21.6 一个版本就整合了 2,106 个合并的拉取请求。<sup>[9](https://freedom.tech/project/nous-research/)</sup>

## 架构与功能

Hermes 是一个编排层，位于 LLM 提供商、工具库、记忆存储和消息网关之上，每一层都可以独立替换。<sup>[3](https://axis-intelligence.com/hermes-agent-review-tested/)</sup> 它自带一个内置工具注册表，涵盖网页搜索、浏览器自动化、终端执行、文件编辑、记忆、委托和定时任务，按工具集组织，可按平台启用或禁用；文档统计有 40 多种内置工具。<sup>[10](https://hermes-agent.nousresearch.com/docs/user-guide/features/tools)</sup> cron 风格的定时任务支持定期研究、监控、报告和维护任务，出站传递由 cron 自身的投递功能、`hermes send` 命令行工具和网关通知器处理。<sup>[10](https://hermes-agent.nousresearch.com/docs/user-guide/features/tools)</sup>

**记忆。** 记忆是有界且经过精心整理的，以 `MEMORY.md`（关于环境和项目的事实）和 `USER.md`（用户的个人资料和偏好）的形式保存在 `~/.hermes/memories/` 中，跨会话持久化，两者在会话启动时作为冻结快照注入系统提示。<sup>[4](https://hermes-agent.nousresearch.com/docs/user-guide/features/memory)</sup><sup> • </sup><sup>[11](https://hermes-agent.nousresearch.com/docs/user-guide/which-file-does-what)</sup> 一篇对比文章称这种设计是刻意保持小体量的：两个文件分别限制在 2,200 和 1,375 个字符以内，而每一次过往对话都存储在数据库中，智能体在需要更多信息时进行检索。<sup>[5](https://everpod.ai/guides/openclaw-vs-hermes)</sup> 会话搜索由 SQLite FTS5 全文检索提供支持，返回实际存储的消息，无需调用 LLM。<sup>[12](https://hermes-agent.nousresearch.com/docs/reference/tools-reference)</sup> Hindsight、Mem0 和 Honcho 等外部记忆提供商可以替换内置存储。<sup>[4](https://hermes-agent.nousresearch.com/docs/user-guide/features/memory)</sup>

**技能。** 技能是程序性记忆：描述如何完成各类任务的可复用文档，存储在 `~/.hermes/skills/`，兼容 agentskills.io 开放标准。<sup>[12](https://hermes-agent.nousresearch.com/docs/reference/tools-reference)</sup><sup> • </sup><sup>[13](https://hermes-agent.nousresearch.com/docs/user-guide/features/skills)</sup> `/learn` 命令可将参考资料、有文档记录的工作流程或整本书转换为遵循内部编写标准的技能，记忆和技能在自我改进回路中协同工作：记忆保存应始终在上下文中的小型持久事实，而技能保存仅在相关时才加载的较长操作流程。<sup>[13](https://hermes-agent.nousresearch.com/docs/user-guide/features/skills)</sup> 后台审查可以在会话结束后建议或暂存技能变更，写入审批门允许操作员要求在这些变更生效前进行人工审核。<sup>[13](https://hermes-agent.nousresearch.com/docs/user-guide/features/skills)</sup>

**代码执行。** `execute_code` 工具运行持久化的会话内核，具有定义明确的安全边界：环境清理、工具白名单和每次调用的工具预算应用于每个代码单元，工具调用权限在每个代码单元上重新绑定。内核随会话结束而终止，默认空闲 1,800 秒后终止，或当活跃的会话内核超过四个时最旧的被逐出；脚本最多可调用工具 50 次，子进程在最小环境中运行，默认剥离 API 密钥和凭据。<sup>[14](https://hermes-agent.nousresearch.com/docs/user-guide/features/code-execution)</sup>

**网关与部署。** 消息网关将智能体连接到 Telegram、Discord、Slack、WhatsApp、Signal、电子邮件和 CLI 接口，访问通过用户 ID [白名单](https://www.edgepedia.org/zh/whitelist)和私信配对进行控制。<sup>[6](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_hermes_agent_CVEs_20260504-csa-styled.pdf)</sup><sup> • </sup><sup>[15](https://hermes-agent.nousresearch.com/docs/reference/faq)</sup> 对话、记忆和技能存储在本地 `~/.hermes/` 中，项目声明不收集任何遥测、使用数据或分析信息；API 调用仅发往配置的 LLM 提供商。<sup>[15](https://hermes-agent.nousresearch.com/docs/reference/faq)</sup> 配置好记忆和工具的完整本地设置通常需要几个小时，比 OpenClaw 的 Docker 设置更长。<sup>[1](https://www.techradar.com/pro/how-to-automate-workflows-using-open-source-ai-agents)</sup>

## 自我改进与评估

自我改进的说法受到了独立审视。TokenMix.ai 于 2026 年 4 月 17 日发布的一项基准测试发现，拥有 20 项或以上自创技能的智能体完成类似未来任务的速度快 40%，以 token 消耗和完成时间衡量；这种改进是领域特定的，因此从某一任务类别构建的技能不会显著加速无关类别。<sup>[3](https://axis-intelligence.com/hermes-agent-review-tested/)</sup> 一个可选的配套仓库 `hermes-agent-self-evolution` 使用 DSPy 和 GEPA（梯度引导的进化式提示适配，ICLR 2026 口头报告论文）来读取执行轨迹、诊断技能失败的原因并提出有针对性的改进建议。<sup>[3](https://axis-intelligence.com/hermes-agent-review-tested/)</sup>

学术研究对该机制进行了更直接的测试。PAST-Bench 是一项 2026 年发布的个人智能体递归自我改进基准，在七个模型和四个智能体框架上测量了保留的经验是否真正改善了后续行为，发现改进是真实的，但在不同能力上不均衡。<sup>[16](https://arxiv.org/abs/2608.04003)</sup> 其作者构建了 Hermes+，在智能体回路的各个阶段（规划、渲染、路由、门控、收尾）扩展了五项运行时干预，将保留经验带来的平均增益从 +0.13 提高到 +0.15，将机制证据分数从 0.64 提高到 0.73，在需要替换过时状态的任务上改进最为显著。<sup>[16](https://arxiv.org/abs/2608.04003)</sup> 研究人员选择 Hermes 作为修改对象，是因为它是他们研究中唯一一个暴露智能体回路、没有预实例化持久化栈的框架。<sup>[16](https://arxiv.org/abs/2608.04003)</sup>

安全测试的结果则不太乐观。Vera 评估框架在隔离沙盒中运行异构智能体，并配有基于证据的验证器，测试了包括 Hermes 在内的四个生产框架，发现了大量的安全弱点，在其 1,600 个案例的基准测试中，多通道攻击下的平均攻击成功率高达 93.9%。<sup>[17](https://arxiv.org/abs/2607.01793)</sup>

## 安全

2026 年 4 月 11 日通过 NousResearch/hermes-agent GitHub 第 7826 号议题披露的一项独立安全审计报告称，在默认配置中发现 4 个严重问题和 9 个高危问题。<sup>[6](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_hermes_agent_CVEs_20260504-csa-styled.pdf)</sup> 严重问题包括技能管理器允许通过智能体编写的技能文件持续执行代码；高危问题包括 YOLO 模式，该模式禁用了框架内所有安全检查；可被提示注入的 LLM 自动批准机制；需主动选择而非默认启用的写入沙盒；网关钩子从用户控制的目录执行任意 Python 代码；以及在不进行沙盒化的情况下导入代码的插件加载器。<sup>[6](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_hermes_agent_CVEs_20260504-csa-styled.pdf)</sup> 云安全联盟的分析认为，底层模式是架构性的：让持久化、记忆增强型智能体有价值的能力，包括长期记忆、广泛的工具访问和运行时技能安装，正是扩大攻击面的那些能力，而检索到的记忆可能携带来自先前会话的对抗性指令，那个会话处理了攻击者控制的内容。<sup>[6](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_hermes_agent_CVEs_20260504-csa-styled.pdf)</sup>

具体漏洞已被分配 CVE 编号。CVE-2026-10222 是一个低危注入漏洞（CVSS 2.9），位于 `hermes_cli/config.py` 的 `_sanitize_env_lines` 函数中，影响版本至 2026.4.30，已在 0.18.0 中修复。<sup>[7](https://github.com/advisories/GHSA-mv8x-fg99-32mf)</sup> CSA 的说明还列出了 CVE-2026-7397（符号链接跟随，已在 v0.9.0 中修复）、CVE-2026-6829（Hermes WebUI 路径遍历，已在 webui v0.50.34 中修复）和 CVE-2026-7396（企业微信适配器中的路径遍历，发布时未修复，建议将网络限制作为临时控制措施）。<sup>[6](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_hermes_agent_CVEs_20260504-csa-styled.pdf)</sup> 其建议的缓解措施包括启用非本地沙盒后端（如 Docker）并设置 `HERMES_WRITE_SAFE_ROOT` 将文件系统写入限制在隔离目录中，两者都可用但需主动选择。<sup>[6](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_hermes_agent_CVEs_20260504-csa-styled.pdf)</sup> TechRadar 在 2026 年年中的一篇调查文章称，截至当时 Hermes Agent 未报告已知的严重漏洞，同时指出这在一定程度上反映了其较小的安装基数，而非已证明的加固；4 月的审计和随后的 CVE 在该文章之后发生，或使情况更加复杂。<sup>[1](https://www.techradar.com/pro/how-to-automate-workflows-using-open-source-ai-agents)</sup>

智能体行为也曾出现在真实事件中：Gambit 的研究人员描述了一次在黑客行动中使用的 Hermes 部署，作为一个开源自主智能体，具备持久记忆、自写技能、可搜索的会话存档、定时任务和 Web 控制台，加载了包含 121 项技能的人格设定，其中 78 项是攻击技能。<sup>[18](https://www.techradar.com/pro/security/massive-chinese-hack-uses-ai-agents-to-steal-over-600-000-credit-cards-and-hit-hundreds-of-sites-with-malware)</sup>

## 与 OpenClaw 的比较

Hermes Agent 和 OpenClaw 是 2026 年两大主导的开源智能体框架，比较它们已成为社区中的一种固定体裁。<sup>[19](https://hundredtabs.com/blog/hermes-agent-vs-openclaw)</sup> 它们在治理和默认设置上有所不同：OpenClaw 由一个非营利基金会运营，没有付费层级，默认关闭沙盒和命令审批；而 Hermes 由 Nous Research 开发，这是一家有资金支持的公司，销售托管版本和模型订阅套餐，并默认由 AI 审查员批准或拒绝高风险命令。<sup>[5](https://everpod.ai/guides/openclaw-vs-hermes)</sup> Hermes 是一个独立的 Python 项目，不是 OpenClaw 的 TypeScript 代码库的分支。<sup>[20](https://www.firecrawl.dev/blog/openclaw-vs-hermes)</sup>

在某些维度上，实测差异有利于 Hermes。在一项让两个智能体在同一模型上运行 300 个事件的基准测试中，OpenClaw 的召回延迟达到 19.6 秒，而 Hermes 在 113 毫秒内响应了同一查询。<sup>[20](https://www.firecrawl.dev/blog/openclaw-vs-hermes)</sup> 评论者将这种权衡描述为设置时间与耐心之间的取舍：OpenClaw 的工具在 Docker 设置后通常立即生效，而完整的 Hermes 设置需要几个小时，但产生的智能体会在操作员特定的工作流程中持续改进。<sup>[1](https://www.techradar.com/pro/how-to-automate-workflows-using-open-source-ai-agents)</sup> 一些有经验的操作员同时运行两者，使用 OpenClaw 作为规划和多步骤协调的编排器，并通过共享协议将快速、可重复的任务回路交给 Hermes 作为执行专家。<sup>[1](https://www.techradar.com/pro/how-to-automate-workflows-using-open-source-ai-agents)</sup>

## References

1. [How to automate workflows using open-source AI agents, TechRadar](https://www.techradar.com/pro/how-to-automate-workflows-using-open-source-ai-agents)
2. [NousResearch/hermes-agent on GitHub](https://github.com/nousresearch/hermes-agent?pubDate=20260509)
3. [Hermes Agent Review 2026: Tested by Axis Intelligence](https://axis-intelligence.com/hermes-agent-review-tested/)
4. [Persistent Memory, Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs/user-guide/features/memory)
5. [OpenClaw vs Hermes: what still differs, and how to choose, Everpod Guides](https://everpod.ai/guides/openclaw-vs-hermes)
6. [CSAI Foundation research note on Hermes Agent CVEs, Cloud Security Alliance](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_hermes_agent_CVEs_20260504-csa-styled.pdf)
7. [CVE-2026-10222, GitHub Advisory Database](https://github.com/advisories/GHSA-mv8x-fg99-32mf)
8. [Hermes Agent v0.9.0 release notes](https://github.com/NousResearch/hermes-agent/diffs/38?name=main&sha1=abf1e98f6253f6984479fe03d1098173a9b065a7&sha2=ff0a70381e238e7799b2bcfd09e479c76b037270&short_path=67078c2&w=false)
9. [Nous Research release history, Freedom.Tech](https://freedom.tech/project/nous-research/)
10. [Tools & Toolsets, Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs/user-guide/features/tools)
11. [Which File Does What?, Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs/user-guide/which-file-does-what)
12. [Built-in Tools Reference, Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs/reference/tools-reference)
13. [Skills System, Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs/user-guide/features/skills)
14. [Code Execution, Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs/user-guide/features/code-execution)
15. [FAQ & Troubleshooting, Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs/reference/faq)
16. [PAST-Bench: Benchmarking the Foundations of Recursive Self-Improvement in Personal Agents, arXiv](https://arxiv.org/abs/2608.04003)
17. [Safety Testing LLM Agents at Scale: From Risk Discovery to Evidence-Grounded Verification, arXiv](https://arxiv.org/abs/2607.01793)
18. [Massive Chinese hack uses AI agents to steal over 600,000 credit cards, TechRadar](https://www.techradar.com/pro/security/massive-chinese-hack-uses-ai-agents-to-steal-over-600-000-credit-cards-and-hit-hundreds-of-sites-with-malware)
19. [Hermes Agent vs OpenClaw: Honest Comparison (2026), HundredTabs](https://hundredtabs.com/blog/hermes-agent-vs-openclaw)
20. [OpenClaw vs Hermes Agent: Which one should you actually run?, Firecrawl](https://www.firecrawl.dev/blog/openclaw-vs-hermes)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 11, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › AI companies, people, and products › AI products and assistants › AI agents and developer tools

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/hermes-agent

English original: https://www.edgepedia.org/hermes-agent
