hermes-agent

by duyet

Helm chartv0.1.6App v2026.7.20

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 (port 8642) in one container — toggle each independently.
  • Secrets: chart-managed Secret or existingSecret for LLM provider keys, API key, dashboard credentials, bot tokens.
  • Monitoring: optional Prometheus ServiceMonitor.
  • Network isolation: optional NetworkPolicy with default-deny ingress and DNS+HTTPS-only egress.
  • Seamless upgrades: change image.tag and helm upgrade — Recreate strategy 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

VolumeDefault mountHoldsValue key
Core state/opt/dataconfig, sessions, memories, skills, logspersistence.data.*
Working dir/opt/workspacegit repos, data the agent operates onpersistence.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_PASSWORD secret), or OAuth/OIDC. dashboard.insecure disables the gate — never in production.
  • API auth: API_SERVER_KEY (≥8 chars) is required when apiServer.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:

FileUse case
minimal.yamlJust the gateway, no tools
suggested.yamlRecommended: web search, browser, persona, fallback
free-self-hosted.yamlSearXNG + local Chromium (no paid APIs)
free-self-hosted-firecrawl.yamlSelf-hosted Firecrawl for web tools
custom-provider.yamlCustom OpenAI-compatible provider (anyrouter, vLLM, ollama)
discord.yamlDiscord bot integration
discord-web.yamlDiscord + web search
discord-voice.yamlDiscord + voice (TTS/STT)
telegram.yamlTelegram bot integration
voice.yamlVoice-enabled Hermes
memory-tuned.yamlReduced resource footprint
mcp.yamlMCP servers (filesystem, database, GitHub, web search)
skills.yamlExternal skills + toolset selection
compression.yamlContext compression with cheaper auxiliary model
browser-tavily.yamlBrowser 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

NameEmailUrl
duyet[email protected]https://github.com/duyet

Source Code

Requirements

Kubernetes: >=1.23.0-0

Values

KeyTypeDefaultDescription
affinityobject{}Affinity rules.
apiServerobject{"corsOrigins":"","enabled":true,"host":"0.0.0.0","port":8642}--------------------------------------------------------------------------
apiServer.corsOriginsstring""Comma-separated CORS origins (e.g. "https://chat.example.com"). Empty disables cross-origin requests.
apiServer.enabledbooltrueEnable the OpenAI-compatible API server. When true an API key is required (see secrets.API_SERVER_KEY or apiServer.existingKeySecret).
apiServer.hoststring"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.portint8642Container port for the gateway/API server. Also serves /health.
argslist[]Override the container args. Defaults to ["gateway", "run"].
commandlist[]Override the container command. Defaults to the image entrypoint.
commonLabelsobject{}Extra labels applied to every rendered resource.
configobject{"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.contentstring""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.enabledbooltrueManage 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.overwriteboolfalseOverwrite config.yaml on every pod start. false = seed once, then leave the file alone so dashboard/runtime edits survive restarts.
config.valuesobject{"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.modestring"smart"Command-execution approval gating: smart, manual, or off.
config.values.custom_providerslist[]Register extra OpenAI-compatible providers, referenced by name from model.provider: custom or model strings like "/".
config.values.displayobject{}Persona and chat UX (personality, busy_input_mode, busy_ack_enabled).
config.values.fallback_providerslist[]Fallback providers, tried in order when the primary model fails.
config.values.modelobject{}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.providersobject{}Per-provider overrides for built-in providers (api_key, base_url, ...).
config.values.security.allow_private_urlsboolfalseAllow the agent to reach private/loopback IPs (SSRF protection is on by default).
config.values.terminal.backendstring"local"Code-execution isolation backend: local, docker, ssh, modal, or daytona. cwd is injected automatically.
config.values.webobject{}Web search & extraction tools. Backend: firecrawl
config.values.browserobject{}Browser automation (cloud providers or local Chromium via CDP). Requires shm.enabled for local Chromium.
config.values.code_executionobject{}Code-execution limits (mode: project
config.values.discordobject{}Discord guild behavior (require_mention, free_response_channels, auto_thread). Put DISCORD_BOT_TOKEN in secrets.data.
config.values.voiceobject{}Voice input/output feature toggle (enabled: true/false).
config.values.ttsobject{}Text-to-speech output (enabled: true/false, engine).
config.values.sttobject{}Speech-to-text input (enabled: true/false, engine).
config.values.file_read_max_charsint100000Maximum characters the agent will read from a single file.
config.values.compressionobject{}Context compression for long conversations (enabled, threshold, target_ratio, protect_last_n).
config.values.max_concurrent_sessionsintMaximum concurrent sessions (limit varies by backend).
config.values.mcp_serverslist[]Model Context Protocol servers for external tools (filesystem, database, web, etc.). Each server: name, command/args (stdio) or url/headers (SSE), env.
config.values.skillsobject{}External Python skill packages (external_dirs for mount paths, always_load list).
config.values.always_loadlist[]Skills to auto-load on startup (subset of skills.external_dirs).
config.values.toolsetslist[]Built-in tool categories to enable (code_execution, browser, web, terminal). Empty = all enabled.
config.values.auxiliaryobject{}Per-task model overrides (compression, vision, web_extract, approval, etc.). Each has provider, model, api_key, base_url.
dashboardobject{"auth":{"basicAuthUsername":"","oauthClientId":"","oidcClientId":"","oidcIssuer":""},"enabled":true,"host":"0.0.0.0","insecure":false,"port":9119}--------------------------------------------------------------------------
dashboard.auth.basicAuthUsernamestring""HTTP Basic auth username. Username is non-secret and lives here; the password/secret live in the Secret (see secrets.HERMES_DASHBOARD_*).
dashboard.auth.oauthClientIdstring""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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthermes-agent is pinned at v0.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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