123 lines
6.4 KiB
Markdown
123 lines
6.4 KiB
Markdown
# Official Hermes Agent Desktop container — 18 October 2026
|
||
|
||
User requested stopping the retained standalone `Hermes-Agent` and starting a
|
||
separate official desktop-enabled instance for inspection. This is the Hermes
|
||
backend with native Bot Screen, not another Electron app inside Docker and not
|
||
the removed third-party Hermes WebUI.
|
||
|
||
## Layout
|
||
|
||
- Container: `Hermes-Agent-Desktop`.
|
||
- Image: `nousresearch/hermes-agent:latest-desktop` (official published image).
|
||
- Stock entrypoint and `gateway run`; upstream s6 manages gateway/dashboard.
|
||
- Own home: `/mnt/nvme-storage/appdata/Hermes-Agent-Desktop` → `/opt/data`.
|
||
- Own workspace: `/opt/data/workspace`, persisted inside that home.
|
||
- Native Desktop/dashboard: host 9120 → container 9119.
|
||
- OpenAI-compatible API: host 8643 → container 8642.
|
||
- Restart policy: `unless-stopped`; CPU limit 2; RAM 4 GiB without swap;
|
||
shared memory 1 GiB; runtime UID/GID 99:100.
|
||
- No privileged mode, Docker socket, GPU, broad appdata mount, Webtop mount or
|
||
shared source/runtime volume. No custom startup script or image build.
|
||
|
||
Regular Unraid template: [my-Hermes-Agent-Desktop.xml](my-Hermes-Agent-Desktop.xml),
|
||
also installed under `/boot/config/plugins/dockerMan/templates-user/`.
|
||
It references the private `container.env` by path; it contains no credentials.
|
||
|
||
## One-time initialization
|
||
|
||
Only the old instance's `config.yaml` and `.env` were copied into the new private
|
||
home. A temporary, network-disabled initialization container read the old home
|
||
read-only and was removed after copying. The running instance has no old-home
|
||
mount. Old conversations, state database, scheduled jobs, memories and installed
|
||
skills were not migrated for this isolated trial.
|
||
|
||
The existing dashboard username/password were transferred internally without
|
||
printing their values. The new instance has fresh dashboard-session and gateway
|
||
API secrets in its private `container.env`. This file is mode 0600, the home 0700;
|
||
neither belongs in Git. Do not print `docker inspect` environment values or
|
||
private configuration contents while diagnosing it.
|
||
|
||
Changes apply only to the copied configuration:
|
||
|
||
- `terminal.backend=local`, `terminal.cwd=/opt/data/workspace`.
|
||
- Old terminal SSH fields removed.
|
||
- `bot_desktop.placement=gateway`; screen autostart initially off.
|
||
- `browser.headed=true`.
|
||
- The old `webtop-desktop` MCP removed from this copy; other 19 MCP entries kept.
|
||
- Existing Athena model and local STT/TTS settings retained.
|
||
- Dashboard public URL points to `http://192.168.1.2:9120`.
|
||
|
||
Here `local` means inside this container, not on the Unraid host. The retained
|
||
old `Hermes-Agent` is stopped; `Hermes-Workspace` and its files are not removed.
|
||
|
||
## Connecting
|
||
|
||
Native audio separation is now installed in this instance's own persistent
|
||
home: [setup, usage and verification](../audio/README.md). It uses Athena's
|
||
existing separator service without another container or MCP.
|
||
|
||
In the existing Hermes Desktop app, add a Remote Gateway using
|
||
`http://192.168.1.2:9120` and sign in normally using the existing Hermes login.
|
||
Open this connection's bot and its Screen pane. The direct address is for the
|
||
trusted LAN; no reverse proxy or public DNS route was changed. The browser URL
|
||
opens the official administration dashboard, not the Electron chat renderer.
|
||
|
||
The old remote connection on port 9119 stays unavailable while its container is
|
||
stopped; it is not silently redirected to the trial instance.
|
||
|
||
## Update / recovery
|
||
|
||
Use the saved Unraid template to pull/recreate the official image while retaining
|
||
the own `/opt/data` mount and the private `container.env`. This keeps runtime
|
||
packages in the official image, not in a writable source mount or a package
|
||
installation performed at every boot. Record the accepted image digest when
|
||
updating if exact reproduction is needed.
|
||
|
||
Back up the entire private home, including `container.env`, configuration,
|
||
credentials, workspace and native browser profile, encrypted through the existing
|
||
backup process; restore to the same mapped ownership. Public XML and this recipe
|
||
are insufficient to reconstruct private data. A fresh-host encrypted restore is
|
||
not established by a container restart test.
|
||
|
||
To return to the old instance: stop `Hermes-Agent-Desktop`, start `Hermes-Agent`
|
||
and reconnect to its previous address. No old runtime or data were replaced.
|
||
|
||
Sources:
|
||
- https://hermes-agent.nousresearch.com/docs/user-guide/features/bot-screen
|
||
- https://hermes-agent.nousresearch.com/docs/user-guide/docker
|
||
- https://docs.unraid.net/unraid-os/using-unraid-to/run-docker-containers/managing-and-customizing-containers/
|
||
|
||
Live acceptance evidence is recorded separately; setup instructions alone are
|
||
not proof of a working Screen, browser, microphone or LLM session.
|
||
|
||
## Acceptance observations
|
||
|
||
[Sanitized machine-readable report](acceptance-2026-10-18.json).
|
||
|
||
The stock native CLI started a 1440×900 screen on DISPLAY `:20`. The browser
|
||
launcher generated by Hermes opened its bundled headed Chromium on `about:blank`;
|
||
an actual screenshot was inspected. No external page or LLM request was needed.
|
||
The existing screen-control bridge still needs acceptance from the user's
|
||
authenticated Desktop app; no password was submitted by the operator to test it.
|
||
|
||
A Docker restart preserved the own configuration, workspace test marker and
|
||
native browser profile. The screen was reopened with the stock CLI afterward;
|
||
autostart remains off, so a bare container restart does not itself open a desktop.
|
||
The native API eventually returned 200, gateway running, overall `ok`, no active
|
||
agents; the protected voice route returned 401 without authentication. Initial
|
||
readiness was delayed, so a running container is not equivalent to a ready API.
|
||
|
||
During that restart Hermes' lifecycle ledger warned that the previous gateway
|
||
life ended uncleanly. Persistence passed, but this trial does **not** certify
|
||
graceful shutdown or recovery of a running agent task. No live job was running
|
||
in the new instance. This observation is retained rather than represented as a
|
||
fully clean shutdown test.
|
||
|
||
The copied old `.env` initially took precedence over the new container's gateway
|
||
API secret. Only the new instance's private settings were synchronized with its
|
||
fresh secret, followed by a regular gateway restart. This does not alter Athena
|
||
credentials or the retained original instance.
|
||
Final native API check: HTTP200, gateway `running`, overall `ok`. The gateway's
|
||
authenticated `/v1/models` returned HTTP200 and 13 model entries with its own
|
||
new secret. The Screen remained running across this gateway-only restart.
|