Open troubleshooting index CMD K

Container-first operation

Hermes Agent Docker guide

Use Docker when you want a clearer data volume, repeatable updates, and a stronger operational boundary than a local host install. Keep one data directory per profile or deployment.

Agent Guide is an independent editorial resource. It is not affiliated with, endorsed by, or sponsored by Nous Research, Hermes Agent, or Hermes/Hermes brand owners. Product names and marks belong to their respective owners.

Intent hermes-agent-docker-install
Sources 5
Schema 2
Links 6

First-run shape

The official Docker guide uses a mounted data directory so config, API keys, sessions, skills, and memories survive image updates.

First-run shape / command
mkdir -p ~/.hermes

docker run -it --rm \
  -v ~/.hermes:/opt/data \
  nousresearch/hermes-agent

Safer deployment checklist

Running on a VPS

ConcernDefault stance
PortsExpose only the gateway/API ports you actually need.
BackupsBack up /opt/data or the host-mounted data directory before upgrades.
SecretsPrefer environment or secrets-manager injection over loose files.
ProfilesUse separate containers and volumes for work/personal identities.

Docker mode distinction

There are two Docker decisions. You can run Hermes Agent itself inside Docker, or you can configure Docker as the terminal backend while Hermes runs on the host. The official Docker page focuses on running Hermes inside a container and stores user data through a host mount at /opt/data.

Agent Guide treats both paths as security decisions. A container boundary helps, but mounted files, exposed ports, forwarded environment variables, and API keys still define the real blast radius.

Production-like Docker checklist

When to use Docker Compose

Use Docker Compose when you want a repeatable service definition, checked-in infrastructure notes, and a cleaner upgrade path than remembering a long docker run command.

Agent Guide judgment

Use Docker when you want repeatability and a clearer boundary, not because containers magically make agent work safe. The real risk is the combination of mounted files, forwarded environment variables, exposed ports, and unattended workflows.

For most production-like experiments, prefer a narrow data mount and localhost-only ports before any public gateway, reverse proxy, or team messaging integration.

Docker smoke test

  1. Start the container with a dedicated data directory, not a broad home mount.
  2. Confirm logs show startup without provider-key or path errors.
  3. Run one harmless task and inspect which host files were mounted.
  4. Back up the data directory before testing updates or persistent workflows.

Two Docker decisions

DecisionOfficial-doc implicationOperator consequence
Run Hermes itself in DockerThe data directory is mounted into the container.Backups and secrets follow the mounted data path.
Use Docker as terminal backendAgent terminal/execute_code calls run in a sandbox container.You still decide image, mounts, forwarded env, user mapping, and resource limits.
Use Docker on a VPSGateway and server operation become possible.Network exposure, logs, backups, and updates become production concerns.

Docker resource reality

The official Docker docs call browser automation the most memory-hungry feature and give higher memory guidance when browser tools are active. That matters for VPS advice: a small server may be fine for a gateway or text workflow, then become unreliable once browser automation enters the workflow.

Workflow shapeResource implicationOperator response
Text-only gateway or simple CLI workLower memory pressure.Start small but keep logs and upgrade path ready.
Browser/search/extraction-heavy workflowMore memory pressure and dependency complexity.Budget more RAM and test before scheduling.
Docker inside Docker or host Docker socketBroader host control if socket is mounted.Avoid unless the workflow explicitly requires container control.

Official sources reviewed

Source Used for Last checked Confidence
Hermes Agent Docker guide Docker run modes, mounted data directory, gateway operation, ports, and production cautions. 2026-06-05 high
Hermes Agent configuration guide Provider, model, backend, and environment configuration patterns. 2026-06-05 high
Hermes Agent security guide Approval modes, gateway authorization, Docker terminal backend hardening, and credential cautions. 2026-06-05 high
Public Hermes Agent Docker issue reports Publicly reported Docker and file-ownership friction patterns. 2026-06-05 medium
Reddit r/hermesagent community start thread Community demand signals for Docker vs local vs VPS, memory/context, OpenRouter, and install anxiety; not used as product truth. 2026-06-05 low

Known caveats: Docker can mean running Hermes inside a container or using Docker as the terminal backend. Confirm which model you are configuring before copying commands.

FAQ

Does Docker make Hermes Agent automatically safe?

No. Docker improves the boundary, but mounted volumes, forwarded environment variables, exposed ports, and gateway tokens still need review.

Operator checklist

Get the Agent Guide launch checklist

Receive the smoke-test order for install path, sandbox boundary, provider setup, source review, and production checks.