NousResearch/hermes-agent

GitHub: NousResearch/hermes-agent

一款具备持续学习与记忆能力的开源 AI Agent 框架,支持多平台接入与灵活部署。

Stars: 1945 | Forks: 304

Hermes Agent

# Hermes Agent ⚕

Documentation Discord License: MIT Built by Nous Research

**由 [Nous Research](https://nousresearch.com) 构建的自我改进 AI Agent。** 它是唯一一个内置学习循环的 Agent —— 它从经验中创建技能,在使用过程中改进它们,自我提示以持久化知识,搜索自己过去的对话,并跨会话建立不断深化的用户模型。你可以在 5 美元的 VPS、GPU 集群或空闲时几乎零成本的无服务器基础设施上运行它。它不局限于你的笔记本电脑 —— 你可以在云端 VM 上运行时通过 Telegram 与它交流。 使用你想要的任何模型 —— [Nous Portal](https://portal.nousresearch.com)、[OpenRouter](https://openrouter.ai)(200+ 模型)、[z.ai/GLM](https://z.ai)、[Kimi/Moonshot](https://platform.moonshot.ai)、[MiniMax](https://www.minimax.io)、OpenAI 或你自己的端点。使用 `hermes model` 切换 —— 无需修改代码,无锁定。
真正的终端界面完整的 TUI,支持多行编辑、斜杠命令自动补全、对话历史、中断和重定向以及流式工具输出。
如影随形Telegram、Discord、Slack、WhatsApp 和 CLI —— 均通过单个网关进程实现。语音备忘录转录,跨平台对话连续性。
闭环学习带有周期性提示的 Agent 策划记忆。复杂任务后的自主技能创建。技能在使用过程中自我改进。FTS5 会话搜索,配合 LLM 摘要以实现跨会话回忆。Honcho 辩证法用户建模。兼容 agentskills.io 开放标准。
计划自动化内置 cron 调度器,可分发到任何平台。每日报告、夜间备份、每周审计 —— 均使用自然语言,无人值守运行。
委派与并行化生成隔离的子 Agent 以进行并行工作流。编写通过 RPC 调用工具的 Python 脚本,将多步骤流水线压缩为零上下文成本的轮次。
随处运行,不只在你的笔记本上六种终端后端 —— local、Docker、SSH、Daytona、Singularity 和 Modal。Daytona 和 Modal 提供无服务器持久性 —— 你的 Agent 环境在空闲时休眠,按需唤醒,会话间隙几乎零成本。在 5 美元的 VPS 或 GPU 集群上运行。
为研究而生批量轨迹生成、Atropos RL 环境、用于训练下一代工具调用模型的轨迹压缩。
## 快速安装 ``` curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash ``` 适用于 Linux、macOS 和 WSL2。安装程序会处理一切 —— Python、Node.js、依赖项和 `hermes` 命令。除了 git 之外没有任何先决条件。 安装后: ``` source ~/.bashrc # reload shell (or: source ~/.zshrc) hermes setup # configure your LLM provider hermes # start chatting! ``` ## 入门指南 ``` hermes # Interactive CLI — start a conversation hermes model # Switch provider or model hermes setup # Re-run the setup wizard hermes gateway # Start the messaging gateway (Telegram, Discord, etc.) hermes update # Update to the latest version hermes doctor # Diagnose any issues ``` 📖 **[完整文档 →](https://hermes-agent.nousresearch.com/docs/)** ## 文档 所有文档位于 **[hermes-agent.nousresearch.com/docs](https://hermes-agent.nousresearch.com/docs/)**: | 章节 | 内容涵盖 | |---------|---------------| | [快速入门](https://hermes-agent.nousresearch.com/docs/getting-started/quickstart) | 安装 → 设置 → 2 分钟内开始第一次对话 | | [CLI 用法](https://hermes-agent.nousresearch.com/docs/user-guide/cli) | 命令、按键绑定、个性、会话 | | [配置](https://hermes-agent.nousresearch.com/docs/user-guide/configuration) | 配置文件、提供商、模型、所有选项 | | [消息网关](https://hermes-agent.nousresearch.com/docs/user-guide/messaging) | Telegram、Discord、Slack、WhatsApp、Home Assistant | | [安全](https://hermes-agent.nousresearch.com/docs/user-guide/security) | 命令批准、DM 配对、容器隔离 | | [工具与工具集](https://hermes-agent.nousresearch.com/docs/user-guide/features/tools) | 40+ 工具、工具集系统、终端后端 | | [技能系统](https://hermes-agent.nousresearch.com/docs/user-guide/features/skills) | 程序记忆、技能中心 (Skills Hub)、创建技能 | | [记忆](https://hermes-agent.nousresearch.com/docs/user-guide/features/memory) | 持久记忆、用户画像、最佳实践 | | [MCP 集成](https://hermes-agent.nousresearch.com/docs/user-guide/features/mcp) | 连接任何 MCP 服务器以扩展能力 | | [Cron 调度](https://hermes-agent.nousresearch.com/docs/user-guide/features/cron) | 带平台分发的计划任务 | | [上下文文件](https://hermes-agent.nousresearch.com/docs/user-guide/features/context-files) | 塑造每次对话的项目上下文 | | [架构](https://hermes-agent.nousresearch.com/docs/developer-guide/architecture) | 项目结构、Agent 循环、关键类 | | [贡献](https://hermes-agent.nousresearch.com/docs/developer-guide/contributing) | 开发设置、PR 流程、代码风格 | | [CLI 参考](https://hermes-agent.nousresearch.com/docs/reference/cli-commands) | 所有命令和标志 | | [环境变量](https://hermes-agent.nousresearch.com/docs/reference/environment-variables) | 完整的环境变量参考 | ## 许可证 MIT —— 详见 [LICENSE](LICENSE)。 由 [Nous Research](https://nousresearch.com) 构建。
标签:AI智能体, Apex, DLL 劫持, DNS解析, LLM集成, MITM代理, Nous Research, Python, Serverless, Telegram机器人, TUI, 上下文管理, 个人助理, 云端部署, 人工智能, 即时通讯, 多模型支持, 大语言模型, 开源项目, 技能学习, 无后门, 机器学习, 用户模式Hook绕过, 知识管理, 网络调试, 自主智能体, 自动化, 自我进化, 请求拦截, 逆向工具, 长期记忆