知识引擎/Hermes 知识引擎/配置文件命令参考

本页面涵盖所有与 Hermes 配置文件 相关的命令。通用 CLI 命令请参见 CLI 命令参考。 hermes profile <子命令 管理配置文件的顶级命令。不带子命令运行 hermes profile 会显示帮助。 hermes profile list 列出所有配置文件。当前活跃的配置文件用 标记。

配置文件命令参考

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

配置文件命令参考

本页面涵盖所有与 Hermes 配置文件 相关的命令。通用 CLI 命令请参见 CLI 命令参考

hermes profile

hermes profile <子命令>

管理配置文件的顶级命令。不带子命令运行 hermes profile 会显示帮助。

子命令说明
list列出所有配置文件。
use设置活跃(默认)配置文件。
create创建新配置文件。
delete删除配置文件。
show显示配置文件详情。
alias重新生成配置文件的 Shell 别名。
rename重命名配置文件。
export将配置文件导出为 tar.gz 归档。
import从 tar.gz 归档导入配置文件。

hermes profile list

hermes profile list

列出所有配置文件。当前活跃的配置文件用 * 标记。

示例:

$ hermes profile list default

  • work dev personal

无选项。

hermes profile use

hermes profile use <名称>

&lt;名称&gt; 设置为活跃配置文件。所有后续 hermes 命令(不带 -p)将使用此配置文件。

参数说明
&lt;名称&gt;要激活的配置文件名称。使用 default 返回基础配置文件。

示例:

hermes profile use work hermes profile use default

hermes profile create

hermes profile create <名称> [选项]

创建新配置文件。

参数 / 选项说明
&lt;名称&gt;新配置文件的名称。必须是有效的目录名(字母数字、连字符、下划线)。
--clone从当前配置文件复制 config.yaml.envSOUL.md
--clone-all从当前配置文件复制所有内容(配置、记忆、技能、会话、状态)。
--clone-from &lt;配置文件&gt;从指定配置文件而非当前配置文件克隆。与 --clone--clone-all 一起使用。
--no-alias跳过包装脚本创建。

示例:

空白配置文件——需要完整设置

hermes profile create mybot

仅从当前配置文件克隆配置

hermes profile create work --clone

从当前配置文件克隆所有内容

hermes profile create backup --clone-all

从指定配置文件克隆配置

hermes profile create work2 --clone --clone-from work

hermes profile delete

hermes profile delete <名称> [选项]

删除配置文件并移除其 Shell 别名。

参数 / 选项说明
&lt;名称&gt;要删除的配置文件。
--yes-y跳过确认提示。

示例:

hermes profile delete mybot hermes profile delete mybot --yes

⚠️ 警告

此操作会永久删除配置文件的整个目录,包括所有配置、记忆、会话和技能。不能删除当前活跃的配置文件。

hermes profile show

hermes profile show <名称>

显示配置文件的详情,包括主目录、配置的模型、网关状态、技能数量和配置文件状态。

参数说明
&lt;名称&gt;要查看的配置文件。

示例:

$ hermes profile show work Profile: work Path: ~/.hermes/profiles/work Model: anthropic/claude-sonnet-4 (anthropic) Gateway: stopped Skills: 12 .env: exists SOUL.md: exists Alias: ~/.local/bin/work

hermes profile alias

hermes profile alias <名称> [选项]

重新生成 ~/.local/bin/&lt;名称&gt; 处的 Shell 别名脚本。如果别名被意外删除或在移动 Hermes 安装后需要更新,此命令很有用。

参数 / 选项说明
&lt;名称&gt;要创建/更新别名的配置文件。
--remove移除包装脚本而非创建。
--name &lt;别名&gt;自定义别名名称(默认:配置文件名称)。

示例:

hermes profile alias work

创建/更新 ~/.local/bin/work

hermes profile alias work --name mywork

创建 ~/.local/bin/mywork

hermes profile alias work --remove

移除包装脚本

hermes profile rename

hermes profile rename <旧名称> <新名称>

重命名配置文件。更新目录和 Shell 别名。

参数说明
&lt;旧名称&gt;当前配置文件名称。
&lt;新名称&gt;新配置文件名称。

示例:

hermes profile rename mybot assistant

~/.hermes/profiles/mybot → ~/.hermes/profiles/assistant

~/.local/bin/mybot → ~/.local/bin/assistant

hermes profile export

hermes profile export <名称> [选项]

将配置文件导出为压缩的 tar.gz 归档。

参数 / 选项说明
&lt;名称&gt;要导出的配置文件。
-o--output &lt;路径&gt;输出文件路径(默认:&lt;名称&gt;.tar.gz)。

示例:

hermes profile export work

在当前目录创建 work.tar.gz

hermes profile export work -o ./work-2026-03-29.tar.gz

hermes profile import

hermes profile import <归档> [选项]

从 tar.gz 归档导入配置文件。

参数 / 选项说明
&lt;归档&gt;要导入的 tar.gz 归档路径。
--name &lt;名称&gt;导入配置文件的名称(默认:从归档推断)。

示例:

hermes profile import ./work-2026-03-29.tar.gz

从归档推断配置文件名称

hermes profile import ./work-2026-03-29.tar.gz --name work-restored

hermes -p / hermes --profile

hermes -p <名称> <命令> [选项] hermes --profile <名称> <命令> [选项]

全局标志,在指定配置文件下运行任何 Hermes 命令而不更改粘性默认值。这在命令执行期间覆盖活跃配置文件。

选项说明
-p &lt;名称&gt;--profile &lt;名称&gt;此命令使用的配置文件。

示例:

hermes -p work chat -q "Check the server status" hermes --profile dev gateway start hermes -p personal skills list hermes -p work config edit

hermes completion

hermes completion <shell>

生成 Shell 补全脚本。包含配置文件名称和配置文件子命令的补全。

参数说明
&lt;shell&gt;要生成补全的 Shell:bashzsh

示例:

安装补全

hermes completion bash >> ~/.bashrc hermes completion zsh >> ~/.zshrc

重新加载 Shell

source ~/.bashrc

安装后,Tab 补全可用于:

  • hermes profile &lt;TAB&gt;——子命令(list、use、create 等)
  • hermes profile use &lt;TAB&gt;——配置文件名称
  • hermes -p &lt;TAB&gt;——配置文件名称

另请参阅

编辑此页

Continue Exploring

继续探索

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

使用指南

多配置文件 (Profiles)

Run multiple independent Hermes agents on the same machine — each with its own config, API keys, memory, sessions, skills, and gateway. A profile is a fully iso

参考

CLI 命令参考

本页介绍从终端运行的 命令行命令 。 聊天内斜杠命令请参见斜杠命令参考。 hermes [全局选项] <命令 [子命令/选项] hermes chat [options] 常用选项: 示例: hermes hermes chat -q "总结最新的 PR" hermes chat --provider openrout

参考

常见问题与故障排除

常见问题和疑问的快速解答与修复方法。 Hermes Agent 兼容任何 OpenAI 兼容的 API。支持的提供商包括: OpenRouter ——通过一个 API 密钥访问数百个模型(推荐,灵活性最高) Nous Portal ——Nous Research 自有的推理端点 OpenAI ——GPT-4o、o1、o

参考

斜杠命令参考

原文链接:Slash Commands Reference Hermes 有两个斜杠命令(Slash Command)界面,均由 hermes cli/commands.py 中的中央 COMMAND REGISTRY 驱动: 交互式 CLI(命令行界面) 斜杠命令 — 由 cli.py 分发,支持从注册表自动补全

参考

环境变量

原文链接:Environment Variables Reference 所有变量都放在 /.hermes/.env 文件中。你也可以通过 hermes config set VAR value 来设置。 变量 描述 --- --- OPENROUTER API KEY OpenRouter API 密钥(推荐,灵活性

参考

内置工具参考

原文链接:Built-in Tools Reference 本文档记录了 Hermes 工具注册表中的全部 47 个内置工具,按工具集(Toolset)分组。工具的可用性因平台、凭证和已启用的工具集而异。 快速统计: 10 个浏览器工具、4 个文件工具、10 个强化学习(RL)工具、4 个 Home Assistant

Reference

参考

命令、配置、环境变量、技能目录与常见问题,适合作为索引与查阅入口。

11 篇文档11 个节点

当前节点

配置文件命令参考

同主题继续探索

CLI 命令参考

本页介绍从终端运行的 命令行命令 。 聊天内斜杠命令请参见斜杠命令参考。 hermes [全局选项] <命令 [子命令/选项] hermes chat [options] 常用选项: 示例: hermes hermes chat -q "总结最新的 PR" hermes chat --provider openrout

斜杠命令参考

原文链接:Slash Commands Reference Hermes 有两个斜杠命令(Slash Command)界面,均由 hermes cli/commands.py 中的中央 COMMAND REGISTRY 驱动: 交互式 CLI(命令行界面) 斜杠命令 — 由 cli.py 分发,支持从注册表自动补全

环境变量

原文链接:Environment Variables Reference 所有变量都放在 /.hermes/.env 文件中。你也可以通过 hermes config set VAR value 来设置。 变量 描述 --- --- OPENROUTER API KEY OpenRouter API 密钥(推荐,灵活性

内置工具参考

原文链接:Built-in Tools Reference 本文档记录了 Hermes 工具注册表中的全部 47 个内置工具,按工具集(Toolset)分组。工具的可用性因平台、凭证和已启用的工具集而异。 快速统计: 10 个浏览器工具、4 个文件工具、10 个强化学习(RL)工具、4 个 Home Assistant

工具集参考

工具集(Toolsets)是工具的命名捆绑包,控制 Agent 能做什么。它们是按平台、按会话或按任务配置工具可用性的主要机制。 每个工具恰好属于一个工具集。当你启用一个工具集时,该捆绑包中的所有工具都对 Agent 可用。工具集分为三类: 核心(Core) — 一组相关工具的逻辑分组(例如,file 捆绑了 read

MCP 配置参考

本页面是主 MCP 文档的紧凑参考手册。 概念指南请参阅: MCP(Model Context Protocol) 在 Hermes 中使用 MCP mcp servers: <服务器名称 : command: "..." stdio 服务器 args: [] env: {} url: "..." HTTP 服务器

相关节点

多配置文件 (Profiles)

Run multiple independent Hermes agents on the same machine — each with its own config, API keys, memory, sessions, skills, and gateway. A profile is a fully iso

CLI 命令参考

本页介绍从终端运行的 命令行命令 。 聊天内斜杠命令请参见斜杠命令参考。 hermes [全局选项] <命令 [子命令/选项] hermes chat [options] 常用选项: 示例: hermes hermes chat -q "总结最新的 PR" hermes chat --provider openrout

常见问题与故障排除

常见问题和疑问的快速解答与修复方法。 Hermes Agent 兼容任何 OpenAI 兼容的 API。支持的提供商包括: OpenRouter ——通过一个 API 密钥访问数百个模型(推荐,灵活性最高) Nous Portal ——Nous Research 自有的推理端点 OpenAI ——GPT-4o、o1、o

斜杠命令参考

原文链接:Slash Commands Reference Hermes 有两个斜杠命令(Slash Command)界面,均由 hermes cli/commands.py 中的中央 COMMAND REGISTRY 驱动: 交互式 CLI(命令行界面) 斜杠命令 — 由 cli.py 分发,支持从注册表自动补全

环境变量

原文链接:Environment Variables Reference 所有变量都放在 /.hermes/.env 文件中。你也可以通过 hermes config set VAR value 来设置。 变量 描述 --- --- OPENROUTER API KEY OpenRouter API 密钥(推荐,灵活性

内置工具参考

原文链接:Built-in Tools Reference 本文档记录了 Hermes 工具注册表中的全部 47 个内置工具,按工具集(Toolset)分组。工具的可用性因平台、凭证和已启用的工具集而异。 快速统计: 10 个浏览器工具、4 个文件工具、10 个强化学习(RL)工具、4 个 Home Assistant