Quick answer#
To connect Hermes Desktop to a remote Hermes Agent, open Settings → Gateways → Add connection and choose the connection you actually need. SSH uses your SSH key, opens the tunnel and starts the remote dashboard for you. Remote gateway attaches to an already-running hermes serve backend, or hermes dashboard when you also need the browser UI. Save the named connection, run Test, then select its gateway and profile in Sessions and complete one harmless prompt.
A browser-only SSH tunnel is a third option: it opens the remote Web UI in your browser without configuring Desktop at all. Self-hosted Web UI includes real TUI-backed browser Chat; choosing Desktop is an interface preference, not a prerequisite for chatting.
This guide follows the official multi-connection reference and Dashboard reference, checked November 7, 2026. The setup steps below are documented procedures and acceptance checks, not a live VPS or authentication benchmark we ran. Older Desktop builds can show different connection controls.
Choose a connection before starting another backend#
- Desktop over SSH: choose this when you already have authorized SSH-key access and want Desktop to manage the tunnel. You do not need to publish port 9119 or manually keep a second tunnel open for this connection.
- Desktop Remote gateway: choose this when an administrator already operates a reachable HTTP(S) backend. You need its exact URL and supported authentication. Desktop does not start that remote service for you.
- Browser over SSH: choose this when you only need the Hermes Web UI. Start the dashboard on the server and forward its loopback port to your laptop. No Desktop connection entry is involved.
All three leave the agent's files, credentials, memory and sessions on the backend. A connection is not a migration. Start with the first useful setup workflow if the remote installation itself has not yet worked. Keep any messaging gateway separate: opening Desktop or a dashboard does not prove a Telegram or Discord reply.
Option 1: add the remote machine as an SSH connection#
The current Desktop registry has a dedicated SSH kind. That is more specific than entering a loopback URL in the Remote gateway field.
- Open Settings → Gateways, scroll to Registered gateways, and choose Add connection → SSH.
- Give it a unique device name, such as
Homelab. Names are case-insensitive; two different servers should not both be calleddefault. - Enter SSH host in
user@host:22form, using your authorized account and actual SSH port. Desktop uses your SSH key and adopts a dashboard token over the tunnel. Do not paste provider API keys into this field. - Leave Hermes path empty for auto-detection. If Test says “Hermes is not installed on the remote host” but Hermes works in an interactive SSH shell, enter the full path to the remote
hermesexecutable, for example/opt/hermes/bin/hermesonly if that is your actual path. A non-interactive shell can have a differentPATH. - Save the connection and click Test. Wait for Reachable, then select that gateway and the intended profile in Sessions.
The official adding-a-connection steps document these fields. A passing current registry Test covers HTTP and WebSocket reachability; it does not exercise every model, tool permission or messaging destination.
If SSH itself fails, fix the authorized account, key, host or port before changing dashboard credentials. If discovery fails, inspect the configured executable path before reinstalling Hermes. On a remote zsh login shell, the official guide notes that a hung probe's grandchildren may survive its watchdog; do not assume every timed-out attempt cleaned up all child processes or keep launching duplicates.
Option 2: connect to an already-running Remote gateway#
Use this route for a backend whose service and authentication are already maintained by its owner. The headless backend is normally hermes serve on port 9119. hermes dashboard provides the same backend role plus browser administration. The separate OpenAI-compatible API server on 8642 is not the Desktop Remote gateway endpoint.
Verify the server and exposure boundary#
On the remote host, identify the running executable, account, install method and profile before starting anything new. For the dashboard, hermes dashboard --status helps identify an existing owner. Current docs describe exit 78 when a host-owning backend cannot satisfy a new launch's requested host or port. A free second port is not a general repair. Reuse the intended service or arrange a maintenance window with its supervisor; --isolated is an intentional separate-profile architecture, not a shortcut around ownership.
For a trusted LAN or VPN, use an appropriately configured authentication provider. The bundled username/password provider is for that trusted boundary, not direct public-internet exposure. For an internet-facing deployment, follow the documented Nous OAuth or conformant OIDC setup, HTTPS and origin restrictions in the server security checklist. A reverse proxy by itself does not turn on Hermes authentication. --insecure is a deprecated no-op, not an auth repair.
Use the public status endpoint for orientation, without supplying any secret:
# Replace the example with the intended private backend URL.
# This is an HTTP/auth-mode check, not a Chat test.
curl --fail --silent --show-error \
http://homelab.lan:9119/api/status
Check auth_required and auth_providers against the intended setup. A public status response does not establish that protected management requests or Chat are authorized. A direct remote URL must also satisfy the backend's peer/Host guards; use the configured private interface and hostname rather than widening access until an error disappears.
Save the right URL and authentication#
In Settings → Gateways → Add connection → Remote gateway, set the unique device name and Gateway URL. The current registry documents Session token and OAuth choices. Follow the authentication advertised by your backend and the UI in your installed client; do not mix a legacy sign-in walkthrough with a newer token-only deployment.
For an already-provisioned HERMES_DASHBOARD_SESSION_TOKEN deployment, use Desktop's secure Session token field. The token-only provider has no browser sign-in flow; an absent sign-in button is not a reason to remove authentication. After token rotation, update the intended saved connection and reconnect. That credential grants full dashboard access without per-user identity: never put it in a URL, support transcript or screenshot. Prefer OAuth/OIDC where shared identity and exposure require it.
For Nous OAuth, distinguish identity-provider sign-in, return to the registered /auth/callback, and acceptance of the dashboard session. The registered callback must match the public origin and HERMES_DASHBOARD_PUBLIC_URL. Do not manually replay a callback or expose authorization codes to diagnose it. The Dashboard authentication reference supplies the provider-specific setup.
Save, run Test, and check a real harmless Chat exchange. The Web UI setup walkthrough covers initial browser acceptance; use the same backend and profile when comparing clients.
Option 3: open only the remote Web UI through SSH#
For a browser on your laptop, keep the server dashboard private. First, on the remote server, start the intended dashboard, or reuse its existing supervised instance:
# Remote server: leave running, or use its established service owner.
hermes dashboard --host 127.0.0.1 --port 9119 --no-open
Then, in a separate terminal on your laptop, forward a deliberately different local port:
# Laptop: replace user@your-vps; leave this terminal open.
ssh -N -o ExitOnForwardFailure=yes \
-L 127.0.0.1:19119:127.0.0.1:9119 user@your-vps
Open http://127.0.0.1:19119 on that laptop. Local 19119 forwards to server 9119. This avoids accidentally opening a different local dashboard already using 9119. The explicit local loopback bind prevents other machines from using your forwarded listener. The forward remains available only while SSH stays connected.
ExitOnForwardFailure=yes makes a failed forwarding setup visible; it does not prove the remote dashboard is running. If local 19119 is occupied, choose another unused local port and change the browser URL accordingly. If SSH connects but the browser fails, check the dashboard at its server-side loopback address first. Do not change the server's bind to 0.0.0.0 merely to repair a local forwarding error.
This tunnel gives you the remote browser dashboard and its Chat tab, not a copy of the remote files on your laptop. Use profile isolation checks before editing settings. Native Windows dashboard administration and POSIX PTY-backed Chat have different requirements; the official Dashboard guide directs native Windows users to WSL2 for that Chat pane.
Backend ready, but Chat still fails: test the failed layer#
Current registry Test checks both HTTP and WebSocket legs. Older readiness probes and a manual GET /api/status can establish only that an HTTP backend answers. Record which check actually passed rather than treating every green indicator as equivalent.
- Cannot save the connection: check unique Name, URL or SSH-host syntax. This happens before an agent task runs.
- SSH works, but Hermes is “not installed”: verify the optional remote executable path and non-interactive shell environment.
- HTTP passes, WebSocket fails: inspect proxy/firewall upgrade handling, gateway auth and origin/Host guards for
/api/ws. Dashboard browser Chat additionally uses/api/pty. - WebSocket closes with 4401: the Dashboard reference identifies ticket authentication failure. Recheck the intended client session/auth mode; do not rotate unrelated model keys.
- WebSocket closes with 4403: inspect request-guard rejection, including Host/peer mismatch, in backend logs. Do not disable those guards to make a connection green.
- Chat connects, model request fails: now inspect provider authentication, entitlement and quota in the backend logs. A working transport is not a funded model account.
- Only one saved conversation is refused: inspect its actual live owner and the dashboard session-restore checks. Do not delete state, locks or history to make the connection test pass.
Record client build, backend version, exact connection name, selected profile, timestamp and redacted error. Different Desktop package and Docker backend version labels do not alone establish incompatibility. Use the supported update path for each install method and preserve a protected backend backup before maintenance. A multi-target Desktop update can affect remote work; review its targets first.
Prove the selected machine and profile before real work#
After Test passes, select the named gateway and intended profile in Sessions. Make primary changes the fallback connection; it does not switch the current workspace. Two gateways with a profile named default still own separate state.
Use this read-only canary before allowing edits:
Do not change files, send messages or start jobs.
Report your actual working directory and whether the non-sensitive test
folder I named exists on this backend. Then reply REMOTE-CHECK-OK.
Compare the returned directory and folder with the intended host. Then run one separately authorized read-only tool and check that the assistant receives its output and finishes. If text chat works but the tool turn stalls, keep the redacted tool output and matching provider error; do not treat it as a failed tunnel or reinstall the server without evidence. Use the provider recovery guide.
Record connection kind as well as URL. The current official registry reference, checked November 9, 2026, notes that an SSH Test in the Webapp can start or reuse an isolated hermes serve and leave it running until connection removal, gateway stop or its eligible idle timeout. Test is therefore not always a passive network ping. Confirm lifecycle with the authorized host owner; do not stop a shared backend merely to clean up a test.
Messaging remains separate: verify one permitted reply in the exact channel or thread using the gateway recovery guide. Never repeat a consequential action solely because its final answer is missing; read back the actual result first. These are documented acceptance checks, not a VPS or provider test we performed.
Choose who operates the remote backend#
Desktop is a client. Self-hosted Web UI supplies real browser Chat and administration. Neither removes responsibility for the server, runtime updates, provider credentials, authentication, backups and gateway recovery. A manually operated Remote gateway service should not depend on your laptop remaining awake; verify that operational requirement separately from a connection check.
Disclosure: this site promotes FlyHermes independently of Nous Research. Compare self-hosted and managed ownership and FlyHermes plan allowances if you do not want to maintain that lifecycle. Confirm the managed service supports your workflow before moving it. Managed browser/mobile access is not proof of a drop-in Desktop endpoint, unlimited model usage or exactly-once execution.