Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Hermes Agent Profile System and Distributions

Profile System and Distributions

We can use Hermes to create multiple independent Agents - one dedicated to writing code, one for operations, and one for research.

This chapter introduces how the Profile system runs multiple fully isolated Agent instances on one machine, and how to package an entire Agent as a distribution to share with others.


Profile system: one machine, multiple independent Agents

What is a Profile

A Profile is an independent Hermes home directory. Each Profile has its own fully isolated configuration and data:



~/.hermes/profiles//

├── config.yaml     # 模型、工具、终端后端等所有设置

├── .env            # API Key、Bot Token(各档案各自独立)

├── SOUL.md         # Agent 人格与身份设定

├── memories/       # 独立的持久记忆(MEMORY.md、USER.md)

├── skills/         # 独立的技能目录

├── cron/           # 独立的定时任务

└── state.db        # 独立的会话历史数据库

Key design: after creating a Profile, it automatically becomes an independent command. Create a Profile named coder and you immediately have coder chat, coder setup, coder gateway start and all other subcommands - just like installing a fully independent Hermes instance.

Quick Start

Create an independent coding assistant in three steps:

Example

Step 1: create a Profile, which automatically generates the coder command

hermes profile create coder

Step 2: configure this Profile's API Key and model

coder setup

Step 3: start chatting

coder chat

Three creation modes

Example

Mode 1: brand-new Profile (blank configuration, built-in skills preloaded)

hermes profile create mybot

Mode 2: clone configuration (config.yaml + .env + SOUL.md + skills,

         memory and sessions not copied)

hermes profile create work

--clone

Mode 3: full clone (including memory, skills, scheduled tasks, plugins,

         excluding session history)

hermes profile create backup

--clone-all

Clone from a specified Profile

hermes profile create work-backup

--clone-from

coder

--clone-all

Mode Copied content Content not copied Applicable scenarios
Brand-new (default) Built-in skills only — Configure a new Agent from scratch
--clone Configuration, environment variables, persona, skills Memory, session history Different variants of the same Agent
--clone-all Configuration, memory, skills, scheduled tasks, plugins Session history Full backup

Switching and using Profiles

Example

Method 1: use the auto-generated command alias (most common)

coder chat

coder gateway start

coder skills list

coder config

set

model.default anthropic

/

claude-sonnet-

4

6

Method 2: specify explicitly with the -p flag

hermes

-p

coder chat

hermes

--profile

=coder doctor

hermes chat

-p

coder

-q

"Hello" (Chinese)

Method 3: set the current default (similar to kubectl config use-context)

hermes profile use coder      

After that, running hermes directly will use coder

hermes profile use default    

Switch back to the default

Determine which Profile you are currently in:

The difference between Profiles, working directories, and sandboxes

These are the three most easily confused concepts:

Concept What it controls Configuration method
Profile Hermes's own state (configuration, memory, skills, sessions) hermes profile create
Working directory Where terminal commands start executing terminal.cwd
Sandbox File system access scope restrictions Terminal backend (docker/modal, etc.)

A Profile is not a sandbox - under the default local backend, the Agent still has the same file system permissions as you. If you need to restrict the access scope, switch the terminal backend (see Chapter 05).

Make a Profile always start working from a specific directory:

Example

File path: ~/.hermes/config.yaml

Make the coder Profile always start from the project directory

terminal

:

  backend

:

local

  cwd

:

/absolute/path/to/project

Multi-Profile gateway: each Agent connects to a different platform

Each Profile runs its own independent gateway process, using its own Bot Token:

Example

Start each independent gateway

coder gateway start      

Bind coder's Telegram Bot

assistant gateway start  

Bind a different Bot

Install as a persistent system service

coder gateway

install

   

Create the hermes-gateway-coder systemd service

assistant gateway

install

Create the hermes-gateway-assistant service

Safety protection: if two Profiles accidentally use the same Bot Token, the second gateway immediately reports an error and names the conflicting Profile; no silent conflict occurs.

Profile management commands

Example

List all Profiles and their status

hermes profile list

View detailed information about a Profile

hermes profile show coder

Rename (automatically updates the alias and service)

hermes profile rename coder dev-bot

Export as coder.tar.gz

hermes profile

export

coder

Import from an archive

hermes profile import coder.tar.gz

Delete (requires entering the name to confirm)

hermes profile delete coder

Delete directly, skipping confirmation

hermes profile delete coder

--yes

The default Profile (~/.hermes) cannot be deleted. To uninstall completely, use hermes uninstall.


Profile Distributions: share an entire Agent with others

A Profile Distribution packages a complete Hermes Agent - persona settings, skills, scheduled tasks, MCP connections, configuration - into a Git repository.

Anyone can install the entire Agent with one command and receive your updates while keeping their own memory, sessions, and API Key.

Distribution vs Profile backup

Dimension Distribution Backup (export/import)
Target audience Others (team, community) Yourself (migration between machines)
Installation method hermes profile install github.com/... hermes profile import xxx.tar.gz
Version Management Git repository + tags None
update hermes profile update Manual re-export and re-import
API Key Configured by the recipient Included in the export

Scenarios suited to Distributions

Create and publish a Distribution

Step 1: add in an existing Profile distribution.yaml:

Example

File path: ~/.hermes/profiles/research-bot/distribution.yaml

name

:

research-bot

version

:

1.0.0

description

:

"Autonomous research assistant, integrating arXiv and web tools"

hermes_requires

:

">=0.12.0"

author

:

"Your name"

license

:

"MIT"

Declare the environment variables the recipient needs to configure

env_requires

:

  - name

:

OPENAI_API_KEY

    description

:

"OpenAI API Key (for model access)"

    required

:

true

  - name

:

SERPAPI_KEY

    description

:

"SerpAPI Key (for web search)"

    required

:

false

    default

:

""

Step 2: push to the Git repository:

Example

Enter the Profile directory and initialize a Git repository

cd

~

/

.hermes

/

profiles

/

research-bot

git init

git add

.

git commit

-m

"v1.0.0"

git remote

add origin

git

@

github.com:you

/

research-bot.git

git tag

v1.0.0

git push

-u

origin main

--tags

.env and auth.json are automatically excluded - the API Key never enters the repository. Memory and session history are also not included.

Install and update a Distribution

Example

Install (--alias creates a command with the same name, e.g. research-bot chat)

hermes profile

install

github.com

/

you

/

research-bot

--alias

Configure the API Key after installation

nano

~

/

.hermes

/

profiles

/

research-bot

/

.env

Update to the latest version (keeping your own memory and sessions)

hermes profile update research-bot


Common Command Quick Reference

Example

--- Profile Management ---

hermes profile create

<

name

                   

Create brand-new

hermes profile create

<

name

--clone

hermes profile create

<

name

--clone-all

hermes profile create

<

name

--clone-from

<

src

hermes profile list                            

List all

hermes profile show

<

name

                     

View details

hermes profile use

<

name

                     

Set as default

hermes profile rename

<

old

<

new

hermes profile

export

<

name

                   

Export a backup

hermes profile import

<

file

                   

Import a backup

hermes profile delete

<

name

<

name

chat

/

setup

/

gateway start

/

skills list

/

doctor

--- Distribution ---

hermes profile

install

github.com

/

user

/

repo

--alias

 

Installation

hermes profile update

<

name

                       

update