hermes-agent
by duyet
Hermes Agent by NousResearch — a self-hosted autonomous AI agent with an OpenAI-compatible gateway, web dashboard, persistent memory, and sandboxed tool execution.
About this chart
hermes-agent
Hermes Agent by NousResearch — a self-hosted autonomous AI agent with an OpenAI-compatible gateway, web dashboard, persistent memory, and sandboxed tool execution.
Homepage: https://hermes-agent.nousresearch.com
Deploys Hermes Agent (NousResearch) — a self-hosted autonomous AI agent — using basic Kubernetes resources only (no CRDs, no operator). A single stateful pod runs the OpenAI-compatible gateway and the web dashboard, backed by two separate persistent volumes.
Features
- Two-volume persistence by design
data→/opt/data(HERMES_HOME): core agent state — config, sessions, memories, skills, logs.workspace→/opt/workspace: the agent's working directory (terminal.cwd) for git projects and data. Sized, backed up and recycled independently from core state.
- Dashboard (port
9119) and OpenAI-compatible API (port8642) in one container — toggle each independently. - Secrets: chart-managed Secret or
existingSecretfor LLM provider keys, API key, dashboard credentials, bot tokens. - Monitoring: optional Prometheus
ServiceMonitor. - Network isolation: optional
NetworkPolicywith default-deny ingress and DNS+HTTPS-only egress. - Seamless upgrades: change
image.tagandhelm upgrade—Recreatestrategy guarantees the old single-writer pod stops before the new one starts. - Safe defaults: non-root (UID 10000), dropped capabilities, seccomp
RuntimeDefault, config checksum auto-restart, fail-fast validation.
Quick start
# Add the repo
helm repo add duyet https://duyet.github.io/charts
# Minimal install (OpenRouter, no extras)
helm install hermes duyet/hermes-agent \
--set secrets.data.API_SERVER_KEY="$(openssl rand -hex 16)" \
--set secrets.data.OPENROUTER_API_KEY="sk-or-..." \
--set config.values.model.default=openrouter/auto \
--set config.values.model.provider=openrouter \
--set config.values.model.api_key='${OPENROUTER_API_KEY}'
# Or use a preset from the examples directory (see below)
Open the dashboard:
kubectl port-forward svc/hermes-hermes-agent 9119:9119
# visit http://127.0.0.1:9119
Persistence: core vs. working directory
| Volume | Default mount | Holds | Value key |
|---|---|---|---|
| Core state | /opt/data | config, sessions, memories, skills, logs | persistence.data.* |
| Working dir | /opt/workspace | git repos, data the agent operates on | persistence.workspace.* |
The chart injects terminal.cwd: /opt/workspace into config.yaml automatically
when the workspace volume is enabled, so the agent does its work on the second
disk while its identity/memory lives on the first. Set
persistence.*.existingClaim to reuse a pre-provisioned PVC, or
persistence.*.retain: true to keep volumes after helm uninstall.
Configuration (config.yaml)
config.enabled: true renders config.values into a ConfigMap and an init
container seeds it into the data volume on first boot. config.overwrite: false
(default) means runtime/dashboard edits survive restarts.
config.values mirrors the Hermes config.yaml schema one-to-one — the chart
builds the whole file from it, so you rarely need a raw string. Supported
top-level sections: model, custom_providers, providers,
fallback_providers, display, terminal, approvals, security. Empty
sections are pruned automatically, so set only what you use, and terminal.cwd
is injected to the workspace mountPath for you.
Secrets are referenced as ${ENV_VAR} placeholders inside config.values;
put the real value in secrets.data (or secrets.existingSecret). Hermes
expands the env var at runtime — secrets never land in the ConfigMap.
config:
values:
model:
default: anyrouter/agent
provider: custom
api_key: ${ANYROUTER_API_KEY} # value lives in secrets.data
base_url: ${ANYROUTER_API_BASE}
custom_providers:
- name: anyrouter
base_url: https://anyrouter.dev/api/v1
api_key: ${ANYROUTER_API_KEY}
model: google/gemma-4-26b-a4b-it
fallback_providers:
- provider: openrouter
model: openrouter/free
base_url: https://openrouter.ai/api/v1
api_mode: chat_completions
display:
personality: "You are a helpful assistant."
busy_input_mode: steer
busy_ack_enabled: true
secrets:
data:
ANYROUTER_API_KEY: "sk-..."
For full manual control, set config.content to a raw YAML string (it is used
verbatim and config.values is ignored; terminal.cwd is not auto-injected).
See the
Hermes configuration docs.
Security
- Dashboard auth: HTTP Basic (
dashboard.auth.basicAuthUsername+HERMES_DASHBOARD_BASIC_AUTH_PASSWORDsecret), or OAuth/OIDC.dashboard.insecuredisables the gate — never in production. - API auth:
API_SERVER_KEY(≥8 chars) is required whenapiServer.enabled. - Hermes blocks private/loopback IPs (SSRF protection). To let it reach
in-cluster services, set
config.values.security.allow_private_urls: true. - See the Hermes security docs.
Example presets
The chart includes example configurations for common use cases in the examples/ directory:
| File | Use case |
|---|---|
minimal.yaml | Just the gateway, no tools |
suggested.yaml | Recommended: web search, browser, persona, fallback |
free-self-hosted.yaml | SearXNG + local Chromium (no paid APIs) |
free-self-hosted-firecrawl.yaml | Self-hosted Firecrawl for web tools |
custom-provider.yaml | Custom OpenAI-compatible provider (anyrouter, vLLM, ollama) |
discord.yaml | Discord bot integration |
discord-web.yaml | Discord + web search |
discord-voice.yaml | Discord + voice (TTS/STT) |
telegram.yaml | Telegram bot integration |
voice.yaml | Voice-enabled Hermes |
memory-tuned.yaml | Reduced resource footprint |
mcp.yaml | MCP servers (filesystem, database, GitHub, web search) |
skills.yaml | External skills + toolset selection |
compression.yaml | Context compression with cheaper auxiliary model |
browser-tavily.yaml | Browser automation + Tavily web search |
Use them with:
helm upgrade --install hermes duyet/hermes-agent \
-n hermes-agent --create-namespace \
-f https://raw.githubusercontent.com/duyet/charts/main/hermes-agent/examples/suggested.yaml \
--set secrets.data.OPENROUTER_API_KEY="sk-or-..." \
--set secrets.data.FIRECRAWL_API_KEY="fc-..."
Upgrading
helm upgrade hermes duyet/hermes-agent --set image.tag=v2026.6.5 --reuse-values
State persists on the PVCs; only the pod is replaced.
Maintainers
| Name | Url | |
|---|---|---|
| duyet | [email protected] | https://github.com/duyet |
Source Code
Requirements
Kubernetes: >=1.23.0-0
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity rules. |
| apiServer | object | {"corsOrigins":"","enabled":true,"host":"0.0.0.0","port":8642} | -------------------------------------------------------------------------- |
| apiServer.corsOrigins | string | "" | Comma-separated CORS origins (e.g. "https://chat.example.com"). Empty disables cross-origin requests. |
| apiServer.enabled | bool | true | Enable the OpenAI-compatible API server. When true an API key is required (see secrets.API_SERVER_KEY or apiServer.existingKeySecret). |
| apiServer.host | string | "0.0.0.0" | Bind address inside the container. Must be 0.0.0.0 to be reachable via a Service; 127.0.0.1 would only serve localhost. |
| apiServer.port | int | 8642 | Container port for the gateway/API server. Also serves /health. |
| args | list | [] | Override the container args. Defaults to ["gateway", "run"]. |
| command | list | [] | Override the container command. Defaults to the image entrypoint. |
| commonLabels | object | {} | Extra labels applied to every rendered resource. |
| config | object | {"content":"","enabled":true,"overwrite":false,"values":{"approvals":{"mode":"smart"},"custom_providers":[],"display":{},"fallback_providers":[],"model":{},"providers":{},"security":{"allow_private_urls":false},"terminal":{"backend":"local"}}} | -------------------------------------------------------------------------- |
| config.content | string | "" | Raw config.yaml content. ESCAPE HATCH: if set (non-empty), this string is used verbatim and config.values is ignored. terminal.cwd is NOT auto-injected here — set it yourself. Prefer config.values above. |
| config.enabled | bool | true | Manage config.yaml via this chart. When false, the chart writes nothing and you manage /opt/data/config.yaml yourself (e.g. via the dashboard). |
| config.overwrite | bool | false | Overwrite config.yaml on every pod start. false = seed once, then leave the file alone so dashboard/runtime edits survive restarts. |
| config.values | object | {"approvals":{"mode":"smart"},"custom_providers":[],"display":{},"fallback_providers":[],"model":{},"providers":{},"security":{"allow_private_urls":false},"terminal":{"backend":"local"}} | Structured config rendered into config.yaml, mirroring the Hermes config.yaml schema one-to-one. Empty top-level sections (model, providers, custom_providers, fallback_providers, display) are pruned automatically. terminal.cwd is injected automatically to the workspace mountPath when persistence.workspace.enabled. Reference secrets as ${ENV_VAR} and put the value in secrets.data. See the Hermes docs: https://hermes-agent.nousresearch.com/docs/user-guide/configuration |
| config.values.approvals.mode | string | "smart" | Command-execution approval gating: smart, manual, or off. |
| config.values.custom_providers | list | [] | Register extra OpenAI-compatible providers, referenced by name from model.provider: custom or model strings like "/". |
| config.values.display | object | {} | Persona and chat UX (personality, busy_input_mode, busy_ack_enabled). |
| config.values.fallback_providers | list | [] | Fallback providers, tried in order when the primary model fails. |
| config.values.model | object | {} | Primary model: default (model string), provider (built-in id or "custom"), api_key, base_url. Empty by default so a bare install relies on provider env vars. |
| config.values.providers | object | {} | Per-provider overrides for built-in providers (api_key, base_url, ...). |
| config.values.security.allow_private_urls | bool | false | Allow the agent to reach private/loopback IPs (SSRF protection is on by default). |
| config.values.terminal.backend | string | "local" | Code-execution isolation backend: local, docker, ssh, modal, or daytona. cwd is injected automatically. |
| config.values.web | object | {} | Web search & extraction tools. Backend: firecrawl |
| config.values.browser | object | {} | Browser automation (cloud providers or local Chromium via CDP). Requires shm.enabled for local Chromium. |
| config.values.code_execution | object | {} | Code-execution limits (mode: project |
| config.values.discord | object | {} | Discord guild behavior (require_mention, free_response_channels, auto_thread). Put DISCORD_BOT_TOKEN in secrets.data. |
| config.values.voice | object | {} | Voice input/output feature toggle (enabled: true/false). |
| config.values.tts | object | {} | Text-to-speech output (enabled: true/false, engine). |
| config.values.stt | object | {} | Speech-to-text input (enabled: true/false, engine). |
| config.values.file_read_max_chars | int | 100000 | Maximum characters the agent will read from a single file. |
| config.values.compression | object | {} | Context compression for long conversations (enabled, threshold, target_ratio, protect_last_n). |
| config.values.max_concurrent_sessions | int | Maximum concurrent sessions (limit varies by backend). | |
| config.values.mcp_servers | list | [] | Model Context Protocol servers for external tools (filesystem, database, web, etc.). Each server: name, command/args (stdio) or url/headers (SSE), env. |
| config.values.skills | object | {} | External Python skill packages (external_dirs for mount paths, always_load list). |
| config.values.always_load | list | [] | Skills to auto-load on startup (subset of skills.external_dirs). |
| config.values.toolsets | list | [] | Built-in tool categories to enable (code_execution, browser, web, terminal). Empty = all enabled. |
| config.values.auxiliary | object | {} | Per-task model overrides (compression, vision, web_extract, approval, etc.). Each has provider, model, api_key, base_url. |
| dashboard | object | {"auth":{"basicAuthUsername":"","oauthClientId":"","oidcClientId":"","oidcIssuer":""},"enabled":true,"host":"0.0.0.0","insecure":false,"port":9119} | -------------------------------------------------------------------------- |
| dashboard.auth.basicAuthUsername | string | "" | HTTP Basic auth username. Username is non-secret and lives here; the password/secret live in the Secret (see secrets.HERMES_DASHBOARD_*). |
| dashboard.auth.oauthClientId | string | "" | Nous Portal OAuth client id (non-secret). |
| dashboard.aut |
Deploy hermes-agent with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hermes-agent on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthermes-agent is pinned at v0.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply