fix: align Hermes WebUI with documented shared home and source layout

This commit is contained in:
Mikei386 committed 2026-10-16 22:18:11 +02:00
1 parent eae4d77856
commit 9c429d5122
2 files changed
+131 -115

No files matched your search

+124 -107
View File
@@ -1,127 +1,144 @@
# nesquena Hermes-WebUI on Unraid — 2026-10-16
# Hermes-WebUI on Unraid — verified layout, 2026-10-16
## Deployment and provenance
## Provenance and supported architecture
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.
This is the community project **nesquena/hermes-webui**, not the Nous Research
terminal dashboard. Its published image is used without application patches or
local image builds. Community Apps currently marks its template deprecated;
installation therefore uses the upstream image and the supplied Unraid XML.
- 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
- Image: `ghcr.io/nesquena/hermes-webui:latest`
- Digest: `sha256:33262f767159f0c0257b9e84b0eb5d8335578c22511930cc8389051ae860843b`
- Reviewed WebUI revision: `757c5484ddf42f8add126262fcbc3406ae151861`
- Existing Agent image: `nousresearch/hermes-agent:latest`, image ID
`sha256:02e7aa0e84123fa0e9b22686e7a2bfb7d85fd59821d4d28812a3e07f3061cf41`
- URL: http://192.168.1.2:8787/
- Container: `Hermes-WebUI`, standard bridge network, published on LAN IP only.
- Unraid template: `/boot/config/plugins/dockerMan/templates-user/my-Hermes-WebUI.xml`
- Sanitized template: [my-Hermes-WebUI.xml](my-Hermes-WebUI.xml)
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 layout follows the project's two-container instructions: shared Hermes home,
shared Agent source, matching UID/GID. The explicitly documented gateway chat
backend is enabled so tool execution stays in the existing Hermes Gateway, with
its existing remote terminal backend. Runs API is enabled for supported approval
cards and durable runs. No additional gateway, proxy, application patch, Docker
socket, GPU mapping or privileged mode is involved.
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.
Manufacturer references:
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`.
- https://github.com/nesquena/hermes-webui/blob/master/docs/docker.md
- https://github.com/nesquena/hermes-webui/blob/master/docker-compose.two-container.yml
- https://github.com/nesquena/hermes-webui/blob/master/docs/advanced-chat-setup.md
- https://github.com/nesquena/hermes-webui/blob/master/docs/remote-workspaces.md
- https://hermes-agent.nousresearch.com/docs/user-guide/docker/
- https://github.com/mmartial/unraid-templates/blob/main/templates/deprecated/hermes-webui.xml
- https://docs.unraid.net/unraid-os/manual/applications/
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.
## Persistent mounts and startup
## Persistence and credentials
| Host storage | Agent mount | WebUI mount |
| --- | --- | --- |
| `/mnt/nvme-storage/appdata/Hermes-Agent` | `/opt/data` RW, existing home | `/home/hermeswebui/.hermes` RW |
| Docker volume `hermes-agent-source` | `/opt/hermes` RW | `/home/hermeswebui/.hermes/hermes-agent` RO |
| `/mnt/nvme-storage/appdata/Hermes-WebUI/app` | — | `/app` RW |
| `/mnt/nvme-storage/appdata/Hermes-WebUI/cache` | — | `/uv_cache` RW |
| `/mnt/nvme-storage/appdata/Hermes-WebUI/workspace` | — | `/workspace` RW |
| `/mnt/nvme-storage/appdata/Hermes-WebUI/home/webui` | — | `/webui-state` RW |
Root: `/mnt/nvme-storage/appdata/Hermes-WebUI`:
`HERMES_WEBUI_STATE_DIR=/webui-state` is a supported override retaining the
already-created WebUI conversations/preferences. It is separate from the shared
Agent configuration, skills, memory and cron data. Both runtimes use UID 99/GID
100. The shared source volume was populated from the exact existing Agent image;
selected source hashes matched its former container filesystem.
- `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.
The unmodified WebUI entrypoint copies the read-only source into
`/app/hermes-agent-src`, installs its dependencies and creates `/app/venv` as a
real directory. `UV_PYTHON=3.14` selects the version compatible with this Agent
source; managed Python is persisted under `/app/python-runtime`. The source's
`tools/.install.lock` needed ownership 99:100 so the documented non-root source
copy could read it. No source code was changed.
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.
The private env file is
`/mnt/nvme-storage/appdata/Hermes-WebUI/private/runtime.env` (root 0600, directory
0700). Existing dashboard password, Gateway key and Athena provider key were
transferred internally, never printed or committed. Login uses that existing
password, without username. Runtime receives the documented gateway settings:
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.
- `HERMES_WEBUI_CHAT_BACKEND=gateway`
- `HERMES_WEBUI_GATEWAY_BASE_URL=http://192.168.1.2:8642`
- `HERMES_WEBUI_GATEWAY_USE_RUNS_API=true`
- `HERMES_API_URL=http://192.168.1.2:8642`
## Verified
The UI currently has a 2-CPU/2-GiB limit and restart-unless-stopped. These are
local resource settings, not upstream requirements.
- 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`.
## Correction and verification
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.
The initial isolated-home/gateway-only installation was incomplete: chat worked
but Skills raised a missing `agent` module error. The intermediate read-only
skills mount and manually linked virtualenv were also superseded. Do not restore
those arrangements. The live mounts now use the shared-home/source layout above.
Inactive historical installation files are not referenced by the live template.
## Backup, restore, update, removal
Agent recreation was briefly unsuccessful during this correction. It was
immediately restored from its saved regular Unraid template, with the source
volume added. API reachability and all 13 existing model entries were verified
again. This correction did require an Agent restart.
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.
Verified after the final correction:
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.
- WebUI container healthy; Agent and Workspace running.
- `/health` HTTP 200 via published LAN address.
- Authenticated browser session retained.
- Skills lists existing production skills without Internal Server Error.
- Memory, Tasks, Agent profiles and Plugins panels open without server errors.
- Existing synthetic conversation survives the changed mounts and restart.
- Browser terminal test returned `HERMES_OFFICIAL_LAYOUT_OK`. A second test
wrote the known marker `HERMES_VERIFY_2219` to an own temporary file in the
SSH worker. Independent `docker exec Hermes-Workspace` verification confirmed
its exact contents; the temporary file was then removed. This proves actual
remote tool execution rather than relying on the model's success statement.
- The browser shows a generic command activity card; full command stdout was
not exposed by that card in this acceptance test. Do not claim full tool-detail
parity in gateway mode.
- `/app/venv` is a directory, not the former custom symlink.
- Selected WebUI application files hash-identical to the image's originals.
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.
A panel opening is not proof that every edit/action in that panel works. No real
skill or memory was modified merely to test it. No full backup restore was run.
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
## Explicit upstream limits
Gateway mode is documented, but the project explicitly warns that attachments,
cancellation, approvals and clarification prompts may not behave identically to
all messaging surfaces. Do not claim complete feature parity from a chat test.
Image generation/delivery, vision, voice, every model's inference and destructive
management actions have not been comprehensively accepted here.
The WebUI's local file panel currently browses `/workspace`. The existing Gateway
terminal operates in its SSH worker. These are different filesystems. The
upstream remote-workspace contract preserves remote `terminal.cwd` paths; it
does not establish that the local file browser mirrors an SSH filesystem. No
invented synchronization, share mount or filesystem-permission workaround was
added. Treat this as an explicit limitation until an upstream-supported end-to-end
remote file workflow is verified.
## Backup, restore and updates
Include the existing Hermes-Agent home, WebUI `home/webui`, own workspace,
private env file and both installed Unraid user templates in private backups.
The Agent source volume must be restored/repopulated from the recorded matching
Agent image, not arbitrary current source. The source volume shadows `/opt/hermes`;
an Agent image update alone does not refresh it. Follow upstream source-volume
refresh instructions when upgrading the Agent; do not silently keep stale code.
WebUI `app`/cache are reconstructable through its normal entrypoint. Persisted
managed Python avoids an interpreter disappearing on container recreation.
Restore ownership, private env permissions, home/source mounts and gateway
settings before starting. Verify health, login, Skills and an actual tool call.
No secrets, appdata, model weights or private templates belong in Git.
This remains an optional Unraid client. Its backups are part of Unraid appdata
restoration, separate from native Athena Deck model/runtime restore. Removing
this UI must never delete the shared Hermes-Agent home or source still used by
the Agent.
@@ -14,24 +14,24 @@
<Shell>bash</Shell>
<Privileged>false</Privileged>
<ExtraParams>--env-file=/mnt/nvme-storage/appdata/Hermes-WebUI/private/runtime.env --cpus=2 --memory=2g --memory-swap=2g --restart=unless-stopped</ExtraParams>
<Requires>Existing Hermes-Agent API on 192.168.1.2:8642. Isolated WebUI state; official gateway backend with Runs API.</Requires>
<Requires>Existing Hermes-Agent; shared Hermes home and hermes-agent-source volume according to upstream Docker layout. Gateway chat with Runs API.</Requires>
<PostArgs />
<Overview>Grafische Hermes-WebUI von nesquena. Verbindet sich mit dem vorhandenen Hermes-Gateway. Eigene persistente WebUI-Daten; keine bestehenden Hermes-Dateien eingebunden. Kennwort entspricht dem bestehenden Hermes-Dashboard-Kennwort.</Overview>
<Overview>Grafische Hermes-WebUI nach der Zwei-Container-Anleitung des Projekts: gemeinsames Hermes-Home und gemeinsamer Quellcode, Chat über bestehenden Gateway. WebUI-Sitzungen bleiben erhalten.</Overview>
<Readme>https://github.com/nesquena/hermes-webui</Readme>
<Date>2026-10-16</Date>
<Changes>Local adaptation of deprecated mmartial template for official gateway-backed chat; private env file contains credentials, not this XML.</Changes>
<Changes>2026-10-16: Replaced trial configuration/skill symlink with documented shared-home/shared-source layout; official image entrypoint manages Python environment. No source patches.</Changes>
<CPUset />
<DonateText />
<DonateLink />
<Config Name="WebUI Port" Target="8787" Default="8787" Mode="tcp" Description="WebUI Port" Type="Port" Display="always" Required="true" Mask="false">8787</Config>
<Config Name="Appdata home" Target="/home/hermeswebui/.hermes" Default="/mnt/nvme-storage/appdata/Hermes-WebUI/home" Mode="rw" Description="Appdata home" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-WebUI/home</Config>
<Config Name="Shared Hermes home" Target="/home/hermeswebui/.hermes" Default="/mnt/nvme-storage/appdata/Hermes-Agent" Mode="rw" Description="Appdata home" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent</Config>
<Config Name="Persistent application runtime" Target="/app" Default="/mnt/nvme-storage/appdata/Hermes-WebUI/app" Mode="rw" Description="Persistent application runtime" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-WebUI/app</Config>
<Config Name="Own workspace" Target="/workspace" Default="/mnt/nvme-storage/appdata/Hermes-WebUI/workspace" Mode="rw" Description="Own workspace" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-WebUI/workspace</Config>
<Config Name="Dependency cache" Target="/uv_cache" Default="/mnt/nvme-storage/appdata/Hermes-WebUI/cache" Mode="rw" Description="Dependency cache" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-WebUI/cache</Config>
<Config Name="WANTED_UID" Target="WANTED_UID" Default="99" Mode="" Description="WANTED_UID" Type="Variable" Display="advanced" Required="true" Mask="false">99</Config>
<Config Name="WANTED_GID" Target="WANTED_GID" Default="100" Mode="" Description="WANTED_GID" Type="Variable" Display="advanced" Required="true" Mask="false">100</Config>
<Config Name="HERMES_HOME" Target="HERMES_HOME" Default="/home/hermeswebui/.hermes" Mode="" Description="HERMES_HOME" Type="Variable" Display="advanced" Required="true" Mask="false">/home/hermeswebui/.hermes</Config>
<Config Name="HERMES_WEBUI_STATE_DIR" Target="HERMES_WEBUI_STATE_DIR" Default="/home/hermeswebui/.hermes/webui" Mode="" Description="HERMES_WEBUI_STATE_DIR" Type="Variable" Display="advanced" Required="true" Mask="false">/home/hermeswebui/.hermes/webui</Config>
<Config Name="HERMES_WEBUI_STATE_DIR" Target="HERMES_WEBUI_STATE_DIR" Default="/webui-state" Mode="" Description="HERMES_WEBUI_STATE_DIR" Type="Variable" Display="advanced" Required="true" Mask="false">/webui-state</Config>
<Config Name="HERMES_WEBUI_DEFAULT_WORKSPACE" Target="HERMES_WEBUI_DEFAULT_WORKSPACE" Default="/workspace" Mode="" Description="HERMES_WEBUI_DEFAULT_WORKSPACE" Type="Variable" Display="advanced" Required="true" Mask="false">/workspace</Config>
<Config Name="HERMES_WEBUI_HOST" Target="HERMES_WEBUI_HOST" Default="0.0.0.0" Mode="" Description="HERMES_WEBUI_HOST" Type="Variable" Display="advanced" Required="true" Mask="false">0.0.0.0</Config>
<Config Name="HERMES_WEBUI_PORT" Target="HERMES_WEBUI_PORT" Default="8787" Mode="" Description="HERMES_WEBUI_PORT" Type="Variable" Display="advanced" Required="true" Mask="false">8787</Config>
@@ -39,10 +39,9 @@
<Config Name="HERMES_WEBUI_GATEWAY_BASE_URL" Target="HERMES_WEBUI_GATEWAY_BASE_URL" Default="http://192.168.1.2:8642" Mode="" Description="HERMES_WEBUI_GATEWAY_BASE_URL" Type="Variable" Display="advanced" Required="true" Mask="false">http://192.168.1.2:8642</Config>
<Config Name="HERMES_API_URL" Target="HERMES_API_URL" Default="http://192.168.1.2:8642" Mode="" Description="HERMES_API_URL" Type="Variable" Display="advanced" Required="true" Mask="false">http://192.168.1.2:8642</Config>
<Config Name="HERMES_WEBUI_GATEWAY_USE_RUNS_API" Target="HERMES_WEBUI_GATEWAY_USE_RUNS_API" Default="true" Mode="" Description="HERMES_WEBUI_GATEWAY_USE_RUNS_API" Type="Variable" Display="advanced" Required="true" Mask="false">true</Config>
<Config Name="HERMES_WEBUI_SKIP_ONBOARDING" Target="HERMES_WEBUI_SKIP_ONBOARDING" Default="1" Mode="" Description="HERMES_WEBUI_SKIP_ONBOARDING" Type="Variable" Display="advanced" Required="true" Mask="false">1</Config>
<Config Name="TZ" Target="TZ" Default="Europe/Berlin" Mode="" Description="TZ" Type="Variable" Display="advanced" Required="true" Mask="false">Europe/Berlin</Config>
<Config Name="Hermes public source" Target="/home/hermeswebui/.hermes/hermes-agent" Default="/mnt/nvme-storage/appdata/Hermes-WebUI/agent-source" Mode="ro" Description="Hermes public source" Type="Path" Display="advanced" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-WebUI/agent-source</Config>
<Config Name="Existing Hermes skills (read only)" Target="/opt/athena-skills" Default="/mnt/nvme-storage/appdata/Hermes-Agent/skills" Mode="ro" Description="Existing Hermes skills (read only)" Type="Path" Display="advanced" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent/skills</Config>
<Config Name="Shared Hermes source volume" Target="/home/hermeswebui/.hermes/hermes-agent" Default="hermes-agent-source" Mode="ro" Description="Hermes public source" Type="Path" Display="advanced" Required="true" Mask="false">hermes-agent-source</Config>
<Config Name="Compatible Python" Target="UV_PYTHON" Default="3.14" Mode="" Description="Compatible Python" Type="Variable" Display="advanced" Required="true" Mask="false">3.14</Config>
<Config Name="Persistent Python installs" Target="UV_PYTHON_INSTALL_DIR" Default="/app/python-runtime" Mode="" Description="Keep managed Python in persistent application directory" Type="Variable" Display="advanced" Required="true" Mask="false">/app/python-runtime</Config>
<Config Name="WebUI sessions and preferences" Target="/webui-state" Default="/mnt/nvme-storage/appdata/Hermes-WebUI/home/webui" Mode="rw" Description="Supported HERMES_WEBUI_STATE_DIR, retains existing WebUI conversations" Type="Path" Display="advanced" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-WebUI/home/webui</Config>
</Container>