Administrator
发布于 2026-05-26 / 0 阅读

Hermes Agent 安装指南

Hermes Agent 安装指南

Hermes Agent 是由 Nous Research 开发的开源 AI Agent 框架,可在终端、消息平台和 IDE 中运行。它属于与 Claude Code、OpenAI Codex、OpenClaw 同类的自主编码与任务执行代理,通过工具调用与系统交互。Hermes 支持任意 LLM 提供商(OpenRouter、Anthropic、OpenAI、DeepSeek 及 15+ 其他提供商),可在 Linux、macOS 和 WSL 上运行。

安装条件

  • 操作系统:Linux、macOS 或 WSL(Windows 需 WSL2)
  • Python 3.10+
  • Git(可选,用于从源码安装)

一键安装(推荐)

curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

安装完成后启动交互式会话:

hermes

验证安装

hermes doctor        # 检查依赖和配置
hermes --version     # 查看版本

配置模型提供商

首次运行需要配置模型和 API Key:

hermes setup         # 交互式配置向导
hermes model         # 选择和切换模型

支持的提供商包括:OpenRouter、Anthropic、OpenAI、DeepSeek、Google Gemini、xAI/Grok 等。API Key 存储在 ~/.hermes/.env 文件中。

核心功能速览

  • 技能系统 — 从经验中学习,将解决方案保存为可复用的技能
  • 持久记忆 — 跨会话记住用户偏好、环境和项目约定
  • 多平台网关 — 同一 Agent 运行在 10+ 消息平台上
  • 提供商无关 — 随时切换模型和提供商
  • Profile 多实例 — 隔离的配置、会话和记忆
  • 插件、MCP、Webhook、Cron — 丰富的扩展机制

常用 CLI 命令

hermes chat -q "你的问题"     # 单次查询
hermes --continue              # 恢复最近会话
hermes doctor --fix            # 检查并修复问题
hermes tools list              # 查看可用工具
hermes skills browse           # 浏览技能库
hermes gateway run             # 启动消息网关
hermes update                  # 更新到最新版

详细文档

  • 官方文档:https://hermes-agent.nousresearch.com/docs/
  • GitHub:https://github.com/NousResearch/hermes-agent

评论