Update nexus wiki content

This commit is contained in:
2026-05-03 05:42:06 +08:00
parent 90f3811b83
commit 111bc65b7b
707 changed files with 32306 additions and 7289 deletions

View File

@@ -0,0 +1,35 @@
---
title: "多Profile隔离"
type: concept
tags: []
last_updated: 2026-05-02
---
## Definition
Hermes Agent 的 Profile 机制允许为每个角色/用户创建独立的配置实例,每个 Profile 拥有独立的端口、API Key、工具集和会话状态实现多 Agent 的进程级隔离与并发协作。
## Details
- 每个 Profile 是独立运行的 Hermes 实例
- 典型分工示例agent-researcher8643、agent-writer8644、agent-coder8645
- 端口和 API Key 均可独立配置
- Profile 之间完全隔离,不会相互干扰会话上下文
## Usage
```bash
# 创建专属 Agent
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
hermes -p agent-researcher gateway &
```
## Related
- [[HermesAgent]] — Profile 机制的基础框架
- [[OpenAI兼容API]] — 每个 Profile 暴露的调用接口
- [[工作流编排]] — 多 Profile 配合 n8n 实现分工协作
## Aliases
- Multi-Profile Isolation
- Profile-based multi-tenancy
- Agent Profile Isolation