36 lines
1.1 KiB
Markdown
36 lines
1.1 KiB
Markdown
---
|
||
title: "多Profile隔离"
|
||
type: concept
|
||
tags: []
|
||
last_updated: 2026-05-02
|
||
---
|
||
|
||
## Definition
|
||
Hermes Agent 的 Profile 机制允许为每个角色/用户创建独立的配置实例,每个 Profile 拥有独立的端口、API Key、工具集和会话状态,实现多 Agent 的进程级隔离与并发协作。
|
||
|
||
## Details
|
||
- 每个 Profile 是独立运行的 Hermes 实例
|
||
- 典型分工示例:agent-researcher(8643)、agent-writer(8644)、agent-coder(8645)
|
||
- 端口和 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
|