Profiles: Running Multiple Agents
Profiles: Running Multiple Agents
Section titled “Profiles: Running Multiple Agents”Run multiple independent Hermes agents on the same machine — each with its own config, API keys, memory, sessions, skills, and gateway state.
What are profiles?
Section titled “What are profiles?”A profile is a separate Hermes home directory. Each profile gets its own directory containing its own config.yaml, .env, SOUL.md, memories, sessions, skills, cron jobs, and state database. Profiles let you run separate agents for different purposes — a coding assistant, a personal bot, a research agent — without mixing up Hermes state.
When you create a profile, it automatically becomes its own command. Create a profile called coder and you immediately have coder chat, coder setup, coder gateway start, etc.
Quick start
Section titled “Quick start”hermes profile create coder # creates profile + "coder" command aliascoder setup # configure API keys and modelcoder chat # start chattingThat’s it. coder is now its own Hermes profile with its own config, memory, and state.
Creating a profile
Section titled “Creating a profile”Blank profile
Section titled “Blank profile”hermes profile create mybotCreates a fresh profile with bundled skills seeded. Run mybot setup to configure API keys, model, and gateway tokens.
Clone config only (--clone)
Section titled “Clone config only (--clone)”hermes profile create work --cloneCopies your current profile’s config.yaml, .env, and SOUL.md into the new profile. Same API keys and model, but fresh sessions and memory. Edit ~/.hermes/profiles/work/.env for different API keys, or ~/.hermes/profiles/work/SOUL.md for a different personality.
Clone everything (--clone-all)
Section titled “Clone everything (--clone-all)”hermes profile create backup --clone-allCopies everything — config, API keys, personality, all memories, full session history, skills, cron jobs, plugins. A complete snapshot. Useful for backups or forking an agent that already has context.
Clone from a specific profile
Section titled “Clone from a specific profile”hermes profile create work --clone --clone-from coder:::tip Honcho memory + profiles
When Honcho is enabled, --clone automatically creates a dedicated AI peer for the new profile while sharing the same user workspace. Each profile builds its own observations and identity. See Honcho — Multi-agent / Profiles for details.
:::
Using profiles
Section titled “Using profiles”Command aliases
Section titled “Command aliases”Every profile automatically gets a command alias at ~/.local/bin/<name>:
coder chat # chat with the coder agentcoder setup # configure coder's settingscoder gateway start # start coder's gatewaycoder doctor # check coder's healthcoder skills list # list coder's skillscoder config set model.default anthropic/claude-sonnet-4The alias works with every hermes subcommand — it’s just hermes -p <name> under the hood.
The -p flag
Section titled “The -p flag”You can also target a profile explicitly with any command:
hermes -p coder chathermes --profile=coder doctorhermes chat -p coder -q "hello" # works in any positionSticky default (hermes profile use)
Section titled “Sticky default (hermes profile use)”hermes profile use coderhermes chat # now targets coderhermes tools # configures coder's toolshermes profile use default # switch backSets a default so plain hermes commands target that profile. Like kubectl config use-context.
Knowing where you are
Section titled “Knowing where you are”The CLI always shows which profile is active:
- Prompt:
coder ❯instead of❯ - Banner: Shows
Profile: coderon startup hermes profile: Shows current profile name, path, model, gateway status
Profiles vs workspaces vs sandboxing
Section titled “Profiles vs workspaces vs sandboxing”Profiles are often confused with workspaces or sandboxes, but they are different things:
- A profile gives Hermes its own state directory:
config.yaml,.env,SOUL.md, sessions, memory, logs, cron jobs, and gateway state. - A workspace or working directory is where terminal commands start. That is controlled separately by
terminal.cwd. - A sandbox is what limits filesystem access. Profiles do not sandbox the agent.
On the default local terminal backend, the agent still has the same filesystem access as your user account. A profile does not stop it from accessing folders outside the profile directory.
If you want a profile to start in a specific project folder, set an explicit absolute terminal.cwd in that profile’s config.yaml:
terminal: backend: local cwd: /absolute/path/to/projectUsing cwd: "." on the local backend means “the directory Hermes was launched from”, not “the profile directory”.
Also note:
SOUL.mdcan guide the model, but it does not enforce a workspace boundary.- Changes to
SOUL.mdtake effect cleanly on a new session. Existing sessions may still be using the old prompt state. - Asking the model “what directory are you in?” is not a reliable isolation test. If you need a predictable starting directory for tools, set
terminal.cwdexplicitly.
Running gateways
Section titled “Running gateways”Each profile runs its own gateway as a separate process with its own bot token:
coder gateway start # starts coder's gatewayassistant gateway start # starts assistant's gateway (separate process)Different bot tokens
Section titled “Different bot tokens”Each profile has its own .env file. Configure a different Telegram/Discord/Slack bot token in each:
# Edit coder's tokensnano ~/.hermes/profiles/coder/.env
# Edit assistant's tokensnano ~/.hermes/profiles/assistant/.envSafety: token locks
Section titled “Safety: token locks”If two profiles accidentally use the same bot token, the second gateway will be blocked with a clear error naming the conflicting profile. Supported for Telegram, Discord, Slack, WhatsApp, and Signal.
Persistent services
Section titled “Persistent services”coder gateway install # creates hermes-gateway-coder systemd/launchd serviceassistant gateway install # creates hermes-gateway-assistant serviceEach profile gets its own service name. They run independently.
Configuring profiles
Section titled “Configuring profiles”Each profile has its own:
config.yaml— model, provider, toolsets, all settings.env— API keys, bot tokensSOUL.md— personality and instructions
coder config set model.default anthropic/claude-sonnet-4echo "You are a focused coding assistant." > ~/.hermes/profiles/coder/SOUL.mdIf you want this profile to work in a specific project by default, also set its own terminal.cwd:
coder config set terminal.cwd /absolute/path/to/projectUpdating
Section titled “Updating”hermes update pulls code once (shared) and syncs new bundled skills to all profiles automatically:
hermes update# → Code updated (12 commits)# → Skills synced: default (up to date), coder (+2 new), assistant (+2 new)User-modified skills are never overwritten.
Managing profiles
Section titled “Managing profiles”hermes profile list # show all profiles with statushermes profile show coder # detailed info for one profilehermes profile rename coder dev-bot # rename (updates alias + service)hermes profile export coder # export to coder.tar.gzhermes profile import coder.tar.gz # import from archiveDeleting a profile
Section titled “Deleting a profile”hermes profile delete coderThis stops the gateway, removes the systemd/launchd service, removes the command alias, and deletes all profile data. You’ll be asked to type the profile name to confirm.
Use --yes to skip confirmation: hermes profile delete coder --yes
Tab completion
Section titled “Tab completion”# Basheval "$(hermes completion bash)"
# Zsheval "$(hermes completion zsh)"Add the line to your ~/.bashrc or ~/.zshrc for persistent completion. Completes profile names after -p, profile subcommands, and top-level commands.
How it works
Section titled “How it works”Profiles use the HERMES_HOME environment variable. When you run coder chat, the wrapper script sets HERMES_HOME=~/.hermes/profiles/coder before launching hermes. Since 119+ files in the codebase resolve paths via get_hermes_home(), Hermes state automatically scopes to the profile’s directory — config, sessions, memory, skills, state database, gateway PID, logs, and cron jobs.
This is separate from terminal working directory. Tool execution starts from terminal.cwd (or the launch directory when cwd: "." on the local backend), not automatically from HERMES_HOME.
The default profile is simply ~/.hermes itself. No migration needed — existing installs work identically.