59 lines
1.9 KiB
Markdown
59 lines
1.9 KiB
Markdown
---
|
||
tags: [实体]
|
||
created: 2026-09-14
|
||
updated: 2026-09-14
|
||
sources: [raw/notes/2026-09-14-n8n调用hermes-agents工作流架构.md]
|
||
---
|
||
|
||
# Hermes Profile
|
||
|
||
> [[Hermes Agent]] 的多实例隔离机制:每个 profile 是一套独立的配置、端口和 API key。
|
||
|
||
## 简介
|
||
|
||
Profile 让同一台机器上并存多个互不干扰的 Hermes 实例。每个 profile 有自己的配置目录、自己的 [[Hermes API Server]] 端口、自己的 API key,因此可以被当作一个「专职 Agent」对外提供服务。它是 [[多 Agent 工作流编排]] 中角色分工的落地方式。
|
||
|
||
## 关键信息
|
||
|
||
- **类型**:概念 / 机制
|
||
- **领域**:AI Agent 运行时、多实例隔离
|
||
- **相关概念**:[[Hermes Agent]]、[[Hermes API Server]]、[[n8n]]
|
||
- **命令形态**:`hermes profile create <name>`,`hermes -p <name> <subcommand>`
|
||
|
||
## 详细内容
|
||
|
||
### 创建与配置
|
||
|
||
```bash
|
||
hermes profile create agent-researcher
|
||
hermes -p agent-researcher config set API_SERVER_ENABLED true
|
||
hermes -p agent-researcher config set API_SERVER_PORT 8643
|
||
hermes -p agent-researcher config set API_SERVER_KEY key-researcher
|
||
```
|
||
|
||
关键点:`-p <profile>` 前缀让所有后续命令作用于该 profile,因此端口和密钥都是 per-profile 的。
|
||
|
||
### 多角色分工示例
|
||
|
||
素材给出的分工骨架——调研、写作、编码各占一个 profile,各自独立端口:
|
||
|
||
| Profile | 端口 | 职责 |
|
||
|---|---|---|
|
||
| agent-researcher | 8643 | 搜索 / 调研 |
|
||
| agent-writer | 8644 | 内容生成 |
|
||
| agent-coder | 8645 | 代码任务 |
|
||
|
||
启动方式:`hermes -p <name> gateway &`,三个 profile 各起一个 gateway。
|
||
|
||
<!-- confidence: INFERRED -->
|
||
|
||
## 不同素材中的观点
|
||
|
||
- [[wiki/sources/2026-09-14-n8n调用hermes-agents工作流架构]]:Profile 被用作「为每个用户/角色创建独立的 Hermes 实例」的手段,每实例独立端口与 API key。
|
||
|
||
## 相关页面
|
||
|
||
- [[Hermes Agent]]
|
||
- [[Hermes API Server]]
|
||
- [[多 Agent 工作流编排]]
|