Skip to main content

Hermes Web Dashboard

The web dashboard is a browser-based UI for managing your Hermes Agent installation. Instead of editing YAML files or running CLI commands, you can configure settings, manage API keys, and monitor sessions from a clean web interface.

tip

Hosted-mode auth uses Nous Portal OAuth; if you also want the dashboard to talk to a real backend, hermes setup --portal wires up the model and tool gateway too. See Nous Portal.

Quick Start​

hermes dashboard

This starts a local web server and opens http://127.0.0.1:9119 in your browser. The dashboard runs entirely on your machine — no data leaves localhost.

Options​

FlagDefaultDescription
--port9119Port to run the web server on
--host127.0.0.1Bind address
--no-open—Don't auto-open the browser
--insecureoffDeprecated / no-op. Formerly bypassed auth on a non-loopback bind; it no longer disables authentication — a public bind always requires an auth provider (password or OAuth)
--isolatedoffWhen launched from a named profile (worker dashboard), run a dedicated per-profile server instead of routing to the machine dashboard. It lists only that profile; this is not a security boundary (see Managing multiple profiles)
# Custom port
hermes dashboard --port 8080

# Bind to all interfaces (use with caution on shared networks)
hermes dashboard --host 0.0.0.0

# Start without opening browser
hermes dashboard --no-open

Managing multiple profiles​

The dashboard is a machine-level management surface: one server manages every profile on the machine. A profile switcher in the sidebar (visible whenever more than one profile exists) decides which profile the management pages read and write — Config, API Keys, Skills, MCP, Models, and the Chat tab all follow it. While a profile other than the dashboard's own is selected, an amber banner names the managed profile so the write target is never ambiguous.

The selection lives in the URL (?profile=<name>), so deep links like http://127.0.0.1:9119/skills?profile=worker land with the switcher preselected and survive refresh.

Launching the dashboard from a profile alias routes to the machine dashboard instead of starting a second server:

worker dashboard
# → already running: opens the browser at ?profile=worker
# → not running: starts the machine dashboard with "worker" preselected

A dashboard started this way keeps worker as its fallback scope for the whole server lifetime: a deep link that omits ?profile= (for example a /chat?resume=<id> link) still opens under worker, so the embedded chat sees that profile's MCP servers, model and skills. An explicit ?profile= in the URL always wins.

Pass --isolated to opt out and run a dedicated server for that profile (the pre-unification behavior). Its profile list, /api/status profile names, unified session sidebar and the Desktop profile rail (and so its SOUL editor) show only the launch profile.

--isolated is not a security boundary

--isolated is a routing and operations convenience, not tenant isolation. Every profile under one OS user can read every other profile's files: on the dedicated server, routes that take a profile selector, /api/fs/* and the agent's own terminal and file tools can still reach sibling profiles (~/.hermes/profiles/*). Different auth per profile's server does not change that. To keep people's data apart (family members, customers, teams), run each tenant's Hermes as a separate OS user or in a separate container. See SECURITY.md §2.2.

The Chat tab follows the switcher too: a scoped chat spawns its PTY child with the selected profile's HERMES_HOME, so the conversation runs with that profile's model, skills, memory, and session history. Switching profiles starts a fresh terminal session.

Hub actions (skill install/update/uninstall, MCP install, toolset setup) run with the target profile's own secret scope — its .env and configured secret sources — not the dashboard process's environment; this includes actions targeting the default profile from the machine dashboard.

What stays per-profile and is not absorbed by the switcher: gateway processes (manage them via hermes -p <name> gateway …), each profile's session database, and cron schedulers (the Cron page already aggregates across profiles with its own filter).

Prerequisites​

FastAPI, Uvicorn, and the platform PTY helper are core Hermes dependencies. The web extra adds exact constraints for the HTTP stack. The pty extra is empty because its dependencies are already core. Standard PM setup includes web through all.

If these dependencies are damaged, run hermes pm repair and restart Hermes. For source setup, use the PM developer workflow. Messaging and voice extras are separate requests, not implied by all.

When you run hermes dashboard without the dependencies, it will tell you what to install. If the frontend hasn't been built yet, it builds automatically on first launch with the Node and pnpm Hermes provisions.

The Chat tab is part of every hermes dashboard launch — the embedded browser chat pane (running the TUI over PTY/WebSocket) is always available, with no extra flag required.

Pages​

Status​

The landing page shows a live overview of your installation:

  • Agent version and release date
  • Gateway status — running/stopped, PID, connected platforms and their state
  • Active sessions — count of sessions active in the last 5 minutes
  • Recent sessions — list of the 20 most recent sessions with model, message count, token usage, and a preview of the conversation

The status page auto-refreshes every 5 seconds.

Resource pressure banner​

When the host is running low on memory or disk, a banner appears at the top of the dashboard (fed by the same status poll — no extra requests):

  • "Your agent is almost out of memory and may restart" — system available memory has dropped to elevated (< 128 MiB or < 15%) or critical (< 64 MiB or < 5%) levels, as sampled by the gateway's 30-second heartbeat.
  • "Your agent restarted unexpectedly, most likely because it ran out of memory" — the lifecycle ledger recorded an unclean exit under memory pressure on the previous boot (a suspected OOM kill).
  • Disk warnings — the volume holding ~/.hermes is nearly full (elevated below 512 MB free, critical below 256 MB free).

Only the most severe active warning shows at a time (disk critical > memory critical > OOM restart > disk elevated > memory elevated). Dismissals are scoped to the current gateway boot: dismissing a warning surfaces the next active one, a gateway restart or an escalation (elevated → critical) re-opens it, and a stale heartbeat renders nothing rather than a spurious alert.

Chat​

The Chat tab embeds the full Hermes TUI (the same interface you get from hermes --tui) directly in the browser. Everything you can do in the terminal TUI — slash commands, model picker, tool-call cards, markdown streaming, clarify/sudo/approval prompts, skin theming — works identically here, because the dashboard is running the real TUI binary and rendering its ANSI output through xterm.js with its WebGL renderer for pixel-perfect cell layout.

How it works:

  • /api/pty opens a WebSocket authenticated with the dashboard's session token
  • The server spawns hermes --tui behind a POSIX pseudo-terminal
  • Keystrokes travel to the PTY; ANSI output streams back to the browser
  • xterm.js's WebGL renderer paints each cell to an integer-pixel grid; mouse tracking (SGR 1006), wide characters (Unicode 11), and box-drawing glyphs all render natively
  • Resizing the browser window resizes the TUI via the @xterm/addon-fit addon
  • A quiet PTY socket sends a small resize keepalive every 20 seconds, so reverse proxies with idle timeouts (nginx, Caddy) don't drop a chat that is merely waiting; proxies that cap a connection's total lifetime (some tunnels close a socket after ~30 seconds regardless of traffic) still close it, and the chat reattaches to the same session automatically; automatic reconnects pause while the browser tab is hidden or you are on another dashboard page, and resume when you come back

Resume an existing session: from the Sessions tab, click the play icon (▶) next to any session. That jumps to /chat?resume=<id> and launches the TUI with --resume, loading the full history.

Session switcher (right rail): the Chat tab carries its own ChatGPT-style conversation list in a thin right rail beside the terminal, so you can swap conversations without leaving the page. The rail stacks the model picker on top and the session list directly below it; the terminal takes up most of the screen. The list shows your most recent sessions for the active profile — title (falling back to a message preview), relative last-active time, message count, and the source channel for non-CLI sessions. Click any row to resume it in place (the terminal respawns with that conversation's history); the active session is highlighted. New chat starts a fresh session, and a refresh control re-pulls the list. The rail is read-only for switching — delete, rename, export, and bulk cleanup still live on the Sessions tab. On narrow screens it folds into a slide-over panel.

Workspace picker: a fresh chat starts wherever the dashboard process was launched — useless when you are driving Hermes from a phone and want it in ~/code/foo. The rail's workspace selector lists the same directories the Desktop sidebar knows: your explicit projects (hermes projects) and every discovered git repository (session-derived plus the desktop.repo_scan_roots scan), most recently active first, with an Other path… entry for anything else. The choice is remembered per profile and applies to the next New chat (a resumed session keeps its own working directory); the rescan button re-walks the discovery roots on the host, so a repo you just cloned over SSH shows up without a restart. A path that no longer exists is refused with an error instead of silently starting in the launch directory. Backed by GET /api/chat/workspaces and the cwd parameter of the /api/pty WebSocket.

Prerequisites:

  • Node.js (same requirement as hermes --tui; the TUI bundle is built on first launch)
  • ptyprocess — a core dependency on POSIX
  • POSIX kernel (Linux, macOS, or WSL2). The /chat terminal pane specifically needs a POSIX PTY — native Windows Python has no equivalent, so on a native Windows install the rest of the dashboard (sessions, jobs, metrics, config editor) works but the /chat tab will show a banner telling you to use WSL2 for that feature.

Close the browser tab and the PTY is reaped cleanly on the server. Re-opening spawns a fresh session.

To point Hermes Desktop at a dashboard running on another machine instead of its own bundled backend, see the remote-backend section below.

Connecting Hermes Desktop to a remote backend​

Hermes Desktop normally launches its own local backend, but it can also attach to a dashboard running on a remote machine (a VM, a homelab box, etc.) via Settings → Gateways → Remote gateway. This is the most common source of "Desktop says the backend is ready but chat never works" reports, because Desktop's readiness check verifies less than the live chat connection actually needs.

Prerequisite: a hermes dashboard must be running on the remote host

The "remote backend" Desktop connects to is a hermes dashboard process running on the remote machine — the same server this page documents. It has to be up and reachable before any of the steps below matter; Desktop attaches to it, it doesn't start it for you. Keep it running under systemd/tmux/etc. so it survives logout and reboots. The gateway (Telegram/Discord/Slack/etc.) is a separate long-running process — start it independently if you rely on messaging channels; it is not the thing the desktop app connects to.

Desktop's "remote backend is ready" probe only hits GET /api/status, which is a public endpoint — it answers as soon as any dashboard is running on the host. The live chat connection is a separate WebSocket to /api/ws (and /api/pty), and that socket is gated by two more checks the status probe never touches:

  1. You must be authenticated. When the dashboard is bound to a non-loopback address it engages its auth gate. Protect it with a username and password (the bundled username/password provider); Desktop signs in once and reuses the resulting session for the WebSocket via a single-use ticket. Without a configured provider, a non-loopback dashboard fails closed at startup.
  2. The bind host must allow the client and match the Host header. A loopback bind (127.0.0.1) only accepts loopback clients, so a remote machine is rejected at the socket layer regardless of credentials. Bind to a non-loopback address (--host 0.0.0.0) so the peer-IP guard lets the remote client through. The remote URL you enter in Desktop must reach the dashboard by the same host it bound to — the DNS-rebinding guard requires the Host header to match.

Remote dashboard setup​

Set a username and password, then run the dashboard bound to a reachable address. For a systemd service:

[Service]
EnvironmentFile=%h/.hermes/.env
ExecStart=/path/to/venv/bin/python -m hermes_cli.main dashboard \
--host 0.0.0.0 --port 9119 --no-open
Restart=always
RestartSec=10
# Exit 78 (EX_CONFIG) is a deliberate refusal ("this host is already served by PID … on
# another port"); parking on it beats an infinite restart loop with nothing listening.
RestartPreventExitStatus=78

One backend serves a whole host, so when hermes dashboard finds a live backend it cannot serve your typed --host/--port with, it refuses with exit 78 and names the owner. Stop that backend, or give the service its own dedicated server with --isolated. The Desktop app's own loopback backends never claim host ownership, so the two can coexist without either flag.

with ~/.hermes/.env containing:

HERMES_DASHBOARD_BASIC_AUTH_USERNAME=admin
HERMES_DASHBOARD_BASIC_AUTH_PASSWORD=choose-a-strong-password
HERMES_DASHBOARD_BASIC_AUTH_SECRET=<32+ random bytes; openssl rand -base64 32>

Then in Desktop enter the Remote URL (e.g. http://VM_IP:9119) and Sign in with that username and password. See the username/password provider section for the full configuration surface.

Verify the gate is on before retrying Desktop

From any machine, check that the dashboard advertises the username/password provider:

curl -s http://VM_IP:9119/api/status | jq '.auth_required, .auth_providers'
# true
# ["basic"]
  • auth_required: true and "basic" in the providers list → Desktop's Sign in flow will work.
  • auth_required: false → the bind is loopback, or the gate didn't engage. Bind to a non-loopback address.
  • auth_required: true but no "basic" provider → the username/password env vars aren't loaded. Fix those first.

If /api/status shows the gate is on with the "basic" provider and Desktop still fails to connect after signing in, the issue is past basic setup — grab a fresh desktop.log (Settings → Gateways → Open logs) plus the dashboard's logs from the same retry window and look for the /api/ws close code (4403 = chat WS rejected by the request guard, e.g. Host/peer mismatch; 4401 = the WS ticket didn't authenticate).

Config​

A form-based editor for config.yaml. All 150+ configuration fields are auto-discovered from DEFAULT_CONFIG and organized into tabbed categories:

Config admin page — section filters on the left, auto-discovered fields on the right

  • model — default model, provider, base URL, reasoning settings
  • terminal — backend (local/docker/ssh/modal), timeout, shell preferences
  • display — skin, tool progress, resume display, spinner settings
  • agent — max iterations, gateway timeout, service tier
  • delegation — subagent limits, reasoning effort
  • memory — provider selection, context injection settings
  • approvals — dangerous command approval mode (smart/manual/off)
  • And more — every section of config.yaml has corresponding form fields

Fields with known valid values (terminal backend, skin, approval mode, etc.) render as dropdowns. Booleans render as toggles. Everything else is a text input.

Actions:

  • Save — writes changes to config.yaml immediately
  • Reset to defaults — reverts all fields to their default values (doesn't save until you click Save)
  • Export — downloads the current config as JSON
  • Import — uploads a JSON config file to replace the current values
tip

Config changes take effect on the next agent session or gateway restart. The web dashboard edits the same config.yaml file that hermes config set and the gateway read from.

API Keys​

Manage the .env file where API keys and credentials are stored. Keys are grouped by category:

  • LLM Providers — OpenRouter, Anthropic, OpenAI, DeepSeek, etc.
  • Tool API Keys — Browserbase, Firecrawl, Tavily, Keenable, ElevenLabs, etc.
  • Messaging Platforms — Telegram, Discord, Slack bot tokens, etc.
  • Agent Settings — non-secret env vars like API_SERVER_ENABLED

Each key shows:

  • Whether it's currently set (with a redacted preview of the value)
  • A description of what it's for
  • A link to the provider's signup/key page
  • An input field to set or update the value
  • A delete button to remove it

Advanced/rarely-used keys are hidden by default behind a toggle.

Sessions​

Browse and inspect all agent sessions. Each row shows the session title, source platform icon (CLI, Telegram, Discord, Slack, cron), model name, message count, tool call count, and how long ago it was active. Live sessions are marked with a pulsing badge.

  • Filter — Chats / Automation / All tabs scope the list: Chats (the default) shows human conversations and hides automation noise (cron, tool, API, ACP sessions); Automation shows only those; All shows everything. An exact-source dropdown narrows further to a single channel (e.g. only Telegram). Search respects the active filter.
  • Search — full-text search across all message content using FTS5. Results show highlighted snippets and auto-scroll to the first matching message when expanded.
  • Stats — a summary bar shows total sessions, how many are active in the store, archived count, total messages, and a per-source breakdown.
  • Expand — click a session to load its full message history. Messages are color-coded by role (user, assistant, system, tool) and rendered as Markdown with syntax highlighting.
  • Tool calls — assistant messages with tool calls show collapsible blocks with the function name and JSON arguments.
  • Rename — set or clear a session's title inline (pencil icon).
  • Export — download a session (metadata + full message history) as JSON (download icon).
  • Prune — the header "Prune old sessions" button deletes ended sessions older than N days.
  • Delete — remove a session and its message history with the trash icon.

Sessions admin page — stats bar, prune, and per-row rename / export / delete

Logs​

View agent, gateway, and error log files with filtering and live tailing.

  • File — switch between agent, errors, and gateway log files
  • Level — filter by log level: ALL, DEBUG, INFO, WARNING, or ERROR
  • Component — filter by source component: all, gateway, agent, tools, cli, or cron
  • Lines — choose how many lines to display (50, 100, 200, or 500)
  • Auto-refresh — toggle live tailing that polls for new log lines every 5 seconds
  • Color-coded — log lines are colored by severity (red for errors, yellow for warnings, dim for debug)

Analytics​

Usage and cost analytics computed from session history. Select a time period (7, 30, or 90 days) to see:

  • Summary cards — total tokens (input/output), cache hit percentage, total estimated or actual cost, and total session count with daily average
  • Daily token chart — stacked bar chart showing input and output token usage per day, with hover tooltips showing breakdowns and cost
  • Daily breakdown table — date, session count, input tokens, output tokens, cache hit rate, and cost for each day
  • Per-model breakdown — table showing each model used, its session count, token usage, and estimated cost

Cron​

Create and manage scheduled cron jobs that run agent prompts on a recurring schedule.

  • Create — fill in a name (optional), prompt, cron expression (e.g. 0 9 * * *), and delivery target (local, Telegram, Discord, Slack, or email)
  • Job list — each job shows its name, prompt preview, schedule expression, state badge (enabled/paused/error), delivery target, last run time, and next run time
  • Pause / Resume — toggle a job between active and paused states
  • Edit — open a pre-filled modal to change a job's prompt, schedule, name, or delivery target
  • Trigger now — immediately execute a job outside its normal schedule
  • Delete — permanently remove a cron job

Profiles​

Create and manage profiles — isolated Hermes instances with their own config, skills, and sessions.

  • Profile cards — each shows its model/provider, skill count, gateway state, description, and badges (active, default, alias)
  • Create — name + optional clone-from-default / clone-everything / no-bundled-skills, description, and model; the dedicated Profile Builder page (/profiles/new) offers the full flow (model, MCPs, skills)
  • Manage skills & tools — jumps to the Skills page scoped to that profile (sets the sidebar profile switcher)
  • Set as active — flips the sticky default that future CLI/gateway runs pick up (same as hermes profile use). This does not change what the dashboard manages — that's the profile switcher's job
  • Edit model / description / SOUL — inline editors writing into that profile
  • Rename / Delete — named profiles only

Skills​

Browse, search, and toggle installed skills and toolsets, and install new ones from the hub. Skills are loaded from ~/.hermes/skills/ and grouped by category.

  • Search — filter installed skills and toolsets by name, description, or category
  • Category filter — click category pills to narrow the list (e.g. MLOps, MCP, Red Teaming, AI)
  • Toggle — enable or disable individual skills with a switch. Changes take effect on the next session.
  • Toolsets — a separate view shows built-in toolsets (file operations, web browsing, etc.) with their active/inactive status, setup requirements, and list of included tools
  • Browse hub — a third view searches the skill hub across all sources (the same as hermes skills search), installs any result by identifier with a live install log, and offers an "Update all" button to refresh installed skills.

Skills admin page — the Browse hub view: search, install, and update

MCP​

Manage MCP servers without the CLI. The same mcp_servers block in config.yaml that hermes mcp reads from.

Your MCP servers:

  • Add — register an HTTP/SSE server (URL) or a stdio server (command + args), with optional KEY=VALUE environment variables for stdio servers
  • Enable / disable — toggle a server on or off without deleting it. A disabled server stays in config so you can re-enable it later. Takes effect on the next gateway restart.
  • Test — connect to a server, list its tools, and disconnect — verifies the connection before the agent depends on it
  • Remove — delete a server from the config
  • Secret-shaped env values are redacted in the list view

Catalog: browse the Nous-approved MCP servers (the bundled optional-mcps/ catalog) and install any of them with one click. Entries that need API keys prompt for them inline; the values go to .env. This is the same catalog hermes mcp catalog / hermes mcp install use.

MCP admin page — your servers with enable/disable toggles, plus the install catalog

Webhooks​

Manage dynamic webhook subscriptions. The webhook platform must be enabled in messaging settings first; the page shows a hint when it isn't.

  • Create — name, description, event filter, delivery target, optional direct-delivery mode, and an agent prompt. On creation the page surfaces the route URL and the one-time HMAC secret to copy.
  • Enable / disable — toggle a subscription on or off. Disabled routes stay in the subscriptions file but the gateway rejects their incoming events (403). The gateway hot-reloads the file, so the change takes effect on the next event — no restart needed.
  • List — each subscription shows its URL, events, and delivery target
  • Delete — remove a subscription

Webhooks admin page — subscriptions with enable/disable toggles

Pairing​

Approve and revoke messaging users without the CLI — how a remote admin onboards Telegram/Discord/etc. users to a paired gateway. Full parity with hermes pairing.

  • Pending requests — each shows platform, code, user, and age, with an Approve button
  • Approved users — each shows platform and user, with a Revoke button
  • Clear pending — drop all outstanding pairing codes

Pairing admin page

Channels​

Connect Hermes to any messaging platform from the browser — full parity with hermes setup gateway. The page lists every supported channel (Telegram, Discord, Slack, Matrix, Mattermost, WhatsApp, Signal, BlueBubbles/iMessage, Email, SMS/Twilio, DingTalk, Feishu/Lark, WeCom, WeChat, QQ Bot, plus the API server and webhook endpoints) with its live connection status; platforms from installed plugins (Yuanbao, Home Assistant, ...) appear too.

  • Configure — open a per-platform form with exactly the fields that channel needs (bot token, app token, server URL, allowlist, etc.). Secrets render as password inputs and are stored redacted; leaving a field blank keeps the existing value. Required fields are marked and validated. A "Setup guide" link points to the platform's credential docs.
  • Enable / disable — toggle a channel on or off. The credential stays on disk; only the active state changes.
  • Test — check whether the channel is configured, enabled, and reporting a live connection from the gateway.
  • Restart gateway — credentials are written to ~/.hermes/.env and the enabled flag to config.yaml; the gateway connects each enabled channel on its next restart, which you can trigger right from the page. On a system-scope install (hermes gateway install --system) the dashboard runs the restart under sudo -n, so the dashboard user needs passwordless sudo; without it the request fails immediately instead of reporting a restart that the CLI then refuses.

Channels admin page — every messaging platform with status, enable toggles, and per-platform setup forms

System​

A consolidated administration panel for installation-wide operations:

  • Host — live system stats: OS / kernel, architecture, hostname, Python and Hermes versions, CPU core count + utilization, memory, disk usage of the Hermes home, uptime, and load average. (CPU/memory/disk come from psutil when installed; identity fields are always shown.) The Hermes version shows an update-status badge (up to date / N commits behind) and a Check for updates button. When an update is available on a git install, an Update now button opens a confirmation dialog — showing how many commits you'll pull — before running hermes update in the background. On Docker/Nix installs the dashboard can't apply the update in place, so it shows the correct out-of-band command instead.
  • Nous Portal — login status, the active inference provider, and the Tool Gateway routing table (which tools run via the Portal vs. locally), with a link to manage your subscription. Read-only mirror of hermes portal.
  • Skill curator — the background skill-maintenance status (active / paused, interval, last run) with pause/resume and a run-now button. Mirrors hermes curator.
  • Gateway — start, stop, and restart the messaging gateway, with live status (running/stopped, PID, state)
  • Memory — pick the external memory provider (or built-in only), and reset the built-in MEMORY.md / USER.md stores
  • Credential pool — add and remove the rotating API keys the agent round-robins through (per provider). Keys are redacted in the list; the raw value only ever reaches the agent.
  • Operations — run doctor, a security audit, create a backup, restore from a backup archive, update skills, show the system-prompt size breakdown, generate a support dump, or migrate config for retired settings. Each spawns a background action whose live log streams into the page.
  • Checkpoints — see the /rollback shadow store size and prune it
  • Shell hooks — list configured hooks with their consent + executable status, create a hook (event, command, matcher, timeout, with an opt-in consent grant), and remove one. Hooks run arbitrary commands, so the create form carries a security warning and the hook only fires after consent is granted.
  • Move to a single Hermes — shown only when an older Hermes server (hermes dashboard or hermes serve) still serves the selected profile's home, or when the last move needs reporting. See Moving a dashboard backend to the gateway.

System admin page — host stats and Nous Portal status

System admin page — skill curator, gateway, memory, and credential pool

System admin page — operations, checkpoints, and shell hooks

Creating a shell hook (note the consent checkbox and the run-arbitrary-commands warning):

New shell hook modal

Security

The web dashboard reads and writes your .env file, which contains API keys and secrets. It binds to 127.0.0.1 by default — only accessible from your local machine, with no login required. Binding to any non-loopback address (including 0.0.0.0) engages the auth gate: the server refuses to start until an auth provider (username/password or OAuth) is configured.

Reporting dashboard background services​

Hermes never installs a service for hermes dashboard or hermes serve, so any that run in the background were set up by hand: a systemd unit copied from this page, a launchd plist, the Nix hermes-backend unit, the Docker image's dashboard slot or Compose sidecar, or a Desktop SSH backend. To list them and their current ownership:

hermes gateway migrate --backends --dry-run # human-readable report
hermes gateway migrate --backends --dry-run --json # the same report as JSON

For each backend the report shows its supervisor (systemd unit name, scope and unit file; launchd label and plist; Nix-managed; s6 slot; container; Desktop; detached process; or unknown), the HERMES_HOME it serves, and its ownership. The report itself changes nothing; when one of them serves this home, the report ends with the command that shows the plan for moving it (see Planning a move to the gateway). The report never stops, restarts or kills anything, never edits or writes a service file, unit, plist or ledger, and opens no network connection; it exits 0 even when a scan fails. Normal Hermes startup still runs first, as for any hermes command: it creates the HERMES_HOME layout and a default SOUL.md if missing, records the install under HERMES_HOME/installs/, opens logs/agent.log and logs/errors.log, and prunes cache/scratch. Running backends are found by what they run, whatever the unit is called; units that are enabled but not running are listed only when they are named hermes-serve*, hermes-dashboard* or hermes-backend*. On macOS a backend started through the install's hermes launcher is found too, and its runs: line shows the launcher's inline source as '<inline launcher source>'.

Planning a move to the gateway (dry run)​

hermes gateway migrate --backends --apply --dry-run # the plan and every blocker
hermes gateway migrate --backends --apply --dry-run --json # the same plan as JSON

The dry run prints what moving this home's old hermes dashboard / hermes serve backend onto the gateway's Webapp would do. The command itself changes nothing: no file, unit, plist, config, .env or process. It reads GET /api/health and, when sign-in is required, GET /api/auth/providers for interactive sign-in choices. A failed provider-list read leaves those choices unknown. A backend from Hermes before v2026.7.30 has no /api/health: the dry run then stops and says to restart that backend with the updated hermes, then run the dry run again. Without --dry-run, --apply makes the move (see Moving a dashboard backend to the gateway).

The plan names the old backend (its supervisor, pid and address) and the address the Webapp would take: the same bind and port (loopback stays loopback, a wildcard stays a wildcard, one IP address stays that address). It says whether sign-in is required, which HERMES_DASHBOARD_* settings would be copied into .env (names only; values are never printed; one .env already sets is not copied, and a .env line that sets a sign-in setting as a ${VAR} template reading a VAR from outside the .env blocks the move when the gateway's service would not start with the value VAR has for the old backend (a gateway service not installed yet is judged as hermes gateway install would write it: the user manager's environment plus the unit's Environment= lines, or the LaunchAgent's variables), or when the old unit's env launcher sets VAR: put the literal value in .env, or set VAR where the gateway runs), the public URL it would copy into webapp.public_url (only one the gateway accepts; a refused one is a blocker and is not printed — and when an external secret source is enabled under secrets:, the planner never reads vault values to guess whether it sets HERMES_DASHBOARD_PUBLIC_URL, so it blocks until webapp.public_url is set; "public" here just means the browser-facing http:// or https:// address used for sign-in callbacks and Host/Origin checks, so a LAN hostname/IP or a loopback URL such as http://127.0.0.1:9119 works for local or Desktop-only setups without exposing anything to the internet), the state of the gateway service and the Webapp bundle, how many turns are running on the old backend, and the steps in order. To find this out it probes the old backend on its address as above and reads systemctl show / launchctl and /proc; normal Hermes startup runs first, as for the report. Options: --address HOST:PORT (plan for one backend when several serve this home), --keep-webapp-address (keep an already enabled Webapp where it is), --force-interrupt (plan the move although a turn is running or a gateway runs outside its service), --json.

Exit codes: 0 the move could run, or no old backend serves this home; 2 invalid invocation; 3 blocked (the blockers are listed, for example a running turn, an address that matches no backend, a bind the gateway would refuse, a public URL it would refuse, or the Webapp already enabled on another address); 6 this kind of backend cannot be migrated automatically (Nix, s6 or another container, a systemd system unit, Windows, or a host where the gateway cannot be a service). Exit 6 prints the steps to do it by hand, one per line, each hermes command naming this home (hermes -p PROFILE ...; for the default home hermes -p default ..., so a profile chosen with hermes profile use does not redirect it; under a Hermes root other than the standard one they also set it, e.g. HERMES_HOME=/srv/team-hermes hermes -p work ..., or $env:HERMES_HOME='C:\Teams\hermes'; hermes -p work ... in PowerShell). They stop the old backend first, then install, start or restart the gateway by the line hermes gateway status prints (the steps quote it), and end with hermes webapp --status. A gateway that has just started takes a few seconds to serve the address; until then that prints "The gateway is not running", so wait a few seconds and run it again. A by-hand move passes the same checks as an automatic one: an address the gateway would refuse, a Webapp already enabled elsewhere, or a webapp: block the gateway would still refuse after the move blocks it (exit 3) with no steps printed. A named profile whose gateway is another home's (the live host gateway serves it) is not planned: the dry run names that gateway and stops. When it cannot tell which gateway serves the profile (no service of its own and no running gateway serving it), it blocks and asks you to identify it. For a system unit only one line, sudo systemctl disable --now UNIT, needs root, and the next one shows the unit is no longer active. For Nix and containers the steps say what to change in the Nix configuration or the container definition instead (Nix refuses hermes config set on a managed install; the image ships the Webapp built). Where the gateway cannot be a service, the last step is hermes gateway run, for the supervisor you use. A stopped system unit counts for this home only when it runs as you (User=) and pins no other HERMES_HOME, judged by the environment systemd gives it (Environment=, then each EnvironmentFile= in order, the later value winning); when a file it needs cannot be read, the dry run is blocked instead of guessing. An env launcher in its ExecStart (/usr/bin/env HERMES_HOME=/srv/other hermes dashboard) runs after that environment, and systemctl show joins its arguments with spaces, so the planner does not read values on that line: one that sets or unsets a home variable (HERMES_HOME, HOME), uses an option that changes the environment as a whole (-i, -S) or one it does not know, or has a $ anywhere but inside another variable's value (-u ${DROP}), blocks the dry run for that unit. Put HERMES_HOME in the unit's Environment= instead, or stop and disable that unit by hand. A line that sets or unsets only other variables leaves the home to the unit's environment. A .env sign-in template that reads a variable from outside the .env blocks the move when that line sets that variable, or has a -u, -C or -S option at all, because the joined line does not show what those leave set: put the literal value in .env. A backend whose command line cannot be read shows no address, and no step that needs one. On Windows the report names the Task Scheduler task that starts the old backend, or the Startup-folder entry whose target and arguments are exactly the backend's command (when more than one matches, or a matching entry may not be what started it, the steps say so and ask you to pick). The steps end and disable that task (schtasks /End, schtasks /Change ... /DISABLE) or set the entry aside before the gateway is installed; they run as typed in PowerShell or Command Prompt. On macOS a LaunchAgent is planned like a systemd user unit.

Moving a dashboard backend to the gateway​

hermes gateway migrate --backends --apply --dry-run # the plan and every blocker; changes nothing
hermes gateway migrate --backends --apply [--yes] # migrate (asks on a terminal without --yes)
hermes gateway migrate --backends --restore [--yes] # undo a finished migration
hermes gateway migrate --backends --status [--json] # state of the last or ongoing run

--apply serves the old backend's address from the gateway's Webapp instead: same bind (loopback stays loopback, a wildcard stays a wildcard, one IP address stays that address, plus the loopback socket the gateway adds beside it for this machine's own clients) and same port. Before changing anything it records the current state in backend_migration.json in the home, with mode-600 backups of config.yaml and .env. Then it builds the Webapp bundle if it is missing, copies HERMES_DASHBOARD_* sign-in settings that exist only in the old unit's environment into .env (names are printed, values never), installs the gateway as a user service (hermes gateway install, which also tries to enable lingering; a launchd agent on macOS), stops and disables the old unit (its file is kept; a drop-in UNIT.d/hermes-migrated.conf with RestartPreventExitStatus=78 makes a later manual start exit once and stay down), starts the gateway and checks every address it now listens on within 300 seconds: /api/status answers from the gateway and the Webapp page itself is served. A backend you started by hand is stopped by its recorded process ID (only while that ID is still the same process); there is nothing to disable. Any failure puts back what the run had changed, and only that: the files, the gateway service exactly as it was, and the old unit with the same enablement it had (enabled, enabled-runtime, static or disabled). The old backend is started again only once the gateway no longer listens on its address; otherwise the run stops with manual steps (exit 5) rather than run two backends side by side. A run that was interrupted (killed, or the machine went down) is rolled back by the next --apply or --restore before anything else; it never continues forward. --restore also removes the drop-in.

Nothing is changed (exit 3) while another old backend for this home is running, enabled or (on macOS) loaded (also when --address picks one of them), when the old unit's enablement could not be put back exactly (for example a linked unit), when a hand-started backend's start time cannot be read, when config.yaml or .env is a symbolic link (replace it with a copy first), when backend_migration/ or backend_migration.json is a symbolic link (also for --restore and the rollback of an unfinished run: the backups would land outside the home; put a real folder or file in its place), when the gateway's unit or LaunchAgent of the same name belongs to another Hermes home, when a legacy hermes.service cannot be replaced (a system-wide one, or one that serves another home or whose home cannot be read: remove it from the home it serves first), when a config backend other than the file one is selected (HERMES_CONFIG_BACKEND, for example remote: the backups and the undo cover config.yaml only; --apply --detach checks it before it starts the background run), when the old backend requires sign-in but its /api/auth/providers list cannot be read (the check after the move compares it), when an administrator's managed config (HERMES_MANAGED_DIR or /etc/hermes) sets a webapp.* key that would keep the gateway's Webapp off or elsewhere after the move (the gateway applies it last), when a hand-started backend was launched by a relative path, a relative Python script or python -m and its working directory cannot be read (the installed launcher's python -c bootstrap is not a script), when a hand-started backend's working directory no longer exists or cannot be entered (it is started again there), when the old unit's hermes-migrated.conf drop-in (or, on macOS, the plist's .disabled name) already exists, when the command runs inside the gateway's own service (also for the rollback of an unfinished run), or when backend_migration.json exists but cannot be read or holds a state the engine does not know (move it aside after checking the home by hand; the backups are in backend_migration/). While a migration is done, --apply reports nothing to migrate and never replaces its backups; --restore undoes it. --restore refuses (exit 3, the gateway keeps serving) when config.yaml or .env changed after the migration wrote it or a backup cannot be read, since putting the backups back would lose those edits; it checks again after you confirm, and prints the steps to restore by hand. The apply writes config.yaml and .env only over the exact bytes it backed up: a file edited in between (the Webapp build can run then) stops the move with the edit kept (exit 3 when nothing was written yet, otherwise the .env it wrote is put back, exit 4). A rollback, --restore or the rollback of an interrupted run writes a file back only if it still holds the exact bytes the migration wrote, checked right before the write: one edited since (or whose backup is gone) is left as it is with your edits, the old backend stays down and the run ends with manual steps (exit 5). The manual steps (also in --status) are per file: a file that was put back is listed as done, a file kept for its edits is never copied over or removed (the step names its backup and says to merge the lines you need by hand before starting the old backend), and a missing backup is never copied. When the rollback cannot prove the gateway is off the old address, the old backend stays down and the run ends with manual steps (exit 5). A run that ends incomplete before it reached the old backend's stop says the old backend was not stopped, and its steps do not enable, start or bootstrap the old backend. A --detach run never starts a backend you started by hand again (its transient unit would stop it when the run ends): --restore --detach refuses before it starts a background run (exit 3, under systemd), and a background rollback leaves it down (exit 5) and prints the --restore command to run from a terminal, which starts it again as it ran. On macOS the old backend's LaunchAgent is booted out, disabled (launchctl disable gui/UID/LABEL) and its plist renamed to .disabled, so neither the next login nor a later launchctl bootstrap starts it; --restore and a rollback undo all three. After a migration, hermes update leaves the stopped old backend stopped, and a second --apply says there is nothing to migrate.

The plan's "The move also" list (JSON takes_over) names what the move stops or replaces besides the old backend:

  • A legacy hermes.service (a user unit from a pre-rename install that serves this home) is replaced by the gateway service. Its own Environment= and EnvironmentFile= lines are kept in a mode-600 hermes-gateway.service.d/hermes-legacy-environment.conf drop-in (without the ones the gateway unit sets itself: HOME, PATH, HERMES_HOME, ...), and a private copy of its unit file is kept in backend_migration/. Bot tokens and pairings live in the home, so no messaging platform signs in again. A rollback or --restore removes the drop-in and puts the unit back, enabled and running as it was.
  • A gateway of this home running outside its service (one a dashboard chat window started, which ends itself when idle, or one started by hand) is stopped right after the old backend, and the gateway service takes over its chats and bots. Like a running turn, this needs consent: without --force-interrupt it blocks (exit 3), and one that starts after the check holds the old backend's stop (exit 4, nothing stopped).

The dashboard's Move button is not held by what consent clears (running turns, unreadable turn activity, a gateway outside its service): its confirmation lists what is stopped, and confirming sends the move with --force-interrupt. Every other blocker still holds the button.

Options: --address HOST:PORT (pick one backend when several serve this home), --keep-webapp-address (retire the old backend but keep an already enabled Webapp where it is), --force-interrupt (proceed although a turn is running on the old backend, its turn activity cannot be read, or a gateway of this home runs outside its service, which is then stopped; without it each blocks with exit 3, and a forced move past unreadable activity says so before it starts; a turn that starts, or activity that becomes unreadable, after that check and before the old backend is stopped rolls the move back with exit 4, the old backend never stopped; so does an old backend whose process changed since the check, for example a unit restarted or started meanwhile: run the command again), --detach (with --apply or --restore: run in the background, outside the caller's systemd unit; a background run that refuses to start is reported by --status as failed with the reason; where the move is manual steps only, such as Windows or a system unit, --apply --detach starts nothing and prints them with exit 6; exit 7, JSON "outcome": "unconfirmed", when it was started but did not confirm in time), --expect TOKEN (change nothing, exit 8 with JSON "plan_changed": true, unless the backend found now is the one whose expect_token the --dry-run --json plan printed; a unit restarting keeps its token, a hand-started process replaced on the same port does not), --json. Commands the engine prints name this profile (hermes -p NAME ...). --status --json includes manual_steps when a rollback was incomplete. Only one run (apply, restore, or the rollback of an interrupted run) can change a home at a time: a second one started meanwhile exits 3 with "already running" and changes nothing (the dashboard's buttons answer 409); --status and --dry-run never wait for it.

Exit codes: 0 done or nothing to do, 2 invalid invocation, 3 blocked (nothing changed), 4 failed and rolled back, 5 rollback incomplete (numbered manual steps printed), 6 this kind of backend cannot be migrated automatically (Nix, s6/containers, a systemd system unit, Windows; the steps are printed one command per line, and for a system unit only one of them, sudo systemctl disable --now UNIT, needs root). On Windows the report names the Task Scheduler task or Startup-folder entry that starts the old backend, and the steps end and disable that task (schtasks /End, schtasks /Change ... /DISABLE) or set the entry aside before hermes gateway install; they run as typed in PowerShell or Command Prompt. Every browser signs in once more afterwards.

The dashboard's System page offers the same move as a Move to a single Hermes card. The card appears only when an older server serves the home of the profile the dashboard manages, or when the last run needs reporting (rolled back, failed or still running); otherwise the page looks as before. It says what was found and what the move changes, shows the blockers in plain words, and asks for a confirmation before it starts hermes -p PROFILE gateway migrate --backends --apply --yes --detach for that profile. The move is bound to the backend and address you confirmed: if the server now finds a different one, nothing starts, and the card shows what it found and asks you to confirm again. Move anyway appears only when the sole blockers are running replies, which the move then interrupts. While the move runs, the card follows --status across the switch. When the dashboard that served the page stops, the same address answers from the gateway and asks you to sign in again. A second click, or a move started from another window, follows the run already going instead of starting another. When nothing confirms that the move started (the start request gets no answer, or the background run does not report in time), the card says the outcome is not known and gives the hermes -p PROFILE gateway migrate --backends --status command. It reports that the move did not start only when the run recorded why. After a finished move it gives the --restore command for undoing it, and for a run whose process died part-way it gives the same command as the way back. Every command the card shows names the profile. The card asks the server for the plan once per page load. The server answers repeated loads for five minutes from one scan of this machine's processes and units, and starting a move or an undo always scans again.

The card uses four routes, which other clients (Hermes Desktop's Web Access banner) use too: GET /api/gateway/migrate/backends/plan, POST .../apply, POST .../restore and GET .../status. Each takes ?profile=NAME and acts on that profile's home, or on the server's own home without it. A profile this server does not have gets a 404 with "error": "unknown_profile" and never falls back to another home. They need the same sign-in as the dashboard's other routes, and apply and restore count as writes. apply and restore answer 200 when the background run confirmed it holds the home's run lock, and 202 with "confirmed": false when nothing confirmed it either way. A run already going or unfinished, a home already migrated, and a run that could not be started outside this server (not_started) get a 409, and so does an apply whose expect (the plan's opaque expect_token) no longer matches the server's fresh plan (plan_changed, with that plan); the background run gets the same token as --expect and checks it again before it changes anything. A running status also says whether the run's process is still alive. Commands in the answers name the profile, spelled as the CLI prints them (a profile outside the standard root keeps its HERMES_HOME=… pin; plan and status carry the status and restore commands as commands), and no answer carries a URL's user name or password.

Where the command exits 6, the move is done by hand: Docker and Compose, Nix, Windows. There --apply --detach starts nothing either: it prints the same steps and exits 6. When the command exits 3 instead, something blocks the move and it prints no steps: fix what it names and run it again. After an update, hermes update names an old backend that still serves this profile and points at the dry run; it changes nothing itself. A backend still running a Hermes older than v2026.7.30 has no /api/health, so the dry run stops and says to restart that backend with the updated hermes first, then run the dry run again.

What clients notice after the move​

The address stays the same, and so do the sign-in providers, but clients notice these changes, whether the move ran automatically or by hand:

  • An address that asks for sign-in: one more sign-in per browser and app. On a wildcard address, one IP address or a public URL, the gateway's sign-in cookies are not the old backend's, so each browser and each app connected there signs in once more, with the same username and password or provider.
  • A loopback address: open the Webapp with hermes webapp. On loopback the old dashboard put a session token in every page it served, with no sign-in. The private loopback Webapp does not: hermes webapp hands the browser a one-use link that carries its credential, and reloading or typing the address does not create one. A script or tool that read the token from the page has no credential any more.
  • A Webapp on one IP address also listens on loopback. When the old backend listened on one specific IP address, the gateway serves that address and also loopback (127.0.0.1, or ::1 for an IPv6 address) on the same port, because the CLI, the TUI and Desktop on this machine attach only over loopback. That port must therefore be free on loopback too. Loopback is reachable only from this machine, so nothing is exposed further.
  • A dashboard tab left open through the move: reload it. The tab still runs the old dashboard's page, and its next new chat shows an error. Reload the page: it opens the gateway's Webapp (then sign in, or on loopback open it with hermes webapp as above).

/reload Slash Command​

The dashboard PR also adds a /reload slash command to the interactive CLI. After changing API keys via the web dashboard (or by editing .env directly), use /reload in an active CLI session to pick up the changes without restarting:

You → /reload
Reloaded .env (3 var(s) updated)

This re-reads ~/.hermes/.env into the running process's environment. Useful when you've added a new provider key via the dashboard and want to use it immediately.

REST API​

The web dashboard exposes a REST API that the frontend consumes. You can also call these endpoints directly for automation:

Profile-scoped endpoints

The management endpoint families — /api/config, /api/env, /api/skills, /api/tools/toolsets, /api/mcp, /api/model/{info,options,auxiliary,set,recommended-default}, /api/cron/{delivery-targets,blueprints}, /api/audio/voice-config, /api/ops/debug-share, /api/learning/{graph,node}, and /api/dashboard/plugins/hub — accept an optional ?profile=<name> query parameter (or "profile" in the JSON body for writes) that scopes the read/write to that profile's HERMES_HOME. Omitted = the dashboard's own profile. Unknown profile names return 404. The /api/pty WebSocket accepts the same parameter to spawn a chat under the selected profile.

GET /api/status​

Returns agent version, gateway status, platform states, and active session count.

The response also carries two advisory resource blocks (they never affect the components/overall health verdict):

  • memory — distilled from the gateway's 30-second heartbeat and the lifecycle ledger. Fields: pressure (ok / elevated / critical / unknown), gateway_rss_mb, system_total_mb, system_available_mb, swap_used_mb, sampled_at, boot_id, last_boot_unclean, last_boot_suspected_oom, last_boot_oom_kill (null, cgroup or host: the gateway died uncleanly and, between its last heartbeat and this boot, the kernel OOM-killed a process in the gateway's cgroup (cgroup) / somewhere on the host (host); the counter does not say which process, and host also counts any other process on the machine. A systemd unit or container restart recreates the cgroup, so after one this is usually host; cgroup applies only when the gateway restarts inside a surviving cgroup. Compared only when the last heartbeat is at most 15 minutes old; Linux only), last_boot_watchdog_exit (the previous gateway life was ended by a watchdog: either the event-loop liveness watchdog or the shutdown watchdog), last_boot_memory_starved (that watchdog kill happened while host memory pressure was critical). Pressure is elevated below 128 MiB (or 15%) of available system memory and critical below 64 MiB (or 5%) — the same levels at which a subsequent unclean exit would be flagged as a suspected OOM kill. Heartbeats older than 150 seconds (or future-dated) keep their numbers but degrade pressure to unknown, so a dead gateway's last sample can't masquerade as a live reading.
  • disk — a live shutil.disk_usage() sample of the volume holding ~/.hermes. Fields: pressure, free_mb, total_mb, used_percent, sampled_at. Pressure is elevated below 512 MB free (or ≥85% used with under 4 GB headroom) and critical below 256 MB free (or ≥95% used with under 1 GB headroom).

Both collectors are fail-safe: any sampling error degrades the block to {"pressure": "unknown"} instead of failing the status endpoint. The numbers are coarse (whole MB, whole-percent) since /api/status is public.

GET /api/chat/workspaces​

Directories a fresh Chat-tab session may start in: the profile's projects (with folders) and discovered git repositories (root, label, sessions, last_active), plus default_cwd (where a chat lands when nothing is picked) and home. ?scan=1 rescans desktop.repo_scan_roots on the host first. Pair with /api/pty?cwd=<path>, which fails closed on a missing directory.

GET /api/sessions​

Returns the 20 most recent sessions with metadata (model, token counts, timestamps, preview).

GET /api/config​

Returns the current config.yaml contents as JSON.

GET /api/config/defaults​

Returns the default configuration values.

GET /api/config/schema​

Returns a schema describing every config field — type, description, category, and select options where applicable. The frontend uses this to render the correct input widget for each field.

PUT /api/config​

Saves a new configuration. Body: {"config": {...}}.

GET /api/env​

Returns all known environment variables with their set/unset status, redacted values, descriptions, and categories.

PUT /api/env​

Sets an environment variable. Body: {"key": "VAR_NAME", "value": "secret"}.

DELETE /api/env​

Removes an environment variable. Body: {"key": "VAR_NAME"}.

GET /api/sessions/{session_id}​

Returns metadata for a single session.

GET /api/sessions/{session_id}/messages​

Returns a bounded page of message history, including tool calls and timestamps. By default it returns the latest 500 messages in chronological order. Use limit (maximum 500), offset, and order=oldest|latest for explicit pagination.

GET /api/sessions/search​

Full-text search across message content. Query parameter: q. Returns matching session IDs with highlighted snippets.

DELETE /api/sessions/{session_id}​

Deletes a session and its message history. The request must carry the mutation identity the client read from GET /api/sessions/{id}/mutation-snapshot (request_id, expected_revision, and expected_generation); a partial identity is answered 409 mutation_identity_required, and a request with none of it (Desktop 0.22.2 and older) 409 client_upgrade_required — the backend never applies an edit without the revision fence. The delete is executed by the profile's gateway, so a session with a running or queued turn is refused with 409 session_busy and one whose last turn was lost across a gateway restart with 409 unknown_execution — nothing is removed in either case. Deleting a session that has executed turns leaves small terminal-receipt tombstones in the state_meta table (admission and worker identities with the user text and history stripped); they let an exact retry of the same delete — or of an API run that targeted the deleted session — return the same answer instead of recreating the session, and stop the deleted ID from being re-imported. They are kept indefinitely (a few hundred bytes per executed turn).

Bulk maintenance while a gateway owns the store​

POST /api/sessions/bulk-delete, DELETE /api/sessions/empty, POST /api/sessions/prune (non-dry-run) and POST /api/sessions/owner-backfill rewrite many rows at once and bypass the per-session revision fence, so they are offline maintenance: they take the profile's exclusive gateway.lock. While that profile's gateway is running they return 409 with Exclusive maintenance refused: Gateway runtime already owns profile <home>. Drain and stop the gateway, then retry. and change nothing. Stop the gateway (hermes gateway stop), run the maintenance call, then start it again. dry_run prune and every read endpoint keep working against a live gateway. The Desktop's one-shot legacy owner backfill treats this 409 as the steady state of an attached gateway (like a backend without the route) and does not retry it on every sidebar refresh.

GET /api/logs​

Returns log lines. Query parameters: file (agent/errors/gateway), lines (count), level, component.

GET /api/analytics/usage​

Returns token usage, cost, and session analytics. Query parameter: days (default 30). Response includes daily breakdowns and per-model aggregates.

GET /api/cron/jobs​

Returns all configured cron jobs with their state, schedule, and run history.

POST /api/cron/jobs​

Creates a new cron job. Body: {"prompt": "...", "schedule": "0 9 * * *", "name": "...", "deliver": "local"}.

POST /api/cron/jobs/{job_id}/pause​

Pauses a cron job.

POST /api/cron/jobs/{job_id}/resume​

Resumes a paused cron job.

POST /api/cron/jobs/{job_id}/trigger​

Immediately triggers a cron job outside its schedule.

DELETE /api/cron/jobs/{job_id}​

Deletes a cron job.

GET /api/skills​

Returns all skills with their name, description, category, and enabled status.

PUT /api/skills/toggle​

Enables or disables a skill. Body: {"name": "skill-name", "enabled": true}.

GET /api/tools/toolsets​

Returns all toolsets with their label, description, tools list, and active/configured status.

Admin endpoints​

These power the MCP, Channels, Webhooks, Pairing, and System pages. All sit behind the same auth gate as the rest of /api/.

Method & pathPurpose
GET /api/mcp/serversList configured MCP servers (env values redacted)
POST /api/mcp/serversAdd a server. Body: {name, url?, command?, args?, env?, auth?}
POST /api/mcp/servers/{name}/testConnect, list tools, disconnect
PUT /api/mcp/servers/{name}/enabledEnable / disable a server
DELETE /api/mcp/servers/{name}Remove a server
GET /api/mcp/catalogBrowse the Nous-approved MCP catalog
POST /api/mcp/catalog/installInstall a catalog entry (with required env)
GET /api/messaging/platformsList every messaging channel with status + per-platform setup fields
PUT /api/messaging/platforms/{id}Configure a channel. Body: {enabled?, env?, clear_env?} (env writes to .env, enabled to config.yaml)
POST /api/messaging/platforms/{id}/testReport whether a channel is configured, enabled, and connected
GET /api/pairingList pending + approved messaging users
POST /api/pairing/approveApprove a code. Body: {platform, code}
POST /api/pairing/revokeRevoke a user. Body: {platform, user_id}
POST /api/pairing/clear-pendingDrop all pending codes
GET /api/webhooksList subscriptions + platform-enabled status
POST /api/webhooksCreate a subscription (returns one-time secret)
DELETE /api/webhooks/{name}Remove a subscription
GET /api/credentials/poolList pooled rotation keys (redacted)
POST /api/credentials/poolAdd a key. Body: {provider, api_key, label?}
DELETE /api/credentials/pool/{provider}/{index}Remove a key (1-based index)
GET /api/memoryActive provider + available providers + built-in file sizes
PUT /api/memory/providerSelect a provider (empty = built-in only)
POST /api/memory/resetReset built-in memory. Body: {target: all|memory|user}
POST /api/gateway/start · /stop · /restartGateway lifecycle (backgrounded)
POST /api/ops/doctor · /security-audit · /backup · /importDiagnostics & maintenance (backgrounded; tail via /api/actions/{name}/status)
GET /api/ops/hooksConfigured shell hooks + allowlist status
GET /api/ops/checkpoints · POST .../pruneInspect / prune the /rollback store
POST /api/ops/hooks · DELETE /api/ops/hooksCreate / remove a shell hook (consent-gated)
GET /api/system/statsHost stats — OS, CPU, memory, disk, uptime
GET /api/hermes/update/checkReport update availability (commits behind, install method) without applying. For git installs that are behind, also returns a commits list (sha, summary, author, at) of what's changed. ?force=1 busts the 24h cache (the check goes through the GitHub API, never git fetch)
GET /api/curator · PUT .../paused · POST .../runSkill-curator status + pause/resume + run
GET /api/portalNous Portal auth + Tool Gateway routing (read-only)
POST /api/ops/prompt-size · /dump · /config-migrateDiagnostics (backgrounded)
POST /api/ops/debug-shareUpload the allowlisted debug summary (no log lines or message text) to a public paste and return the URL (synchronous). Body: {consent: true, redact?, lines?}; without "consent": true it returns 400 and uploads nothing
PUT /api/webhooks/{name}/enabledEnable / disable a webhook route
POST /api/skills/hub/install · /uninstall · /updateSkills hub actions (backgrounded)
GET /api/skills/hub/searchSearch the skill hub across all sources
GET /api/sessions/statsSession-store statistics
PATCH /api/sessions/{id}Rename / archive a session
GET /api/sessions/{id}/exportExport a session (metadata + messages) as JSON
POST /api/sessions/pruneDelete ended sessions older than N days
PUT /api/cron/jobs/{id}Edit a cron job's prompt / schedule / name / deliver

Authentication (gated mode)​

When the dashboard is bound to a public or non-loopback address — anything other than 127.0.0.1 / localhost — Hermes Agent engages an auth gate. Every request must carry a verified session cookie or it's bounced to the login page. Three providers ship in the box:

  • Username/password — the simplest way to put auth on a self-hosted / on-prem / homelab dashboard. No external identity provider. Use it only on a trusted network or behind a VPN — not for public-internet exposure.
  • OAuth (Nous Portal) — for hosted deployments and any dashboard reachable over the public internet, and the recommended path for a remote Hermes Desktop connection. Every login is verified against your Nous account, so this is the provider suitable for internet-facing use.
  • Self-hosted OIDC — for bringing your own identity provider via standard OpenID Connect (Keycloak, Auth0, Okta, Google, GitHub via an OIDC bridge, etc.). No Nous Portal involved; suitable for public-internet exposure when fronted by a conformant OIDC server.

Operator-owned dashboards bound to loopback are unaffected — no auth, no login page.

When the gate engages​

FlagsAuth gateUse case
hermes dashboard (default — binds to 127.0.0.1)OFFLocal development
hermes dashboard --host 0.0.0.0ONRemote / production — protect with the username/password provider or OAuth

The gate is on if and only if the bind host is not 127.0.0.1, ::1, or localhost. Binding to 0.0.0.0 (or any RFC1918 / LAN address) engages the gate. The legacy --insecure flag no longer disables it — it's accepted for backward compatibility but ignored, with a warning.

--insecure is a no-op — it does not disable auth

Since the June 2026 hardening, --insecure no longer bypasses dashboard authentication: a non-loopback bind always requires an auth provider (the username/password provider or OAuth). If you want an auth-free dashboard, bind to 127.0.0.1 and reach it over an SSH tunnel or Tailscale.

Fail-closed semantics​

If the gate would engage but no DashboardAuthProvider is registered (no Nous plugin, no custom plugin), hermes dashboard refuses to bind with an explicit error message. There is no "default-deny but accept everything" fallback — a misconfigured gated dashboard never starts.

When you run hermes dashboard --host 0.0.0.0 interactively (a real terminal) and no provider is configured yet, Hermes doesn't just fail — it offers to set one up on the spot: pick username & password (writes dashboard.basic_auth to config.yaml and you're running in seconds) or OAuth (points you at hermes dashboard register). Non-interactive callers — Docker/s6, CI, piped runs — skip the prompt and hit the fail-closed error above, so an unattended deploy still never starts without auth. To set or change the username and password without that prompt (from a script, or before starting a service), run hermes dashboard password.

Default provider: Nous Research​

The bundled plugins/dashboard_auth/nous plugin is always installed and auto-loaded. It auto-registers a DashboardAuthProvider named nous when a client ID is configured.

Because every login is verified against Nous Portal and protected by your Nous account, the Nous provider is the one suitable for exposing a dashboard to the public internet.

Registering a dashboard​

To use the Nous provider you need an OAuth client ID (shape agent:{id}). There are two ways to get one:

  • CLI — hermes dashboard register. Run it on the host where the dashboard lives. It resolves your existing Nous login (run hermes setup first if you're not logged in), registers a self-hosted OAuth client with the Portal, and writes HERMES_DASHBOARD_OAUTH_CLIENT_ID into ~/.hermes/.env for you. Optional flags: --name (a human-readable label, otherwise auto-generated) and --redirect-uri (a public HTTPS callback URL for an internet-facing host).

    hermes dashboard register
    # ✓ Registered dashboard "swift_falcon"
    # …writes HERMES_DASHBOARD_OAUTH_CLIENT_ID to ~/.hermes/.env
  • GUI — the Local Dashboards page. Open /local-dashboards in the Nous Portal to register, name, manage, and revoke self-hosted dashboards from the browser. Copy the resulting agent:{id} client ID into HERMES_DASHBOARD_OAUTH_CLIENT_ID (env) or dashboard.oauth.client_id (config.yaml). This is also where you revoke a dashboard registered via the CLI.

Configuration​

The plugin reads from two surfaces, with the environment variable winning when set non-empty:

config.yaml — the canonical surface:

dashboard:
oauth:
client_id: agent:01HXYZ… # required to engage the gate
token_leeway: 60 # optional; seconds of clock-skew tolerance

Environment variables — operator overrides:

Env varOverridesFormatProvisioned by
HERMES_DASHBOARD_OAUTH_CLIENT_IDdashboard.oauth.client_idagent:{instance_id}hermes dashboard register

Per the Hermes Agent convention (~/.hermes/.env is for API keys / secrets only), config.yaml is the recommended place to set these values for local dev, on-prem, and any deployment you control directly. The environment-variable path exists so a hosting platform's secret injection can push per-deploy client_ids without anyone having to edit config.yaml inside the image — that's its primary purpose.

Empty environment values are treated as unset, so a provisioned-but-not-populated platform secret can't accidentally shadow a valid config.yaml entry.

dashboard.oauth.token_leeway (config.yaml only) is the clock-skew tolerance — in seconds — applied to the Portal access token's exp/nbf/iat claims during JWT verification. The default is 60 (RFC 7519 §4.1.4-4.1.6), so a host whose clock lags the Portal's doesn't fail login; 0 restores strict verification, and an invalid value (unparseable / negative / non-finite) fails closed to 0. The self-hosted OIDC provider has the equivalent dashboard.oauth.self_hosted.id_token_leeway knob.

If neither source provides a client_id, the plugin reports the specific reason and the dashboard's fail-closed bind error tells you exactly what to fix:

Refusing to bind dashboard to 0.0.0.0 — the auth gate engages on
non-loopback binds, but no auth providers are registered.

Bundled providers reported these issues:
• nous: HERMES_DASHBOARD_OAUTH_CLIENT_ID is not set (and
dashboard.oauth.client_id in config.yaml is empty). …

Configure an auth provider before exposing the dashboard:
• Password: set dashboard.basic_auth.username + password_hash in config.yaml
• OAuth: run `hermes dashboard register` (Nous Portal) or install a
DashboardAuthProvider plugin.
There is no unauthenticated public-bind option — to keep it local, bind
127.0.0.1 and tunnel in (SSH / Tailscale).

Worked example: Nous Research​

From a logged-in Hermes install to a Nous-gated dashboard in three steps.

1. Log in and register the dashboard. hermes dashboard register uses your existing Nous login to provision an OAuth client and writes HERMES_DASHBOARD_OAUTH_CLIENT_ID into ~/.hermes/.env for you:

hermes setup # if you're not already logged into Nous Portal
hermes dashboard register
# ✓ Registered dashboard "swift_falcon"
# …writes HERMES_DASHBOARD_OAUTH_CLIENT_ID to ~/.hermes/.env

2. Run the dashboard on a reachable address. A non-loopback bind engages the OAuth gate, and the client_id just written activates the nous provider:

hermes dashboard --host 0.0.0.0 --port 9119 --no-open

3. Log in. Open http://<host>:9119/, you'll be bounced to /login. Click Sign in with Nous Research → authenticate at the Portal → land back on the authenticated dashboard. Verify the gate from any machine:

curl -s http://<host>:9119/api/status | jq '.auth_required, .auth_providers'
# true
# ["nous"]

GET /api/auth/me then returns the verified session (provider: nous). For an internet-facing host, register with --redirect-uri https://hermes.example.com/auth/callback and set HERMES_DASHBOARD_PUBLIC_URL so the OAuth callback resolves to your public URL (see Public URL override).

Username/password provider (no OAuth IDP)​

If you don't want to wire up an OAuth identity provider — a self-hosted "just put a password on my dashboard" deployment — the bundled plugins/dashboard_auth/basic plugin registers a DashboardAuthProvider named basic that authenticates with a username and password instead of an OAuth redirect.

It plugs into the same gate as the OAuth provider: the gate engages on a non-loopback bind, the login page renders a credential form for this provider (instead of a "Log in with X" button), and everything downstream of login — session cookies, transparent refresh, WS tickets, logout, the audit log — is identical to the OAuth path. Sessions are HMAC-signed tokens the provider mints itself, so there's no database and no external IDP. The signing key is bound to the configured username and password, so changing either ends every existing session; logout revokes that login (and its renewals) via a small dashboard_auth/basic-revoked-sessions.json file in the Hermes home. Password hashing uses stdlib scrypt (no third-party dependency).

Use this on trusted networks only — not the public internet

The username/password provider is intended for self-hosted / on-prem / homelab dashboards on a trusted network, or reachable only over a VPN. It protects a single shared credential with no external identity provider, MFA, or per-user accounts behind it, so it is not suitable for exposing a dashboard directly to the public internet. For an internet-facing dashboard, use the Nous Research provider (or your own self-hosted OIDC / custom OAuth provider) instead.

Configuration​

Like the Nous provider, it reads from config.yaml (canonical) with environment variables winning when set non-empty. It activates only when username plus either password_hash (preferred) or password are configured — otherwise it's a no-op, so OAuth users and loopback operators are unaffected.

config.yaml:

dashboard:
basic_auth:
username: admin
# Preferred — no plaintext at rest. Compute with:
# python -c "from plugins.dashboard_auth.basic import hash_password; print(hash_password('PW'))"
password_hash: "scrypt$16384$8$1$…$…"
# ...or a plaintext password (hashed in-memory at load; less safe at rest):
# password: "s3cret"
secret: "<32+ random bytes, base64 or hex>" # token-signing key
session_ttl_seconds: 43200 # optional; access-token lifetime (default 12h)

Environment overrides:

Env varOverridesNotes
HERMES_DASHBOARD_BASIC_AUTH_USERNAMEdashboard.basic_auth.usernamerequired to activate
HERMES_DASHBOARD_BASIC_AUTH_PASSWORD_HASHdashboard.basic_auth.password_hashpreferred (no plaintext at rest)
HERMES_DASHBOARD_BASIC_AUTH_PASSWORDdashboard.basic_auth.passwordplaintext; wins over a config password_hash so you can rotate via env
HERMES_DASHBOARD_BASIC_AUTH_SECRETdashboard.basic_auth.secrettoken-signing key
HERMES_DASHBOARD_BASIC_AUTH_TTL_SECONDSdashboard.basic_auth.session_ttl_secondsaccess-token lifetime
Set an explicit secret for stable sessions

When secret is empty, a random per-process signing key is generated. That's fine for a single process, but it means every session is invalidated on restart and sessions don't span multiple workers. Set an explicit secret for restart-surviving / multi-worker deployments.

Setting the password from the command line​

hermes dashboard password writes username, password_hash and (when missing) secret under dashboard.basic_auth, the same fields the interactive prompt writes, and never stores or prints the password. It asks on the terminal, or reads the first line of standard input with --password-stdin, so it works in scripts, containers and service setups:

hermes dashboard password --username admin --password-stdin < /run/secrets/dashboard_password

The gateway's Webapp and hermes dashboard / hermes serve all sign in with these credentials. Each reads them when it starts: restart a running one. Starting with a new password ends every earlier sign-in. Add -p <profile> for a named profile's own sign-in; it is used by that profile's --isolated dashboard and by a gateway the profile runs by itself, while the machine dashboard and a gateway serving several profiles use the credentials of the home they were started from. See the CLI reference for every option.

The /auth/password-login endpoint is rate-limited per client IP (default 10 attempts/minute → HTTP 429) and returns a single generic 401 Invalid credentials for both unknown users and wrong passwords, so it can't be used as a username-enumeration oracle.

Worked example: username/password​

From nothing to a password-gated dashboard on a trusted network in three steps.

1. Set credentials in ~/.hermes/.env. Hash the password so no plaintext sits at rest, and set a stable signing secret so sessions survive restarts:

# Compute a scrypt hash of your chosen password:
HASH=$(python -c "from plugins.dashboard_auth.basic import hash_password; print(hash_password('choose-a-strong-password'))")

cat >> ~/.hermes/.env <<EOF
HERMES_DASHBOARD_BASIC_AUTH_USERNAME=admin
HERMES_DASHBOARD_BASIC_AUTH_PASSWORD_HASH=$HASH
HERMES_DASHBOARD_BASIC_AUTH_SECRET=$(openssl rand -base64 32)
EOF
chmod 600 ~/.hermes/.env

2. Run the dashboard on a reachable address. A non-loopback bind engages the gate, and the username + hash activate the basic provider:

hermes dashboard --host 0.0.0.0 --port 9119 --no-open

3. Log in. Open http://<host>:9119/, you'll be bounced to /login — a credential form (not a "Sign in with X" button). Enter admin / your password → land on the authenticated dashboard. Verify the gate from any machine:

curl -s http://<host>:9119/api/status | jq '.auth_required, .auth_providers'
# true
# ["basic"]

GET /api/auth/me then returns the verified session (provider: basic). Keep this behind a VPN — see the warning above; for a public host use the Nous Research or self-hosted OIDC provider instead.

Writing your own password provider​

basic is just one implementation of an extension point. Any plugin can register a password provider: set supports_password = True on your DashboardAuthProvider subclass and implement complete_password_login(*, username, password) -> Session (raise InvalidCredentialsError on rejection, ProviderError if your backing store is down). The OAuth start_login / complete_login methods can be left as NotImplementedError stubs for a pure-password provider. This is the path for LDAP-bind, a credentials database, or any other non-redirect auth scheme — the framework handles the form, the route, the cookies, and refresh for you.

Deployment session-token provider (token-only deployments)​

The bundled plugins/dashboard_auth/session_token plugin makes the deployment session token (HERMES_DASHBOARD_SESSION_TOKEN) a first-class gated-mode credential. This is the shape secret-managed deployments already provision — a single shared token (nix/agenix hands it over as a decrypted file; the Nix modules set HERMES_DASHBOARD_SESSION_TOKEN=file:<path> from backend.sessionTokenFile) that Hermes Desktop's remote-gateway "Session token" field presents. Without this provider, a non-loopback bind with only a provisioned token hit the fail-closed gate and pushed the operator into basic-auth or OAuth credentials the deployment never asked for.

When the env var is provisioned, the provider registers automatically and verify_session constant-time-compares the presented credential against it. Both legs a token-mode client uses run through that seam — REST, where Desktop's "Session token" connection sends the token in the X-Hermes-Session-Token header (a bearer token in the Authorization header works too and wins when both are sent; only this provider's token works in the dedicated header), and the /api/ws ?token= upgrade credential — so one provisioned token authorizes both. There is no browser sign-in flow: /login renders a note explaining the credential channel instead of sign-in buttons, and the provider is never offered by the auto-SSO redirect.

Treat the token like a password

The provisioned token grants full dashboard access to whoever holds it. Provision it from a secret manager (never a Nix store path), rotate by redeploying the secret — rotation invalidates every saved client copy, which surfaces as "HTTP reachable but the WebSocket fails" in Desktop until the new token is pasted in. There is no per-user identity behind it: for shared or internet-facing deployments prefer the Nous Research or self-hosted OIDC provider.

Activation and opt-out. Registering is driven by the credential itself: the provider is a no-op until HERMES_DASHBOARD_SESSION_TOKEN is set (env wins; file:<path> is read at startup and fails loudly when missing/empty). To keep the token internal-only (loopback SPA use, desktop-spawned backends) while authenticating the gate with basic-auth/OAuth instead, disable the provider:

dashboard:
session_token_auth:
enabled: false

Verify a token-gated deployment from any machine:

curl -s http://<host>:9119/api/status | jq '.auth_required, .auth_providers'
# true
# ["session-token"]

curl -s -o /dev/null -w '%{http_code}\n' \
-H "Authorization: Bearer $TOKEN" http://<host>:9119/api/auth/me
# 200

Self-hosted OIDC provider​

If you run your own identity provider, the bundled plugins/dashboard_auth/self_hosted plugin authenticates the dashboard against it using standard OpenID Connect — no per-IDP code, no Nous Portal involved. It's verified against and works with any conformant OIDC server:

Authentik · Keycloak · Zitadel · Authelia · Auth0 · Okta · Google · …

Like the Nous provider, it auto-loads and only registers itself once it's configured, so it's a no-op for loopback dashboards.

Configuration​

Configure an issuer and a client_id (a public PKCE client — no client secret). The plugin fetches the IDP's authorization_endpoint, token_endpoint, and jwks_uri from {issuer}/.well-known/openid-configuration, so you never hardcode endpoint URLs.

config.yaml — the canonical surface:

dashboard:
oauth:
provider: self-hosted
self_hosted:
issuer: https://auth.example.com/application/o/hermes/ # required
client_id: hermes-dashboard # required
scopes: "openid profile email" # optional (this is the default)
id_token_leeway: 60 # optional; seconds of clock-skew tolerance

Environment variables — operator overrides (env wins over config.yaml when set non-empty; an empty value is treated as unset):

Env varOverridesNotes
HERMES_DASHBOARD_OIDC_ISSUERdashboard.oauth.self_hosted.issuerOIDC issuer URL — required
HERMES_DASHBOARD_OIDC_CLIENT_IDdashboard.oauth.self_hosted.client_idPublic client id — required
HERMES_DASHBOARD_OIDC_SCOPESdashboard.oauth.self_hosted.scopesDefaults to openid profile email

In your IDP, register a public application/client with the authorization-code + PKCE (S256) grant and add the dashboard's callback as an allowed redirect URI. The callback is <dashboard public URL>/auth/callback (see Public URL override for how the dashboard derives its public URL behind a proxy).

What it verifies​

Every account that can sign in acts as you, the machine owner. With a self-hosted login provider, restrict the app to your own account in the provider (for example Okta app assignment, Microsoft Entra "Assignment required", or a Google Workspace app limited to you); otherwise anyone your provider admits gets full access, as before.

The provider verifies the OpenID Connect ID token (RS256/ES256) against the discovered jwks_uri, with the iss and aud claims pinned to your configured issuer and client_id. The time claims (exp/nbf/iat) are verified with a 60-second clock-skew leeway (RFC 7519 §4.1.4-4.1.6), so a dashboard host whose clock lags the IDP's doesn't fail login; tune it with dashboard.oauth.self_hosted.id_token_leeway in config.yaml (any value below 60 tightens it, 0 restores strict verification, and an invalid value fails closed to 0). Standard OIDC claims map onto the dashboard session:

Session fieldClaim(s)
user_idsub (required)
emailemail
display_namename → preferred_username → nickname → email
org_idorg_id / organization, else joined groups

The ID token is what establishes identity — the access token is treated as opaque (the OIDC spec does not require it to be a JWT). Endpoint URLs are required to be HTTPS (loopback http:// is allowed for local-dev IDPs), and the discovery document's advertised issuer must match your configured one (a trailing-slash difference is tolerated). Refresh tokens, when the IDP issues them, are used for silent re-auth via the standard refresh_token grant; logout calls the IDP's RFC 7009 revocation_endpoint when advertised.

Confidential clients (those with a client_secret) are not supported yet — configure a public + PKCE client, which is the typical choice for a browser-facing dashboard.

Worked example: Keycloak​

Keycloak is one of the easiest self-hosted OIDC servers to stand up for a local test — it runs as a single container in dev mode (in-memory DB) and exposes textbook OIDC discovery. This walkthrough gets you from nothing to a working dashboard login in a few minutes.

1. Run Keycloak with a pre-configured realm. Save this realm export as realm-hermes.json — it defines a hermes realm, a public PKCE client (hermes-dashboard), and a test user, all imported on boot so there's nothing to click in the admin UI:

{
"realm": "hermes",
"enabled": true,
"clients": [
{
"clientId": "hermes-dashboard",
"name": "Hermes Agent Dashboard",
"enabled": true,
"publicClient": true,
"standardFlowEnabled": true,
"protocol": "openid-connect",
"redirectUris": ["http://localhost:9119/auth/callback"],
"webOrigins": ["http://localhost:9119"],
"attributes": { "pkce.code.challenge.method": "S256" }
}
],
"users": [
{
"username": "testuser",
"enabled": true,
"emailVerified": true,
"email": "testuser@example.com",
"firstName": "Test",
"lastName": "User",
"credentials": [
{ "type": "password", "value": "testpassword", "temporary": false }
]
}
]
}

Start it (Keycloak 26+), mounting that file into the import directory:

docker run --rm -p 8080:8080 \
-e KC_BOOTSTRAP_ADMIN_USERNAME=admin \
-e KC_BOOTSTRAP_ADMIN_PASSWORD=admin \
-v "$PWD/realm-hermes.json:/opt/keycloak/data/import/realm-hermes.json:ro" \
quay.io/keycloak/keycloak:26.0 \
start-dev --import-realm

Once it's up, the realm advertises standard OIDC discovery at http://localhost:8080/realms/hermes/.well-known/openid-configuration (issuer http://localhost:8080/realms/hermes). The admin console is at http://localhost:8080/ (admin / admin).

2. Point the dashboard at it. The self-hosted plugin permits a loopback http:// issuer (HTTPS is required for any non-loopback issuer), so the local Keycloak works as-is:

export HERMES_DASHBOARD_OIDC_ISSUER="http://localhost:8080/realms/hermes"
export HERMES_DASHBOARD_OIDC_CLIENT_ID="hermes-dashboard"
export HERMES_DASHBOARD_PUBLIC_URL="http://localhost:9119"
hermes dashboard --host 0.0.0.0 --port 9119 --no-open

HERMES_DASHBOARD_PUBLIC_URL tells the dashboard its OAuth callback is http://localhost:9119/auth/callback — the redirect URI the realm registered above. Binding to 0.0.0.0 (a non-loopback bind) is what engages the OAuth gate.

3. Log in. Open http://localhost:9119/, you'll be bounced to /login. Click Sign in with Self-Hosted OIDC → authenticate at Keycloak as testuser / testpassword → land back on the authenticated dashboard. The sidebar shows Logged in as Test User via self-hosted, and GET /api/auth/me returns the verified session (provider: self-hosted, email: testuser@example.com).

If you bind or browse on a different host/port, add that origin's …/auth/callback to the client's Valid redirect URIs in the Keycloak admin console (Clients → hermes-dashboard → Settings). The same pattern works for Authentik, Zitadel, Authelia, and other OIDC servers — only the issuer URL and client registration UI differ.

Public URL override​

By default, the dashboard reconstructs the OAuth callback URL from the request — X-Forwarded-Host + X-Forwarded-Proto + X-Forwarded-Prefix (when uvicorn is configured with proxy_headers=True, which start_server enables under the gate). This works out of the box behind a reverse proxy that sets all three headers correctly.

For deploys behind reverse proxies that don't reliably forward those headers (manual nginx setups, on-prem ingresses, custom-domain deploys with partial proxy chains), set dashboard.public_url (or HERMES_DASHBOARD_PUBLIC_URL) to the complete public URL the dashboard is reached at:

dashboard:
public_url: "https://dashboard.example.com/hermes"
trusted_proxies:
- "172.20.0.5"

When set, the OAuth callback URL becomes <public_url>/auth/callback verbatim — X-Forwarded-Prefix is ignored on that code path because the operator has explicitly declared the public URL. This is intentional: stacking the prefix on top would double-prefix the common case where the prefix is already baked into public_url.

Provider sign-in (/auth/login and the desktop start, /auth/native/authorize) happens on the public_url host. The sign-in cookie belongs to the host that set it, and the provider returns to <public_url>/auth/callback. So when one of those starts on another name that still reaches the dashboard (an old hostname, an alias), Hermes first redirects it to the same sign-in URL on the public_url host, and the browser lands there signed in. To decide which host the browser used, it reads X-Forwarded-Host, falling back to Host. Behind a proxy that rewrites Host and sends no X-Forwarded-Host, this costs one extra redirect and never loops.

The hostname in public_url is also accepted as an exact HTTP Host and WebSocket Origin value. This supports a reverse proxy that preserves the browser-facing hostname while forwarding to a dashboard bound to 127.0.0.1. Wildcards and suffix matches are not allowed, so an attacker host such as dashboard.example.com.evil.test remains rejected by the DNS-rebinding guard.

Declaring a non-loopback public_url always engages the dashboard auth gate, even when the backend binds to loopback. Configure a password or OAuth provider first; without one, Hermes fails closed at startup. This prevents the local SPA session token from becoming a remote authentication mechanism through the proxy. Uvicorn also enables proxy-header processing in this mode. Loopback proxies are trusted automatically. If the TLS terminator connects from another container or host, add its exact IP address to dashboard.trusted_proxies, or add a bounded CIDR for a dedicated proxy network when the address is dynamic:

dashboard:
public_url: "https://dashboard.example.com/hermes"
trusted_proxies:
- "172.20.0.0/24"

Only listed peers may supply X-Forwarded-Proto and X-Forwarded-For. Hermes always preserves loopback trust and rejects *, 0.0.0.0/0, and ::/0. Trusting a network means every container or machine on that network can supply forwarding metadata, so prefer an exact proxy IP or a dedicated proxy-only network. Without a trusted-proxy entry, clients behind that proxy share its password-login rate limit and native sign-in cap, and auth audit events record the proxy's address.

# Backend remains reachable only on this machine.
hermes dashboard --host 127.0.0.1 --port 9119 --no-open

Point the TLS reverse proxy at http://127.0.0.1:9119 and use the same external origin in dashboard.public_url.

Tailscale Serve is one example of this deployment shape: it can terminate tailnet-only HTTPS on a https://<machine>.<tailnet>.ts.net hostname while proxying to the loopback dashboard. Use that exact HTTPS origin as dashboard.public_url. It is still treated as a non-loopback browser-facing origin and therefore requires a dashboard auth provider; this does not require making the service reachable from the public internet.

Same precedence as the other dashboard settings — env wins over config.yaml:

SurfaceOverride pathWhen to use
dashboard.public_url in config.yamlHERMES_DASHBOARD_PUBLIC_URLLocal dev / on-prem (canonical)
HERMES_DASHBOARD_PUBLIC_URL env var—Hosting-platform secrets / CI
(unset)—Default — reconstruct from X-Forwarded-* headers

Validation rejects values without http:// / https:// scheme, without a host, or containing quote / angle / whitespace / control characters. A malformed value silently falls through to header reconstruction so the login flow keeps working rather than dispatching the user to a hostile URL.

Note: public_url overrides the OAuth callback URL only. The Secure cookie flag is still controlled by request.url.scheme, using X-Forwarded-Proto only when the connecting peer is loopback or listed in trusted_proxies. Pair an HTTPS public_url with TLS termination and a bounded trusted-proxy entry when the proxy is not on loopback.

OAuth flow​

The provider implements the Nous Portal OAuth contract v1 — authorization-code grant with PKCE (S256):

  1. User hits / without a session cookie → gate redirects to /login.
  2. Login page shows a "Continue with Nous Research" button → /auth/login?provider=nous.
  3. Server stashes PKCE state in a short-lived cookie, redirects user to https://portal.nousresearch.com/oauth/authorize?….
  4. User authenticates with Portal, lands at /auth/callback?code=…&state=….
  5. Server exchanges the code for an access token at POST /api/oauth/token, verifies the JWT signature against the Portal's JWKS (/.well-known/jwks.json), and sets the hermes_session_at cookie.
  6. User is redirected to / (or to the original deep-link path via the next= query parameter).

Access tokens have a 15-minute TTL. There is no refresh token in contract v1 — when the token expires, the SPA's fetch wrapper detects the 401 envelope and full-page-navigates back to /login to re-run the flow.

Cookies set​

NameLifetimeNotes
hermes_session_atToken TTL (15 min)HttpOnly, SameSite=Lax, Secure-when-HTTPS
hermes_session_pkce10 minHttpOnly; holds the PKCE verifier + provider hint during the round trip. SameSite=None + Secure over HTTPS (must survive the cross-site IDP redirect chain — Chromium drops SameSite=Lax cookies set on a 302 in a cross-site chain); SameSite=Lax on loopback HTTP
hermes_session_rtunused in v1Reserved for forward-compat; not written when refresh_token is empty

All three are Path=/. The session cookies are SameSite=Lax; the PKCE cookie is SameSite=None when set over HTTPS (see table). The Secure flag is set when the dashboard is reached over HTTPS (detected via the request URL scheme — honours X-Forwarded-Proto from an upstream TLS terminator under proxy_headers=True).

Logout​

The sidebar widget shows Logged in as <user_id…> via nous with a logout icon. Clicking it POSTs /auth/logout, which clears all dashboard-auth cookies and redirects back to /login.

Audit log​

Every login start, success, failure, and session-verify failure is written as a JSON line to $HERMES_HOME/logs/dashboard-auth.log. Sensitive fields (access_token, refresh_token, code, code_verifier, state, Authorization header) are redacted before logging.

Custom providers​

To plug a non-Nous OAuth provider (e.g. Google, GitHub, custom OIDC), create a plugin that registers a DashboardAuthProvider:

# ~/.hermes/plugins/dashboard-auth-myidp/__init__.py
from hermes_cli.dashboard_auth import DashboardAuthProvider, Session, LoginStart

class MyIdPProvider(DashboardAuthProvider):
name = "myidp"
display_name = "My Identity Provider"

def start_login(self, *, redirect_uri): ...
def complete_login(self, *, code, state, code_verifier, redirect_uri): ...
def verify_session(self, *, access_token): ...
def refresh_session(self, *, refresh_token): ...
def revoke_session(self, *, refresh_token): ...

def register(ctx):
ctx.register_dashboard_auth_provider(MyIdPProvider())

The login page lists all registered providers; multiple providers can be stacked and the user picks one at /login.

Two optional hooks cover logout for providers whose tokens are not revoked at the IdP: override revoke_access_session(access_token=...) when an access token can outlive its refresh token (logout passes the access-token cookie too), and set refresh_reuse_detection = False when a used refresh token stays valid, so the gate's 30-second refresh replay cache never serves a rotation that a logout has since revoked.

Non-interactive (bearer-token) auth​

Alongside interactive human login (session cookies + refresh), the DashboardAuthProvider ABC supports a non-interactive, service-to-service capability via supports_token = True + verify_token(token=...). When a provider opts in, an inbound Authorization: Bearer <token> is verified and, on success, a TokenPrincipal is attached to the request (request.state.token_principal) for the endpoints that provider marks token-authable — no cookie, no redirect, no refresh.

The bundled first consumer is the drain provider (plugins/dashboard_auth/drain): nous-account-service provisions a per-agent secret via HERMES_DASHBOARD_DRAIN_SECRET, and the provider verifies inbound bearer tokens against it with a constant-time compare, registering /api/gateway/drain as token-authable. It fails closed — a weak/short secret (< 256 bits) is rejected at registration and the endpoint stays disabled; it's a no-op when the env var is unset. Behavioural knobs (scope, min_secret_chars) live under dashboard.drain_auth in config.yaml.

Custom providers can implement supports_token/verify_token the same way to expose their own machine-authable endpoints.

Peer passes (/api/peer)​

A provider can also accept peer passes (supports_peer_pass = True + verify_peer_pass(token=...)): short-lived tokens minted for one agent that let another Hermes agent call this agent's API server through the dashboard, without the agent's API_SERVER_KEY.

  • /api/peer/<path> forwards to the gateway API server on loopback and adds the API server key on the way; /api/peer/p/<profile>/<path> reaches one profile, named as the API server's /p/<profile>/ prefix names it (hermes is the default profile unless a profile has that name).
  • Each path needs a permission the pass carries. agents:message covers what hermes peer uses, in the agent's Bot Chat only (the one session every peer message lands in): health, capabilities, finding and creating the Bot Chat, reading it, chat turns (plain and streaming), runs in it (start, status, events, stop). Each turn runs with the agent's tools, terminal included, so a messaging pass lets its holder have the agent carry out tasks. A messaging turn carries only its message (and, for a run, the Bot Chat's session id); choosing the model, the system prompt or the history needs agents:control. agents:control includes messaging in any session and adds the rest of the user-facing API: run approvals, clarify, steer and resolve-unknown; session listing, fork, messages, model, rename and delete; scheduled jobs, which keep running after the pass expires; models, skills and toolsets; chat completions and responses. Only agents:control may set or receive X-Hermes-Session-Key, which picks the API server's memory scope.
  • Every chat turn and run is credited to the pass holder: the turn author's id is set to the verified holder, whatever the request body says.
  • Any other path is never forwarded, including /api/cron/fire, platform event intake, RoomLink grants and /health/detailed.
  • A gateway that is asleep or restarting answers 503 with Retry-After. A request the gateway dropped after receiving it answers 502 peer_gateway_dropped with no retry hint, because it may have run.
  • Only a peer pass opens /api/peer. It is checked apart from verify_token, so a pass never authorises another provider's token routes, and a pass without the dashboard scope never opens a dashboard session.
  • /api/status reports peer_access: the peer-pass contract this agent takes (currently 1), or 0 when no registered provider takes peer passes. A pass issuer should mint passes only for agents that report it, because an agent without /api/peer reads a pass as a dashboard sign-in.
  • Control actions are written to logs/dashboard-auth.log as peer_control events with the pass holder, and jobs created through the route record the holder as peer_principal in their origin.

The bundled Nous provider verifies peer passes with the same Portal keys and audience as dashboard sign-ins; dashboard sign-ins carry agent_dashboard:access, peer passes carry only the peer permissions. A Portal token without agent_dashboard:access, including one with no scope claim at all, never opens a dashboard session.

Verifying the gate is on​

# Quick env-var path.
HERMES_DASHBOARD_OAUTH_CLIENT_ID=agent:test \
hermes dashboard --host 0.0.0.0

# Or the equivalent via config.yaml (recommended for local dev / on-prem):
#
# dashboard:
# oauth:
# client_id: agent:test
#
# then just:
hermes dashboard --host 0.0.0.0

# Hit /api/status to see the gate state:
curl -s http://127.0.0.1:9119/api/status | jq '.auth_required, .auth_providers'
# true
# ["nous"]

The dashboard's React StatusPage shows the same fields under "Web server". A sidebar AuthWidget surfaces the current identity once you've signed in.

Connecting Hermes Desktop to a remote backend​

Hermes Desktop can drive a Hermes backend running on another machine (a VPS, a home server, a Mini behind Tailscale). In the app this lives under Settings → Gateways → Remote gateway, which asks for a Remote URL and a way to Sign in. (For the desktop app itself — install, settings, chat — see the Hermes Desktop page.)

You protect the remote dashboard with one of the bundled auth providers, and the desktop app signs in against whichever one the backend advertises. For a backend reachable beyond your own machine — a VPS, a public host, anything internet-facing — the recommended provider is OAuth (Nous Portal) (register it with hermes dashboard register and sign in with Sign in with Nous Research). The bundled username/password provider is the quickest option when the backend is on a trusted LAN or reachable only over a VPN, but is not suitable for direct public-internet exposure. Binding the dashboard to a non-loopback address engages its auth gate; once signed in, Desktop reuses the session for the chat WebSocket automatically — there is no token to copy or paste.

The recipe below uses the username/password path because it's the quickest to stand up on a trusted network; for the OAuth path see Default provider: Nous Research.

On the backend (the remote machine)​

# 1. Set the dashboard login credentials in ~/.hermes/.env (secrets file, 0600).
cat >> ~/.hermes/.env <<'EOF'
HERMES_DASHBOARD_BASIC_AUTH_USERNAME=admin
HERMES_DASHBOARD_BASIC_AUTH_PASSWORD=choose-a-strong-password
EOF
# Recommended: a stable signing secret so sessions survive restarts.
# This runs openssl, so the secret is unique to you.
echo "HERMES_DASHBOARD_BASIC_AUTH_SECRET=$(openssl rand -base64 32)" >> ~/.hermes/.env
chmod 600 ~/.hermes/.env

# 2. Run the dashboard bound to a reachable address. The non-loopback bind
# engages the auth gate; the username/password provider handles login.
hermes dashboard --no-open --host 0.0.0.0 --port 9119

An earlier version of this recipe wrote the secret line inside the quoted heredoc, which stores the text $(openssl rand -base64 32) instead of a random value. If grep BASIC_AUTH_SECRET ~/.hermes/.env shows that text, replace the line with a freshly generated secret and restart the dashboard.

Prefer no plaintext at rest? Use HERMES_DASHBOARD_BASIC_AUTH_PASSWORD_HASH with a scrypt hash instead — see Username/password provider for the full surface.

If you run the dashboard as a systemd service, ~/.hermes/.env is picked up automatically when the unit has EnvironmentFile=%h/.hermes/.env, so the credentials are in the environment at boot.

warning

The dashboard reads and writes your .env (API keys, secrets) and can run agent commands. The username/password setup shown here is for a trusted network — never expose a password-protected dashboard directly to the open internet. Put it behind a VPN. Tailscale is the clean option: bind to the machine's tailscale IP (--host <tailscale-ip>) and use http://<tailscale-ip>:9119 as the Remote URL. Only devices on your tailnet can reach it. To reach a backend over the public internet, use the OAuth (Nous Portal) provider instead.

In Hermes Desktop​

Settings → Gateways → Remote gateway:

  • Remote URL — http://<backend-host>:9119 (path prefixes like /hermes are supported if you front it with a reverse proxy)
  • Sign in — the app detects the username/password gateway and shows a Sign in button; click it and enter the credentials from step 1
  • Save and reconnect — switches the desktop shell onto the remote backend

The session refreshes automatically and survives restarts when HERMES_DASHBOARD_BASIC_AUTH_SECRET is set on the backend.

Environment-variable override​

Instead of the in-app setting, you can point the desktop at a backend with an env var before launching it. When HERMES_DESKTOP_REMOTE_URL is set, it overrides the saved in-app URL (the Gateway settings panel shows an "env override" badge and disables editing); you still Sign in with your username and password from the panel.

Env varValue
HERMES_DESKTOP_REMOTE_URLhttp://<backend-host>:9119

Troubleshooting​

  • "Remote gateway incomplete" — you haven't entered a remote URL.
  • Sign-in fails with 401 / "Invalid credentials" — the username or password doesn't match the backend's HERMES_DASHBOARD_BASIC_AUTH_USERNAME / HERMES_DASHBOARD_BASIC_AUTH_PASSWORD. The backend returns the same generic error for unknown user and wrong password, so check both. Confirm the gate with curl -s http://<host>:9119/api/status | jq '.auth_required, .auth_providers' — it should report true and include "basic".
  • No "Sign in" button — it asks for a session token instead — the username/password provider isn't active (/api/status won't list "basic"). Make sure the username and a password (or password hash) are set and the dashboard process loaded them.
  • Signed out on every restart — set HERMES_DASHBOARD_BASIC_AUTH_SECRET to a stable value; otherwise the signing key is regenerated per boot.
  • Connection refused / times out — the backend bound to 127.0.0.1 (the default) instead of a reachable address, or a firewall/VPN is blocking the port. Bind to 0.0.0.0 or the tailscale IP and open the port to your trusted network.

CORS​

The web server grants CORS, and accepts browser WebSocket upgrades, only for its own origin: a loopback origin (localhost, 127.0.0.1, [::1]) on the port the server is bound to. That is http://127.0.0.1:9119 for a default hermes dashboard, the --port you chose, or the ephemeral port a Desktop backend binds. The packaged desktop app loads from file:// and is not affected.

A backend spawned by a desktop dev build also trusts that build's own renderer (the loopback HERMES_DESKTOP_DEV_SERVER it inherits, such as an hgui slot on 5174+N). No fixed dev-server port is trusted: pages served from any other local port, including Vite apps on 5173 or 5174, get no CORS headers and their WebSocket upgrades are refused, so they cannot read the session token or open the terminal.

Reached through a port forward (ssh -L 8000:localhost:9119, docker -p 8080:9119), the dashboard's own page still opens its WebSocket upgrades: an Origin that names exactly the host and port the upgrade was sent to is that page.

A reverse proxy on another loopback port that rewrites Host to the backend's address (nginx on https://localhost:8443 in front of 127.0.0.1:9119) needs its address in dashboard.public_url (webapp.public_url for the Webapp). That exact origin (scheme, host and port) is then trusted too; other loopback ports still are not. The same rules apply on a 0.0.0.0 or :: bind: sign-in cookies are SameSite=Lax, and browsers send them from a page on another port of the same host.

A desktop dev build passes the variable to the backends it starts over SSH, and replaces a backend it started earlier for a different renderer URL. The sockets Desktop opens to a gateway on the same machine are one-use, ticketed native dials that carry no Origin, so a dev build can use a local gateway that is already running without restarting it, and it does not pass the variable to a gateway it starts (that gateway outlives the dev session). Only a connection that presents the dev renderer's Origin to a backend Desktop did not start (for example a remote backend you start yourself and reach directly) needs that backend started with HERMES_DESKTOP_DEV_SERVER set to the build's renderer URL.

Development​

If you're contributing to the web dashboard frontend:

# Terminal 1: start the backend API
hermes dashboard --no-open

# Terminal 2: start the Vite dev server with HMR
cd web/
pnpm install
pnpm run dev

The Vite dev server at http://localhost:5173 proxies /api requests, WebSockets included, to the FastAPI backend at http://127.0.0.1:9119 (set HERMES_DASHBOARD_URL to use another backend). It reads the session token from the backend server-side. It forwards WebSocket upgrades with their Host and Origin unchanged, so the page's Origin names the host and port it dialled and the backend admits it as same-origin without trusting port 5173. This holds when HERMES_DASHBOARD_URL points at a port forward to the backend (for example http://127.0.0.1:8000 through ssh -L 8000:localhost:9119). Vite's own CORS is turned off, so other local pages cannot read the token from the dev server either.

The frontend is built with React 19, TypeScript, Tailwind CSS v4, and shadcn/ui-style components. Production builds output to hermes_cli/web_dist/ which the FastAPI server serves as a static SPA.

The build is CPU- and memory-intensive (Vite 8's Rust-native Rolldown bundler parallelizes across cores), so it is resource-bounded by default: the V8 heap is capped (--max-old-space-size, sized from the container's memory limit) and the native bundler's thread pool is limited to half the available cores (RAYON_NUM_THREADS), preventing the 200%+ CPU spikes and OOMs small VPS hosts otherwise hit during a build (#63338). Override with HERMES_WEB_BUILD_MAX_OLD_SPACE_SIZE / HERMES_WEB_BUILD_THREADS; set HERMES_WEB_BUILD_LIGHT=1 to tighten the caps (1 thread, 1 GB heap) when the host cannot spare full CPU.

Automatic Build on Update​

When you run hermes update, the web frontend is automatically rebuilt with the Node and pnpm Hermes provisions. This keeps the dashboard in sync with code updates. If the update cannot provision them (for example with lazy installs disabled), it skips the frontend build and hermes dashboard will build it on first launch.

Themes & plugins​

The dashboard ships with eight built-in themes and can be extended with user-defined themes, plugin tabs, and backend API routes — all drop-in, no repo clone needed.

Switch themes live from the header bar — click the palette icon next to the language switcher. Selection persists to config.yaml under dashboard.theme and is restored on page load.

Change the font independently from the same picker — the Font section below the theme list overrides the UI font of whatever theme is active. The choice persists across theme switches (config.yaml → dashboard.font); pick Theme default to clear it and return to the active theme's own font.

Built-in themes:

ThemeCharacter
Hermes Teal (default)Dark teal + cream, system fonts, comfortable spacing
Hermes Teal (Large) (default-large)Same as default with 18px text and roomier spacing
Nous Blue (nous-blue)Nous-branded blue accents with airy spacing
Midnight (midnight)Deep blue-violet, Inter + JetBrains Mono
Ember (ember)Warm crimson + bronze, Spectral serif + IBM Plex Mono
Mono (mono)Grayscale, IBM Plex, compact
Cyberpunk (cyberpunk)Neon green on black, Share Tech Mono
Rosé (rose)Pink + ivory, Fraunces serif, spacious

To build your own theme, add a plugin tab, inject into shell slots, or expose plugin-specific REST endpoints, see Extending the Dashboard — the complete guide covers:

  • Theme YAML schema — palette, typography, layout, assets, componentStyles, colorOverrides, customCSS
  • Layout variants — standard, cockpit, tiled
  • Plugin manifest, SDK, shell slots, page-scoped slots (inject widgets into built-in pages without overriding them), backend FastAPI routes
  • A full combined theme-plus-plugin walkthrough (Strike Freedom cockpit demo)
  • Discovery, reload, and troubleshooting