Open the Hermes Web App on a VPS over SSH
Open the Hermes Agent Web App on your VPS through a private SSH tunnel. Enable it, sign in, and diagnose wrong ports, missing bundles, and bind errors.

Your Hermes Agent gateway is running on a VPS, but the browser says it cannot connect. Enable the Web App on the gateway, keep it bound to 127.0.0.1:9120 on the VPS, then forward that address over SSH. Once the tunnel is open, a one-use link signs your laptop browser into the Desktop workspace.
Check the version and the gateway
The gateway-served Web App arrived in Hermes Agent v0.23.0 and is disabled by default. This walkthrough targets v0.23.6 (a6d60eda2aa6), dated December 1, 2026 in the release notes and published on GitHub on December 2 UTC. Current upstream docs deprecate hermes dashboard and hermes serve in favor of newer interfaces. Use hermes webapp for the Desktop workspace in this guide.
Run these on the VPS, as the Linux user that runs your gateway. Use the same Hermes profile for every command in this walkthrough. If you have several gateways, check the one you actually intend to open before restarting it.
id -un
hermes --version
hermes gateway status
hermes webapp --help
If webapp is an unknown command, check which hermes binary your SSH shell found and consult the release notes for your installed version. If the gateway is down, restore it using your existing service manager. For a containerized installation, see the networking note below before using a host-level SSH forward.
Enable the Web App on the VPS
For this private path, webapp.host should be 127.0.0.1, webapp.port should be 9120, and webapp.public_url should be unset. If your gateway already serves another origin or users, check its existing config and plan any change first. The commands below assume a self-hosted gateway with the default Web App address and a shell that can restart its service.
hermes config set webapp.enabled true
hermes gateway restart
hermes gateway status
hermes webapp --status
The gateway reads the Web App settings at startup. hermes webapp --status checks the Web App listener separately from the service status. If it reports a missing bundle, go to the build step in the troubleshooting section before generating your link. A normal source install stores the generated browser application in apps/desktop/dist-webapp under the Hermes checkout. Packaged installations can provide it separately.

Forward the port and sign in
In a terminal on your laptop, open the tunnel. Replace hermes with the Linux account running the gateway and vps.example.com with your own host. Keep the terminal open while you use the Web App.
ssh -N -o ExitOnForwardFailure=yes -L 127.0.0.1:9120:127.0.0.1:9120 hermes@vps.example.com
The first 127.0.0.1:9120 is the laptop listener. The second is the destination as seen by the SSH server on the VPS. -N opens the tunnel without starting a remote shell. ExitOnForwardFailure catches a failure to set up the forward. You still need to check that the remote destination answers.
In a second SSH session on the VPS, under the same account, run the command below. On Linux, loopback sign-in checks which OS user owns the connection on the server side. Forward through the account that runs Hermes, even if a different SSH account can open the port or can run commands with sudo.
hermes webapp --no-open
Open the printed URL in your laptop browser within 60 seconds. Keep the full URL intact, including its fragment, and keep it private. The bare address can show sign-in instructions. The one-use link signs in the current tab, which can retain that sign-in through a reload or ordinary gateway restart. For a fresh tab, generate a fresh link.
Open a new chat and send a simple prompt to your own agent, such as Reply with PONG. Receiving the reply confirms that the browser can connect, the gateway accepted your sign-in, and your configured model can answer. After a scheduled gateway restart, keep the same tab and tunnel open. Wait for the gateway to come back, reload the tab if needed, and reopen the chat. Generate a fresh link if the tab asks you to sign in again.
In a disposable Debian 13 VM, we ran the v0.23.6 container image with Linux host networking and OpenSSH. The published image already contained the Web App bundle. A first sign-in and chat worked through the forward, and the same browser tab reconnected and answered a second prompt after a container restart. Both replies came from a local mock model endpoint.
Diagnose the failure from the VPS out

Nothing opens, or the forwarded port is wrong
Check the gateway and its listener from the VPS before changing laptop settings. These are local probes. A response from curl confirms HTTP reachability, while the browser login and a chat verify the rest of the path.
hermes webapp --status
ss -ltn 'sport = :9120'
curl -sS --max-time 5 -o /dev/null -w '%{http_code}\n' http://127.0.0.1:9120/
If status reports a different port, use the actual VPS port as the right-hand destination in -L. If the VPS answers and the laptop does not, check that the SSH session is still up, that forwarding is permitted, and that your browser uses the laptop address from -L. A local address-in-use error is a different problem. Choose a free laptop port, keep the right-hand destination unchanged, and replace only the address and port in the generated link with the laptop end of the tunnel.
Check the destination address as well as the port. If ss shows [::1]:9120 only, forwarding to 127.0.0.1:9120 on the VPS will fail even when the port number is right. In our test, forwarding to [::1]:9120 on the VPS restored HTTP reachability. The default IPv4 walkthrough above uses 127.0.0.1 on both ends.
The gateway runs, but the Web App bundle is missing
The gateway and the browser build can be in different states. A running service can report that it has no Web App bundle. On a source installation, build the assets separately so you can read any build failure before generating the short-lived sign-in link.
hermes webapp --build-only
hermes webapp --status
In the missing-bundle test, the listener still accepted connections but returned HTTP 404. The status command named the missing dist-webapp/index.html.
The running gateway can pick up a newly built bundle. If the build itself fails, check the error against the requirements for that Hermes release. If you are using an image that should ship a bundle, verify the image tag and its contents first. Retrying SSH or regenerating the link cannot repair missing build output.
The page loads but refuses sign-in or chat
Generate a fresh link if it expired or was used already. Check that the SSH forward and gateway run under the same Linux account. Also confirm that the Web App still uses loopback with webapp.public_url unset for this procedure. The upstream sign-in flow changes when you configure a public URL or a non-loopback bind.
If the workspace opens but chat fails, check the gateway status and its logs under the same profile. A successful response for the page verifies HTTP reachability. A chat also needs the live gateway connection and a working model provider, so read the actual chat error before changing the port again.
Docker host and container loopback are different
With bridge networking, 127.0.0.1 inside a container belongs to that container. A connection to VPS host loopback only reaches a published port on the host. A published port also cannot reach a service bound solely to container loopback. Compare the listener inside the container with the host address and port shown by your container's port mapping. A non-loopback bind inside the container requires a supported sign-in provider, even if Docker publishes only to host loopback.
With Linux host networking, the container shares the host's network namespace. The listener address can be the host's loopback in that case, although the loopback sign-in still checks the OS user. For installation and persistent volumes, see the Hermes Agent Docker guide. If you are deciding how to reach your agent from a phone, see the mobile access guide.
Keep the Web App behind the tunnel
SSH carries the traffic between your laptop and VPS. Leave the Web App port private on both machines. A signed-in browser has access to the agent's workspace and the permissions of the account running Hermes. This procedure covers a private SSH connection. For an internet-facing origin, use upstream's deployment docs and verify the supported sign-in provider, exact public URL, HTTPS, and WebSocket upgrade before use.
If you mainly want someone else to maintain the server, Hermify hosts and maintains Hermes Agent with its own web dashboard and Telegram. Get started with Hermify if that workflow fits how you want to use your agent.
Sources
- Hermes Agent v0.23.0 release notes
- Hermes Agent v0.23.6 release notes
- GitHub publication metadata for v0.23.6
- Hermes Desktop browser access at v0.23.6
- Hermes CLI reference for
hermes webapp - Hermes Docker Web App documentation at v0.23.6
- OpenSSH manual for local forwarding
- Docker Engine port publishing
- Hermify's hosted Telegram agent and configuration dashboard
Run Your Own Hermes Agent
Bring your API key, connect Telegram, and get a self-improving AI agent live in 60 seconds.
Get Started