知识引擎/Hermes 知识引擎/更新与卸载 (Updating & Uninstalling)

Update to the latest version with a single command: This pulls the latest code, updates dependencies, and prompts you to configure any new options that were add

更新与卸载 (Updating & Uninstalling)

> 📖 本文档翻译自 Hermes Agent 官方文档 > 最后更新:2026-04-16

Updating​

Update to the latest version with a single command:

hermes update

This pulls the latest code, updates dependencies, and prompts you to configure any new options that were added since your last update.

tip

hermes update automatically detects new configuration options and prompts you to add them. If you skipped that prompt, you can manually run hermes config check to see missing options, then hermes config migrate to interactively add them.

What happens during an update​

When you run hermes update, the following steps occur:

  • Git pull — pulls the latest code from the main branch and updates submodules
  • Dependency install — runs uv pip install -e ".[all]" to pick up new or changed dependencies
  • Config migration — detects new config options added since your version and prompts you to set them
  • Gateway auto-restart — if the gateway service is running (systemd on Linux, launchd on macOS), it is automatically restarted after the update completes so the new code takes effect immediately

Expected output looks like:

$ hermes updateUpdating Hermes Agent...📥 Pulling latest code...Already up to date.  (or: Updating abc1234..def5678)📦 Updating dependencies...✅ Dependencies updated🔍 Checking for new config options...✅ Config is up to date  (or: Found 2 new options — running migration...)🔄 Restarting gateway service...✅ Gateway restarted✅ Hermes Agent updated successfully!

Recommended Post-Update Validation​

hermes update handles the main update path, but a quick validation confirms everything landed cleanly:

  • git status --short — if the tree is unexpectedly dirty, inspect before continuing
  • hermes doctor — checks config, dependencies, and service health
  • hermes --version — confirm the version bumped as expected
  • If you use the gateway: hermes gateway status
  • If doctor reports npm audit issues: run npm audit fix in the flagged directory

Dirty working tree after update

If git status --short shows unexpected changes after hermes update, stop and inspect them before continuing. This usually means local modifications were reapplied on top of the updated code, or a dependency step refreshed lockfiles.

Checking your current version​

hermes version

Compare against the latest release at the GitHub releases page or check for available updates:

hermes update --check

Updating from Messaging Platforms​

You can also update directly from Telegram, Discord, Slack, or WhatsApp by sending:

/update

This pulls the latest code, updates dependencies, and restarts the gateway. The bot will briefly go offline during the restart (typically 5–15 seconds) and then resume.

Manual Update​

If you installed manually (not via the quick installer):

cd /path/to/hermes-agentexport VIRTUAL_ENV="$(pwd)/venv"# Pull latest code and submodulesgit pull origin maingit submodule update --init --recursive# Reinstall (picks up new dependencies)uv pip install -e ".[all]"uv pip install -e "./tinker-atropos"# Check for new config optionshermes config checkhermes config migrate   # Interactively add any missing options

Rollback instructions​

If an update introduces a problem, you can roll back to a previous version:

cd /path/to/hermes-agent# List recent versionsgit log --oneline -10# Roll back to a specific commitgit checkout <commit-hash>git submodule update --init --recursiveuv pip install -e ".[all]"# Restart the gateway if runninghermes gateway restart

To roll back to a specific release tag:

git checkout v0.6.0git submodule update --init --recursiveuv pip install -e ".[all]"

warning

Rolling back may cause config incompatibilities if new options were added. Run hermes config check after rolling back and remove any unrecognized options from config.yaml if you encounter errors.

Note for Nix users​

If you installed via Nix flake, updates are managed through the Nix package manager:

# Update the flake inputnix flake update hermes-agent# Or rebuild with the latestnix profile upgrade hermes-agent

Nix installations are immutable — rollback is handled by Nix's generation system:

nix profile rollback

See Nix Setup for more details.

Uninstalling​

hermes uninstall

The uninstaller gives you the option to keep your configuration files (~/.hermes/) for a future reinstall.

Manual Uninstall​

rm -f ~/.local/bin/hermesrm -rf /path/to/hermes-agentrm -rf ~/.hermes            # Optional — keep if you plan to reinstall

info

If you installed the gateway as a system service, stop and disable it first:

hermes gateway stop# Linux: systemctl --user disable hermes-gateway# macOS: launchctl remove ai.hermes.gateway

Continue Exploring

继续探索

这不是课程式的上一篇下一篇,而是从当前节点向外继续漫游。

快速入门

Nix 和 NixOS 安装 (Nix Setup)

Hermes Agent 提供了 Nix Flake(Nix 包管理器的声明式构建定义),包含三个层级的集成: 与标准安装的区别 curl bash 安装程序自行管理 Python、Node 和依赖。Nix Flake 替代了所有这些——每个 Python 依赖都是由 uv2nix 构建的 Nix Derivation

快速入门

快速开始 (Quickstart)

本指南将带你完成 Hermes Agent 的安装、Provider 配置,并进行第一次对话。完成后,你将了解核心功能以及如何进一步探索。 运行一行安装命令: Android / Termux 如果你在手机上安装,请参阅专门的 Termux 指南,了解经过测试的手动安装路径、支持的扩展组件以及当前 Android 相关

快速入门

安装指南 (Installation)

通过一行安装命令,不到两分钟即可让 Hermes Agent 运行起来;或者按照手动步骤获得完全控制。 Hermes 现在也提供了 Termux 感知的安装路径: 安装程序会自动检测 Termux 并切换到经过测试的 Android 安装流程: - 使用 Termux 的 pkg 安装系统依赖(git、python、n

快速入门

Android 和 Termux (Android / Termux)

这是通过 Termux 在 Android 手机上直接运行 Hermes Agent 的经过测试的路径。 它为你提供手机上可用的本地 CLI,以及目前已知能在 Android 上顺利安装的核心扩展组件。 经过测试的 Termux 打包安装以下内容: - Hermes CLI - Cron(定时任务)支持

快速入门

学习路线 (Learning Path)

Hermes Agent can do a lot — CLI assistant, Telegram/Discord bot, task automation, RL training, and more. This page helps you figure out where to start and what

Getting Started

快速入门

先建立对 Hermes 的整体感,再完成安装、首轮对话和你的第一条学习路径。

7 篇文档6 个节点

当前节点

更新与卸载 (Updating & Uninstalling)

同主题继续探索

快速开始 (Quickstart)

本指南将带你完成 Hermes Agent 的安装、Provider 配置,并进行第一次对话。完成后,你将了解核心功能以及如何进一步探索。 运行一行安装命令: Android / Termux 如果你在手机上安装,请参阅专门的 Termux 指南,了解经过测试的手动安装路径、支持的扩展组件以及当前 Android 相关

安装指南 (Installation)

通过一行安装命令,不到两分钟即可让 Hermes Agent 运行起来;或者按照手动步骤获得完全控制。 Hermes 现在也提供了 Termux 感知的安装路径: 安装程序会自动检测 Termux 并切换到经过测试的 Android 安装流程: - 使用 Termux 的 pkg 安装系统依赖(git、python、n

Android 和 Termux (Android / Termux)

这是通过 Termux 在 Android 手机上直接运行 Hermes Agent 的经过测试的路径。 它为你提供手机上可用的本地 CLI,以及目前已知能在 Android 上顺利安装的核心扩展组件。 经过测试的 Termux 打包安装以下内容: - Hermes CLI - Cron(定时任务)支持

Nix 和 NixOS 安装 (Nix Setup)

Hermes Agent 提供了 Nix Flake(Nix 包管理器的声明式构建定义),包含三个层级的集成: 与标准安装的区别 curl bash 安装程序自行管理 Python、Node 和依赖。Nix Flake 替代了所有这些——每个 Python 依赖都是由 uv2nix 构建的 Nix Derivation

学习路线 (Learning Path)

Hermes Agent can do a lot — CLI assistant, Telegram/Discord bot, task automation, RL training, and more. This page helps you figure out where to start and what

相关节点

Nix 和 NixOS 安装 (Nix Setup)

Hermes Agent 提供了 Nix Flake(Nix 包管理器的声明式构建定义),包含三个层级的集成: 与标准安装的区别 curl bash 安装程序自行管理 Python、Node 和依赖。Nix Flake 替代了所有这些——每个 Python 依赖都是由 uv2nix 构建的 Nix Derivation

快速开始 (Quickstart)

本指南将带你完成 Hermes Agent 的安装、Provider 配置,并进行第一次对话。完成后,你将了解核心功能以及如何进一步探索。 运行一行安装命令: Android / Termux 如果你在手机上安装,请参阅专门的 Termux 指南,了解经过测试的手动安装路径、支持的扩展组件以及当前 Android 相关

安装指南 (Installation)

通过一行安装命令,不到两分钟即可让 Hermes Agent 运行起来;或者按照手动步骤获得完全控制。 Hermes 现在也提供了 Termux 感知的安装路径: 安装程序会自动检测 Termux 并切换到经过测试的 Android 安装流程: - 使用 Termux 的 pkg 安装系统依赖(git、python、n

Android 和 Termux (Android / Termux)

这是通过 Termux 在 Android 手机上直接运行 Hermes Agent 的经过测试的路径。 它为你提供手机上可用的本地 CLI,以及目前已知能在 Android 上顺利安装的核心扩展组件。 经过测试的 Termux 打包安装以下内容: - Hermes CLI - Cron(定时任务)支持

学习路线 (Learning Path)

Hermes Agent can do a lot — CLI assistant, Telegram/Discord bot, task automation, RL training, and more. This page helps you figure out where to start and what