Files
Athena-Deck/integrations/hermes-unraid/webui/README.md
T

128 lines
7.4 KiB
Markdown

# nesquena Hermes-WebUI on Unraid — 2026-10-16
## Deployment and provenance
User requested a separate graphical Hermes WebUI, preferring Community Apps,
otherwise the upstream published image and a proper Unraid XML template.
Community Apps lists Hermes-WebUI but marks it deprecated. The maintainer moved
its template to `templates/deprecated/hermes-webui.xml`, citing source-volume
complexity. The local template is adapted from that template; it does not depend
on the obsolete named-source-volume scheme.
- Upstream: https://github.com/nesquena/hermes-webui
- Source inspected: `757c5484ddf42f8add126262fcbc3406ae151861` (2026-10-16).
- Published image: `ghcr.io/nesquena/hermes-webui:latest`.
- Pulled digest: `sha256:33262f767159f0c0257b9e84b0eb5d8335578c22511930cc8389051ae860843b`.
- Container: `Hermes-WebUI`; standard `bridge` network.
- LAN URL: http://192.168.1.2:8787/
- User template: `/boot/config/plugins/dockerMan/templates-user/my-Hermes-WebUI.xml`.
- Template source: [my-Hermes-WebUI.xml](my-Hermes-WebUI.xml).
- Upstream CA template: https://github.com/mmartial/unraid-templates/blob/main/templates/deprecated/hermes-webui.xml
- CA listing: https://ca.unraid.net/apps/hermes-webui-09cr7mf0v6vxrf
Configured official gateway-backed chat with Runs API, pointing to the existing
Hermes-Agent at `http://192.168.1.2:8642`. No source patches, local image build,
new agent gateway, production-home mount, Docker socket, GPU access or privileged
mode. The WebUI has a separate minimal configuration, seeded from the existing
Athena provider/model catalog. Its browser model list shows the 12 Athena model
IDs. Existing Hermes-Agent config, skills, memory, sessions, services and OpenWebUI
were not modified or restarted. Gateway execution uses the existing agent.
The initial reduced-functionality deployment omitted local Hermes source. This
was insufficient: the Skills page raised `ModuleNotFoundError: No module named
'agent'` from `_skills_list_from_dir`. The gateway-only chat test did not cover
the management panels. Do not repeat that configuration.
Correction: downloaded the exact public Hermes source revision
`d923a5eb487a17c0a68801bba9ef0f56c81040a8` and installed its official `[all]`
dependencies plus WebUI requirements in a persistent Python 3.14.8 environment.
`app/python-runtime` holds managed Python, `app/runtime-venv` the venv, and
`app/venv` points to it. `UV_PYTHON=3.14` and
`UV_PYTHON_INSTALL_DIR=/app/python-runtime` make clean entrypoint rebuilds use a
compatible persistent interpreter. Public source is mounted read-only from
`agent-source` to `/home/hermeswebui/.hermes/hermes-agent`; editable package
installation uses the entrypoint-compatible writable `/app/hermes-agent-src`.
Existing production skills are mounted **read-only** at `/opt/athena-skills`.
The isolated WebUI `home/skills` symlink points there. Placing the mount outside
the home traversal avoids the entrypoint recursively chowning production skill
files. This enables display, not creating/editing/deleting production skills.
It does not make all management panels mirrors of the production Hermes home.
Only the new WebUI container was recreated to activate these mounts. The running
Hermes-Agent and its gateway were not restarted or reconfigured.
## Persistence and credentials
Root: `/mnt/nvme-storage/appdata/Hermes-WebUI`:
- `home` → `/home/hermeswebui/.hermes`: isolated config and `webui` session state.
- `workspace` → `/workspace`: own initially empty local workspace.
- `app` → `/app`: entrypoint-managed application copy/venv, reproducible runtime.
- `cache` → `/uv_cache`: dependency cache, reconstructable.
- `private/runtime.env`: root-owned 0600, private directory 0700; passed through
Docker `--env-file`. Holds the existing Hermes API key, existing Athena provider
key and the existing Hermes dashboard password (copied internally, never
printed). No credential values in this repository or template.
- `agent-source`: public source dependency, reproducible from the exact revision
above. Existing `/mnt/nvme-storage/appdata/Hermes-Agent/skills` remains owned
and backed up by the production agent; the WebUI mounts it read-only.
Login uses the existing Hermes dashboard password; no username is requested by
this application's login form. Root entrypoint aligns UID/GID to 99:100 and drops
to the application user. The container is limited to 2 CPUs / 2 GiB RAM, no swap
above its memory limit, and restarts unless stopped. No public reverse proxy was
configured; binding is host LAN IP 192.168.1.2 on port 8787.
Important separation: the WebUI file panel browses its local `/workspace`;
Hermes tools retain the existing gateway's configured execution backend. These
are not established as the same filesystem. Generated remote local-file image
paths may require supported gateway artifact transport; do not claim that
image delivery works before a real test. No share mounts were added.
## Verified
- HTTP `/health` returned 200.
- After the Skills correction, browser reload and Skills navigation succeeded;
existing production skill metadata (including GigaBlue/Home Assistant) appeared
instead of Internal Server Error. Skills are read-only in this UI.
- Authenticated browser login worked.
- Graphical chat and Athena model menu rendered.
- Synthetic browser session `96cffa8464d7`: instructed one terminal `printf`
call; live tool output contained `HERMES_WEBUI_TOOL_OK`, exit 0; final answer
confirmed the result. The UI displayed the tool activity under Processed.
- From the new WebUI container, authenticated existing gateway
`/health/detailed` returned HTTP 200.
- Runtime explicitly reports `HERMES_WEBUI_CHAT_BACKEND=gateway` and
`HERMES_WEBUI_GATEWAY_USE_RUNS_API=true`.
Not verified: generated image from Athena, image attachments/vision, approvals,
clarifications, model-switch inference for every profile, memory management,
skill editing or workspace equivalence. Installing/running is not an end-to-end proof of
all advertised upstream features.
## Backup, restore, update, removal
Include `home`, `workspace`, `private/runtime.env` and the installed user-template
XML in the private encrypted Unraid backup. Do not put appdata, passwords or keys
in Git. `app` and `cache` can be recreated by the published image's standard
entrypoint; retain enough disk/time/network access for dependency setup. For a
reproducible restore use the recorded image digest rather than assuming today's
`latest` is identical. Restore ownership (99:100 for application paths, root-only
private env), verify the gateway endpoint/key, then install from the user XML.
The template requires that private env file to exist before startup. Check health,
login and an actual tool call again; no full restore has been performed here.
This is an optional Unraid client, not a dependency of native Athena Deck. A fresh
native Athena install does not require this container. Its restore belongs to
Unraid's Docker/appdata restoration, separate from Athena model/runtime restore.
For updates, stop only this WebUI when idle and update its published image through
Unraid; do not restart Hermes-Agent incidentally. The persistent `/app` directory
is refreshed by the upstream entrypoint. Removing this UI requires only its own
container, template and own appdata; never delete Hermes-Agent's production home.
Official Unraid template storage reference:
https://docs.unraid.net/unraid-os/manual/applications/
Gateway mode documentation:
https://github.com/nesquena/hermes-webui/blob/master/docs/advanced-chat-setup.md