Hermes Agent
How to run Hermes Agent on Kubernetes
Updated 1 December 2026
Nous Research publishes a Docker image for Hermes Agent, its open-source AI agent. We found no official Helm chart or Kubernetes manifests for the 0.23.5 release. You can run the image on your own cluster with a Deployment to start the messaging gateway, a PersistentVolumeClaim to keep its data across Pod replacements, and a Secret to supply credentials. This example uses one replica. To test it, send your Telegram bot a chat prompt and confirm a model-generated answer.
The example adapts the container behaviour documented by Hermes Agent 0.23.5 to the objects described in the Kubernetes v1.37 documentation. Sources were read on 30 November 2026. See the Hermes Agent release, its Docker guide, the Docker Hub tag record, and the Kubernetes guides to Deployments, persistent volumes and Secrets.
Which Helm chart or image should you use?
The Hermes Agent source tree at v0.23.5, its release notes and the public Nous Research repository list contain no published Hermes Agent chart or Kubernetes deployment manifests. The release workflow publishes nousresearch/hermes-agent to Docker Hub. The registry lists nousresearch/hermes-agent:v0.23.5 for linux/amd64 and linux/arm64. Tagged source tree, Nous Research repositories and image release workflow.
Keep the leading v in the tag. The Docker guide’s version table omits the prefix in its pattern. Docker Hub lists v0.23.5 and returns a 404 for 0.23.5. Use the registry spelling when setting the image. The stable and latest tags move when a release is promoted. Use a digest if you need the exact image contents to stay fixed. See the registry entry and Kubernetes image names. For a single Docker host, follow the Hermes Agent Docker guide.
1. Prepare the cluster and create a Secret
Use a namespace that allows the stock image’s root-at-start bootstrap. You need a matching writable volume or a storage class that can provision one. Keep the Secret, claim and Deployment in the same namespace. Run kubectl config view --minify to check the cluster and namespace for the current context. If the context has no namespace set, the commands use default. To target another namespace, pass the same --namespace option to each. The container needs outbound access to Telegram and OpenRouter for this example. See the kubectl config view reference, the Pod Security Standards and the volume and claim lifecycle.
Get an OpenRouter API key with enough credits to use anthropic/claude-opus-4.6, the model seeded by the tagged image on a fresh volume. Hermes can select OpenRouter from OPENROUTER_API_KEY when the provider is set to auto. Create a Telegram bot and find your numeric Telegram user ID using the Telegram bot setup guide. See the seeded model configuration, OpenRouter model pricing and the provider selection code.
In a local file called hermes-secrets.env, replace the placeholders below with your key and bot token. Keep the file private and out of version control. Then create the Secret in your target namespace using the command below. Kubernetes stores Secrets unencrypted by default. Enable encryption at rest and restrict who can read Secrets or create Pods in that namespace. See the Kubernetes Secret security guidance.
OPENROUTER_API_KEY=<your-openrouter-key>
TELEGRAM_BOT_TOKEN=<your-telegram-bot-token>kubectl create secret generic hermes-credentials --from-env-file=hermes-secrets.envTo reuse an existing claim in the same namespace, omit the claim definition in the example below and set claimName to the existing claim’s name. Take the old gateway offline. If a Deployment manages it, scale that Deployment to zero. Wait for any old gateway Pod to terminate. To edit the saved files, mount the claim at /opt/data in a temporary Pod in the same namespace. Make sure that Pod can write to the volume and does not start the gateway. See the Kubernetes scaling reference, the guide to claims and the Hermes shared-volume warning.
In /opt/data/.env, remove assignments for settings Kubernetes should supply and unset TELEGRAM_WEBHOOK_URL to use polling. The Docker guide says environment flags override the file. We follow the 0.23.5 loader, which applies the file with override=True at startup. In /opt/data/config.yaml, check that the saved model and provider match your credentials and that Telegram is enabled. See the environment loader and Telegram webhook settings.
Before starting the bot, remove Telegram’s saved allow_from from /opt/data/config.yaml so the Pod’s TELEGRAM_ALLOWED_USERS takes effect. Clear any Telegram group access rules you no longer want from config.yaml and .env. In .env, remove TELEGRAM_ALLOW_ALL_USERS and GATEWAY_ALLOW_ALL_USERS, then remove unwanted IDs from GATEWAY_ALLOWED_USERS. Revoke Telegram pairings that should no longer have access. See the Telegram access rules, gateway access checks and pairing instructions.
When the edits are done, delete the temporary Pod and wait for it to terminate before applying the Deployment.
2. Create the claim and start one gateway
Save this example as hermes.yaml. The image sets HERMES_HOME to /opt/data. The claim keeps the configuration, session database, memories and skills when Kubernetes replaces the Pod. The storage request is an example. Use a CSI storage class that supports ReadWriteOncePod on a volume that supports SQLite write-ahead logging (WAL). If your cluster’s default class is unsuitable, set storageClassName on the claim to a compatible one. Replace the example value in TELEGRAM_ALLOWED_USERS with your numeric ID, or use comma-separated IDs for multiple authorised users. The example disables the automatic mount of Kubernetes service account credentials.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: hermes-data
spec:
accessModes:
- ReadWriteOncePod
resources:
requests:
storage: 8Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hermes-agent
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: hermes-agent
template:
metadata:
labels:
app: hermes-agent
spec:
automountServiceAccountToken: false
containers:
- name: hermes
image: nousresearch/hermes-agent:v0.23.5
args: ["gateway", "run"]
env:
- name: OPENROUTER_API_KEY
valueFrom:
secretKeyRef:
name: hermes-credentials
key: OPENROUTER_API_KEY
- name: TELEGRAM_BOT_TOKEN
valueFrom:
secretKeyRef:
name: hermes-credentials
key: TELEGRAM_BOT_TOKEN
- name: TELEGRAM_ALLOWED_USERS
value: "123456789"
volumeMounts:
- name: data
mountPath: /opt/data
volumes:
- name: data
persistentVolumeClaim:
claimName: hermes-dataThe Compose file’s comment describes an entrypoint starting with /init. The tagged Dockerfile names /opt/hermes/docker/entrypoint-dispatch.sh, so the example follows the Dockerfile and leaves Kubernetes command unset. Kubernetes passes args to that entrypoint, which runs the image’s bootstrap and routes them to hermes gateway run. See the image entrypoint and Kubernetes command and arguments.
Apply the file in the same namespace as the Secret.
kubectl apply -f hermes.yaml3. Verify the rollout and get a bot reply
kubectl rollout status deployment/hermes-agent
kubectl logs deployment/hermes-agentAfter the rollout, send the bot a regular chat prompt in a direct message from an allowed Telegram account and confirm a model-generated answer. When the image owns PID 1, its s6 supervisor can restart the gateway inside a running container, so the chat test still matters after a successful rollout. See the gateway supervision notes and the Telegram test instructions.
- If the Pod stays pending or the container cannot start, use
kubectl get podsandkubectl describe pod <pod-name>to check its events. Check the claim’s binding and mount events, image spelling, and the Secret name and keys. See the Kubernetes Pod debugging guide. - If logs show a permission error, check that
/opt/datais writable by the runtime user,hermes, normally UID10000. The image starts as root to initialise volume ownership before dropping privileges. If the volume’s ownership is fixed, check whether you can match it withHERMES_UIDandHERMES_GID. This startup path conflicts with the Restricted Pod Security Standard’srunAsNonRootrequirement. See the volume permission guidance and the Restricted policy. - If the Pod runs but the bot is silent, check the token, numeric ID, model access and outbound connectivity. If the logs show a Telegram polling conflict (
409), let Hermes finish its automatic retries. If the conflict persists, stop any other process polling with the same bot token, run the restart and rollout checks below, then repeat the chat test. See Telegram troubleshooting.
To rotate a credential, run kubectl edit secrets hermes-credentials in the same namespace and update its base64-encoded value under data. Editing hermes-secrets.env alone leaves the Kubernetes Secret unchanged. Run both commands below in the same namespace. Wait for the rollout to succeed before repeating the chat test. See how to edit a Secret, when containers pick up Secret changes and how to check a rollout.
kubectl rollout restart deployment/hermes-agent
kubectl rollout status deployment/hermes-agentKeep one replica per writable data volume
Hermes takes an exclusive gateway.lock for each home it serves and keeps session state in SQLite at /opt/data/state.db. Keep replicas: 1 on this Deployment. Use distinct volumes for separate Hermes instances, as the Docker guide does. See the gateway startup code, the lock implementation and the separate-volume example.
Recreate waits for old Pods to terminate before starting a new revision during an upgrade. Kubernetes documents an exception for manually deleted Pods. A replacement can be created while the old Pod is still terminating. ReadWriteOncePod restricts a supported CSI volume to one Pod across the cluster. If you use ReadWriteOnce, its restriction is one node. Several Pods on that node can still mount the volume, so keep the one-replica and rollout settings and check that the previous gateway has stopped before starting another. See Recreate deployments and volume access modes.
Use a volume that supports SQLite WAL for this example. On a fresh volume, the image creates /opt/data/config.yaml with database.journal_mode set to wal. See the image bootstrap and seeded configuration.
When the API or dashboard needs a port
Telegram defaults to outbound long polling, where Hermes fetches updates from Telegram. The example therefore needs no inbound Service. On a fresh volume in this example, the image generates an API key in /opt/data/.env and starts the separate OpenAI-compatible API on 127.0.0.1:8642. See the Telegram polling defaults and the container key bootstrap.
For trusted in-cluster API clients, first generate a strong API_SERVER_KEY with openssl rand -hex 32, put it in the Secret and pass it with another secretKeyRef. On an existing volume, use the temporary Pod procedure above to remove any saved assignments for API_SERVER_KEY, API_SERVER_HOST and API_SERVER_PORT from /opt/data/.env. If the saved API configuration sets enabled to false, change it to true in the existing gateway.api_server, gateway.platforms.api_server or platforms.api_server block. The Docker guide says to set API_SERVER_ENABLED=true and lists an eight-character minimum for the key when exposing the API beyond loopback. We follow the 0.23.5 runtime, which uses the key to enable the listener when YAML allows it. The key must have at least 16 characters and cannot be a placeholder, even on loopback. See the API configuration locations, listener configuration and key validation.
The API key grants access to Hermes tools, including terminal commands. In the Deployment, set API_SERVER_HOST to 127.0.0.1 and API_SERVER_PORT to 8642. In the same Pod, run an HTTPS proxy. Configure it to listen on the Pod IP and forward requests to 127.0.0.1:8642. Use a ClusterIP Service that selects app: hermes-agent and targets the proxy’s HTTPS port. Use a NetworkPolicy your cluster enforces to restrict which Pods can connect. Send the key as a Bearer token in the Authorization header over HTTPS. See the NetworkPolicy guide, Pod networking guide, Service reference, Hermes API security guidance and Bearer token transport guidance.
A probe to the Pod IP cannot reach Hermes directly on loopback. The API’s /health endpoint checks liveness. To inspect readiness, read the status and readiness.checks fields from the authenticated /health/detailed response. A degraded result can still return HTTP 200. See the Hermes health endpoints.
Set HERMES_DASHBOARD=1 to enable the separate supervised dashboard. It defaults to 0.0.0.0:9119 and requires an authentication provider to start on that address. On a trusted private network, configure the bundled password provider with HERMES_DASHBOARD_BASIC_AUTH_USERNAME and HERMES_DASHBOARD_BASIC_AUTH_PASSWORD. For access only from inside the Pod, set HERMES_DASHBOARD_HOST=127.0.0.1. If an outer init already owns PID 1, the dispatcher takes the direct bootstrap path and the supervised dashboard is unavailable. See the dashboard settings and the entrypoint dispatcher.
What other pages say
The Enterprise Helm chart you may see in the upstream repository is in a draft pull request targeting ent/core. Its proposed chart directory is absent from the 0.23.5 release tree. See the draft Enterprise chart.
Community charts have their own image and storage settings. Check the chart’s documentation for those details. One example is jyje/hermes-agent-helm.
The tagged plugin catalogue also has Helm and Kubernetes entries. They describe a Desktop customisation, a Discord and Telegram management plugin, and a cluster inspection plugin. Check the Helm entry, Hermes Helm entry and Kubernetes entry.
Hermes Agent on ReadyHermes
ReadyHermes runs your Hermes Agent on its own servers. It does not offer Kubernetes or Helm deployment, and we have not tested either on ReadyHermes. If you need the agent inside your own cluster, use the self-hosted setup above. Compare the two ways to run the agent in the self-hosting and managed hosting guide.
A hosted assistant stays on, and the 30-minute free trial includes AI.
Questions
Is there an official Hermes Helm chart?
We found no published Nous Research chart or Kubernetes deployment manifests for Hermes Agent 0.23.5 in the release, tagged source or public repository list. The upstream Enterprise chart is a draft pull request. Community charts are published in their own repositories.
How do you run Hermes Agent on Kubernetes?
Use the Docker Hub image nousresearch/hermes-agent:v0.23.5 in a one-replica Deployment. Pass gateway and run as container args, mount a writable PersistentVolumeClaim at /opt/data, and supply credentials from a Secret. Check the rollout, then send the bot a chat prompt from an allowed Telegram account and confirm a model-generated answer.
Can two Hermes Agent replicas share a volume?
Keep one gateway replica per writable data volume. Hermes locks each home and stores session state in SQLite. ReadWriteOncePod can restrict a compatible CSI volume to one Pod, while ReadWriteOnce can still allow multiple Pods on the same node.
Does Hermes Agent need a Kubernetes Service?
Telegram long polling needs no inbound Service. For trusted in-cluster API clients, use a ClusterIP Service that targets an HTTPS proxy in the Hermes Pod. Keep the Hermes API on loopback and authenticate with a strong API_SERVER_KEY.
Can you deploy ReadyHermes with Kubernetes or Helm?
ReadyHermes runs your Hermes Agent on its own servers. It does not offer Kubernetes or Helm deployment and has not tested either on ReadyHermes.