Hermes Agent self-hosted with Docker and local models

How Hermes Agent runs on company infrastructure with the official Docker image and local inference servers, which ports and data it uses, and where self-hosting does not change its trust model.

On this page

Can Hermes Agent be self-hosted with Docker and local models?

Yes, the official Docker image supports self-hosting Hermes Agent on company infrastructure and connecting it to local inference servers such as vLLM or Ollama through an OpenAI-compatible base_url with the provider set to custom. A platform or security lead should know two limits before approving this: the sources available describe no enterprise edition of Hermes Agent, and self-hosting does not add multi-user isolation. Hermes Agent is documented as a single-tenant personal agent, so each deployment should be treated as serving one trust domain, whatever hosts it.

The Docker image is nousresearch/hermes-agent, published for amd64 and arm64 with latest or stable, main and versioned tags. Pin a versioned tag rather than floating on latest, and record the digest you approve. The image is stateless: configuration, .env, sessions, skills and memories live in /opt/data, mounted from the host's ~/.hermes, so that host path is where your backup, retention and encryption controls must apply. The documented ports are 8642 for the gateway's OpenAI-compatible API, 9119 for the dashboard and 9120 for the webapp. Each one that is published beyond the host needs its own network restriction and authentication decision.

Resource planning starts from the documented minimums of 1 GB of memory, 1 CPU core and 500 MB of disk, with 2 to 4 GB of memory and 2 cores recommended. Local model serving is a separate sizing exercise that these figures do not cover, so confirm GPU and memory needs with your inference server's own documentation. Before go-live, the reviewer should decide where inference runs, which endpoints the agent may reach, whether the dashboard and gateway ports are exposed, and how the mounted data directory is backed up and purged. Follow the Hermes Agent Docker documentation for current setup details, and confirm any feature not listed there with the vendor before relying on it.

Self-hosting capabilities by edition and option

This table compares what the Hermes Agent Docker setup provides in the open-source project, what you must supply from your own infrastructure, and what the project does not describe. Read each row for the capability, then check the columns for who supplies it and what to confirm with the project. The main takeaway is that the project documents the container, ports and local model connection, but it does not describe an enterprise edition, so access control, logging and backup depend on your own controls.

CapabilityBuilt inOutside component neededNot described (confirm)
Official Docker imagenousresearch/hermes-agent for amd64 and arm64Docker host or Compose runtime you operateImage signing and provenance: confirm with the project
Image tagslatest, stable, main and versioned tagsInternal registry mirror if pulls must stay inside your networkSupport window for each tag: confirm with the project
Stateless image with data in /opt/dataConfig, .env, sessions, skills and memories mounted from host ~/.hermesHost backup, encryption and retention for ~/.hermesBuilt-in backup or encryption of stored data: confirm with the project
Docker terminal backendOne of six built-in terminal backendsDocker daemon and host hardening around the containerIsolation level against an adversarial model: confirm with the project
Local vLLM or Ollama inferenceCustom provider with an OpenAI-compatible base_urlYour own vLLM or Ollama server and its GPU or CPU capacityTested model list and performance figures: confirm with the project
Gateway API on port 8642OpenAI-compatible API served by the gatewayNetwork policy, TLS termination and an authenticating reverse proxyBuilt-in API key or TLS options: confirm with the project
Dashboard on port 9119Web dashboard served by the containerReverse proxy or SSO layer and firewall rules limiting accessAuthentication options and their defaults: confirm with the project
Webapp on port 9120Web application served by the containerReverse proxy, firewall rules and access loggingAuthentication and session handling: confirm with the project
Enterprise editionNot described in the project repositoryPaid Nous Portal subscription covers models and a Tool Gateway, not self-hosted enterprise controlsEnterprise support, SLA or enterprise build: ask the vendor in writing

How the Docker deployment separates the agent, its data and its model server

The Docker deployment of Hermes Agent has three parts that a reviewer should separate on paper: the agent container, the host directory that holds its state, and the model server that does the inference. The official image is published as nousresearch/hermes-agent for amd64 and arm64, and the Docker documentation says the image itself is stateless. Configuration, .env, sessions, skills and memories live in /opt/data, which is mounted from the host's ~/.hermes. The container runs the agent and its processes, and the host directory is where everything the agent has learned or been given accumulates. Before approval, confirm which host path is mounted, who can read it, and whether it is included in host-level encryption and backup policy.

Within the container, the gateway serves the OpenAI-compatible API on port 8642, the dashboard listens on 9119 and the webapp on 9120. Each of these is a network surface, so the firewall or reverse proxy in front of the host should expose only the ports your use case needs and only to the networks that need them. The gateway is also the process that connects the agent to messaging platforms, so a reviewer should treat it as the entry point for users, not just an internal API. Local inference is a separate concern. The documentation shows pointing the agent at a local vLLM or Ollama server through an OpenAI-compatible base_url with the provider set to custom. Keeping the model server on its own host or network segment means prompts and completions stay inside your environment, but it also means the model server needs its own access control, patching and capacity planning.

The most important point for a security review is the position in the project's SECURITY.md. It describes Hermes Agent as a single-tenant personal agent and states that the only security boundary against an adversarial LLM is the operating system. The same document says that whole-process wrapping with the Docker or Compose setup is the supported posture when the agent ingests untrusted content. In practice, this means the container is the boundary you rely on, not the agent's internal approval logic. Confirm with your platform team that the container runs with the least privileges your deployment allows, that it cannot reach internal networks it does not need, and that the agent is not run directly on a shared host when it reads external documents or messages. Ask the project and your own engineers to confirm these details against the version you deploy, since the image is published under several tags.

Decisions to make before deploying Hermes Agent in-house

Each choice below changes what a compromised or misbehaving agent can reach. Host placement, data protection, network reach, exposure, model endpoint and messaging connections together set the blast radius, so settle them in writing before the first container starts.

Dedicated host or VM

Decide whether the container runs on a dedicated host, a dedicated VM or a shared machine. Hermes Agent's own security policy describes it as a single-tenant personal agent and says the operating system is the only security boundary against an adversarial model. A host that also runs other workloads, or holds other credentials, widens what an agent can reach. Ask whether the container is the only workload on the machine and which secrets are present on that host.

Hermes security policy

Protecting the mounted data directory

Config, .env, sessions, skills and memories live in /opt/data, mounted from the host's ~/.hermes. The image itself is stateless, so this host directory holds the API keys, conversation history and learned skills. Decide who can read it, how it is encrypted at rest, where it is backed up and how long backups are kept. Treat the .env file as a credential store.

Hermes Docker docs

Network segments that reach the ports

The Docker docs list port 8642 for the gateway's OpenAI-compatible API, 9119 for the dashboard and 9120 for the webapp. Decide which network segments may reach each port, and bind the ports to the interfaces you intend. Confirm with your network team that firewall rules match this list, and that no port is reachable from user devices that do not need it.

Internal-only or externally exposed

Decide whether the dashboard and gateway stay on the internal network or are published beyond it, for example through a reverse proxy or remote access for staff. Each exposed port becomes an authentication surface. Hermes Agent's security documentation covers dashboard and gateway access controls, so confirm which mechanism you will use before any port leaves the internal network.

Hermes security docs

Local model server and base URL

The Docker docs show connecting to local vLLM or Ollama servers through an OpenAI-compatible base_url with the provider set to custom. Choose one inference server, pin its address, and confirm that the agent can reach only that endpoint. Ask whether prompts stay on your network end to end, and whether any fallback provider could receive data if the local server is unavailable.

Messaging platforms the gateway may join

One gateway process can connect the agent to Telegram, Discord, Slack, WhatsApp and Signal. Each platform you enable adds an inbound channel from outside your control and a place where users can send instructions. Enable only the platforms your policy approves, decide which users may talk to the agent on each, and record who owns each bot token.

Hermes repository

How the deployment changes by environment

A cloud virtual machine is the most common starting point because the Docker image runs on a single host you control while the provider handles the hardware. The operating system and the cloud account define the security boundary, so the reviewer should confirm who can reach the host, the instance metadata service and any attached storage. Local models are often placed on a second instance or a managed GPU service, which adds a network hop that must be inside your own virtual network.

  • Exposed ports: Confirm whether 8642, 9119 and 9120 are reachable from outside the VPC. Keep them private and publish them only through an access layer you manage.
  • Model endpoint location: If vLLM or Ollama runs on another instance, confirm the base_url stays on a private address and that the model host has no route to the internet.
  • Metadata and credentials: Confirm whether the container can reach the cloud metadata endpoint and what IAM role the host carries.
  • Persistent volume: Confirm where the mounted data directory sits, who holds snapshots, and whether backups encrypt session and memory data.
  • Image provenance: Confirm which tag you pin, such as a versioned tag rather than latest, and who approves upgrades.

Before approval, ask the project and your cloud team to confirm every outbound destination the agent contacts during a test run, including model providers and any messaging platform that the gateway connects to.

Order of work for a controlled rollout

This sequence moves Hermes Agent from an unpinned download to a pinned, sized, network-restricted and recoverable deployment on company infrastructure. Each step ends with a check the approver can review before the next step starts.

  1. Confirm the image tag policy and pin a version

    The platform or security team decides which image tags are allowed in production. The official image is published as nousresearch/hermes-agent for amd64 and arm64 with latest or stable, main and versioned tags, and the team should reject floating tags such as latest for production use and pin a specific versioned tag. The step is done when the approved tag, the image digest recorded in your registry, and the owner of upgrades are written in the change record.

  2. Prepare the host to the documented sizing

    The infrastructure team provisions a host or container platform that meets the documented minimums of 1 GB of memory, 1 CPU core and 500 MB of disk, then sizes toward the recommended 2 to 4 GB of memory and 2 cores for real use. Ask the vendor or your own testing to confirm how memory and disk grow with session history, skills and memories before you fix the capacity. The step is done when the host passes a load test against your expected number of users and the sizing is recorded.

  3. Place the data directory on protected storage

    The image is stateless, and everything that matters lives in /opt/data, mounted from the host's ~/.hermes directory. That path holds configuration, the .env file with credentials, sessions, skills and memories, so the security team should treat it as sensitive: restricted file permissions, encryption at rest under your storage standard, and access limited to the service account. The step is done when a reviewer confirms who can read the mount and that secrets are not stored in plain text in shared locations.

  4. Connect the local model server through the custom provider

    Engineering points Hermes Agent at an internally hosted inference server, such as vLLM or Ollama, using an OpenAI-compatible base_url and the provider set to custom, as the Docker documentation shows. Confirm that the model endpoint is reachable only from the agent host, that traffic stays on the internal network, and that no fallback to an external provider is configured by accident. The step is done when a test session runs against the local model and network logs show no outbound calls to unapproved providers.

  5. Restrict ports 8642, 9119 and 9120

    Network engineering limits the gateway's OpenAI-compatible API on port 8642, the dashboard on 9119 and the webapp on 9120 to approved networks, such as a management subnet or specific client ranges. Nothing should be published to the internet or to general corporate segments by default, and the dashboard should sit behind the access controls your team chooses. The step is done when a scan from outside the approved networks shows these ports closed and a reviewer signs the firewall rule set.

  6. Validate the posture against SECURITY.md

    The security team reads the project's SECURITY.md and the Hermes Agent security documentation and tests each claim against the deployment. The policy describes the agent as a single-tenant personal agent whose only security boundary against an adversarial model is the operating system, and it names whole-process wrapping with Docker or Compose as the supported posture when the agent ingests untrusted content. The step is done when the team records which controls it relies on, which it accepts as residual risk, and whether the workload is limited to trusted content.

  7. Verify backups and a restore

    Operations copies the host-mounted data directory on the schedule your recovery standard requires, stores copies in protected and separate storage, and performs a restore into a clean environment. Because the image is stateless, a restore should bring back configuration, sessions, skills and memories without rebuilding the agent by hand, and the team should confirm the restored instance uses the same pinned image tag. The step is done when a restore test succeeds, the recovery time observed is recorded, and the results are filed with the change record.

Evidence a security reviewer asks for

This table lists the evidence a reviewer should request for a self-hosted Hermes Agent deployment, where each item comes from in the Docker setup, and what is missing when the evidence is absent. Read each row as a question to answer with a file, a config value or a signed-off record from your own environment. The main takeaway is that the vendor's single-tenant trust model means shared use by several people needs compensating controls that your team must document.

RequestWhere it comes fromGap if missing
Image provenance and tag pinningOfficial nousresearch/hermes-agent image for amd64 and arm64, with latest, stable, main and versioned tagsReviewer cannot tie a running container to a known image digest; floating tags like latest change without notice
Mounted data location and access controlsConfig, .env, sessions, skills and memories live in /opt/data, mounted from the host's ~/.hermesNo record of host file permissions, backup scope or who can read the .env file that holds credentials
Open ports and exposurePort 8642 for the gateway's OpenAI-compatible API, 9119 for the dashboard and 9120 for the webappPorts published beyond the internal network or without an authentication layer in front of them
Model endpoint and network pathLocal vLLM or Ollama server reached through an OpenAI-compatible base_url with provider set to customNo evidence that inference traffic stays on the internal network, or that egress to other model providers is blocked
Resource sizing recordDocumented minimums of 1 GB memory, 1 CPU core and 500 MB disk, with 2 to 4 GB memory and 2 cores recommendedSizing chosen without a load test or monitoring plan, so memory limits and restarts are unexplained
Security policy and disclosure processSECURITY.md: private reporting through GitHub security advisories, no bug bounty, 90-day coordinated disclosure window or until a fix shipsNo internal owner tracks advisories, and no record shows the team checked the version it runs against published fixes
Accepted trust model for multiple usersVendor describes Hermes Agent as a single-tenant personal agent with the operating system as the only boundary against an adversarial LLMShared use by several staff with no documented risk acceptance, and no isolation or per-user separation evidence
Whole-process wrapping for untrusted contentVendor states Docker or Compose wrapping is the supported posture when the agent ingests untrusted contentContainer runs directly on the host or with broad host mounts, so the supported posture is not met

Questions buyers ask before approving a self-hosted deployment

What does a self-hosted Hermes Agent deployment cost, and what drives the price?

The software is open source under the MIT license, so the license itself adds no fee, but the work to deploy it is priced by the written scope. The main cost drivers are the number of environments, whether the deployment runs in your cloud account, data center or air-gapped network, how many inference servers you connect (for example vLLM or Ollama), and how much integration you need with your logging, secrets management and identity systems. Model hosting and GPU capacity are separate costs you pay your own infrastructure or model provider. Ask any quote to separate one-time work (design, hardening, initial setup, documentation) from recurring work (upgrades, monitoring, retained support), and to list which hosting and model costs are excluded. DeployOpen does not publish a price list, so a quote follows from the written scope.

Can our own team deploy Hermes Agent with Docker without outside help?

Yes, a team with container and network experience can run the official image, which is published as nousresearch/hermes-agent for amd64 and arm64. The harder questions are organizational: whether your security team accepts the single-tenant trust model, how the agent's configuration, sessions and memories are backed up, and how it is monitored and upgraded. Before deciding, check the vendor's security documentation on the single-tenant model and on the Docker posture for untrusted content. If you bring in outside help, DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted platforms in your own infrastructure, and most engagements are fixed-scope with deliverables agreed in writing before work starts.

How long does a self-hosted Hermes Agent deployment take?

Timing depends on the written scope. The factors that matter are the number of hosts and environments, how many messaging or API integrations are enabled, the inference server setup, and the review cycles your security and change management processes require. The sources supplied for this page do not give a duration for a deployment, so do not accept a timeline without a scope. Ask for the milestones, the dependencies on your team (network approvals, container registry access, identity provider configuration, model server access), and the acceptance criteria in the quote. Timelines for ongoing support or testing are set separately under retainer terms.

Does self-hosting Hermes Agent keep our data out of the vendor's hands?

Self-hosting keeps the runtime and its stored data on infrastructure you control. According to the Docker documentation, configuration, the .env file, sessions, skills and memories live in /opt/data, mounted from the host's ~/.hermes, and the image itself is stateless. That means the data location is your host or volume. It does not automatically cover everything else: prompts and content still go to whichever model endpoint you configure, and messaging platforms such as Telegram, Discord, Slack, WhatsApp and Signal carry traffic through their own services. Confirm where each model endpoint runs, which external services are enabled, how the host volume is encrypted and backed up, and who can read .env. DeployOpen can document and harden these paths, but it does not issue audit reports or attestations, and compliance assessments are performed by independent auditors.

Is there an enterprise edition of Hermes Agent with vendor support?

The sources supplied for this page do not describe an enterprise edition of Hermes Agent. The repository promotes Nous Portal, a subscription that bundles access to 300+ models and a Tool Gateway, and the project's documentation describes a single-tenant personal agent. Do not assume that SSO, centralized administration or service-level commitments exist in the open-source release. Ask the vendor in writing for any commercial edition, its features, support terms and security responsibilities, and confirm whether it changes the single-tenant trust model. Treat Nous Portal as a model and tool access subscription to be evaluated separately from the self-hosted software.

What does a fixed-scope DeployOpen engagement cover for Hermes Agent?

A fixed-scope engagement covers the work named in the written scope, with deliverables and timelines agreed before work starts. For a self-hosted Hermes Agent deployment, typical items to specify include the target infrastructure (cloud account, data center or air-gapped network), the Docker image tag and version policy, the mounted data location and backup approach, the connection to your local inference servers through an OpenAI-compatible base URL, the exposed ports (8642 for the gateway API, 9119 for the dashboard and 9120 for the webapp, as documented), network restrictions, and the handover documentation. DeployOpen also prepares systems, controls and evidence for compliance assessments, but independent auditors issue any audit report. Ongoing upgrades, support and continuous security testing are available as retainers.

What are the minimum resources for a Hermes Agent container?

According to the Docker documentation, the minimum is 1 GB of memory, 1 CPU core and 500 MB of disk, and 2 to 4 GB of memory with 2 cores is recommended. Those figures cover the agent container only. Your inference server, whether vLLM or Ollama, needs its own memory, GPU or CPU capacity and model storage, which often exceed the agent's requirements by a wide margin. Plan storage for the mounted data directory as well, since sessions, skills and memories grow over time. Confirm these numbers against your own load testing before sizing production hosts.

Where to check each claim

Start with the Docker documentation for every deployment claim in this topic. It states that the official image is nousresearch/hermes-agent for amd64 and arm64, with latest or stable, main and versioned tags. Confirm which tag your change board approves and pin a versioned tag rather than tracking a moving one. The same page explains that configuration, .env, sessions, skills and memories live in /opt/data, mounted from the host's ~/.hermes, and that the image itself is stateless. It also lists ports 8642 (the gateway's OpenAI-compatible API), 9119 (the dashboard) and 9120 (the webapp), plus the minimum and recommended memory and CPU figures. Check those ports against your firewall and reverse proxy rules, and confirm the disk and memory numbers against your own load tests, because the page gives minimums and recommendations rather than sizing for your workload. The local model connection, an OpenAI-compatible base_url with the provider set to custom for vLLM or Ollama, is described on the same page. Verify the exact configuration keys in your installed version before writing them into a standard build.

Governing statements about trust sit in the project's SECURITY.md and its security documentation, not in the Docker guide. SECURITY.md describes Hermes Agent as a single-tenant personal agent and says the only security boundary against an adversarial model is the operating system. It also names whole-process wrapping with the Docker or Compose setup as the supported posture when the agent ingests untrusted content. Treat that as the basis for your container design: the container is the containment layer, so restrict its network egress, mounted host paths and credentials accordingly. Ask the vendor or project in writing whether any enterprise support, multi-user isolation or hardened image exists, since the repository does not describe one. Finally, read the security documentation for the current approval and sandbox behavior, because those controls are heuristic and do not replace the container boundary.

How DeployOpen helps plan a self-hosted Hermes Agent deployment

DeployOpen plans, implements and documents self-hosted open-source platforms inside the client's own infrastructure, and that includes running Hermes Agent with the official Docker image against local inference servers. We scope the container, its data mounts, network exposure and model connections in writing before any work starts, so the reviewing team knows exactly what gets deployed and where its data sits.

How we scope

  • Written scope covering the Docker host, the image tag to be pinned, and the data directory mounted from the host's ~/.hermes path.
  • Inventory of which ports are exposed, including the gateway API on 8642, the dashboard on 9119 and the webapp on 9120.
  • Agreed sizing against the documented minimums and recommended resources, plus the local vLLM or Ollama servers the agent will call.

How we build

  • Container configuration with the official image, persistent storage for config, .env, sessions, skills and memories, and no state baked into the image.
  • Custom provider configuration pointing the OpenAI-compatible base_url at the client's local inference servers, with model endpoints kept inside the network.
  • Testing of exposed ports, dashboard and gateway access, and the agent's reach into the host, documented against the agreed scope.

How we hand over

  • Written runbook covering image updates, rollback to a pinned tag, backup of the mounted data directory and restart procedures.
  • Documentation of network boundaries, the whole-container wrapping posture, and the limits of the single-tenant trust model for the client's review file.
  • Handover session with the platform, IT and security owners, with a list of open items to confirm with the vendor or the client's own environment.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Retesting after image upgrades, new skills or changes to model endpoints, so the documented posture stays current.
  • Support is scoped in writing, so the client knows which tasks, versions and environments the retainer covers.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.