Files
nexus/wiki/concepts/多Profile隔离.md
2026-05-03 05:42:12 +08:00

36 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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