SSH Tunnel mode: chat messages not sent in v0.6.1 Windows
Author: hondoausCreated Jun 14, 2026Updated Sep 20, 2026
Environment
- Hermes Desktop: v0.6.1 (Windows, fresh install)
- Connection mode: SSH Tunnel
- Backend: Hermes Agent v0.16.0 on remote Linux VPS
- SSH key auth (ed25519)
Bug
Chat messages are never sent through the SSH tunnel in v0.6.1. The UI shows indefinite loading but no request reaches the backend.
Root Cause (Confirmed)
Hermes One v0.6.1 uses WebSocket for chat transport, connecting to:
ws://127.0.0.1:{port}/api/ws?token={token}The Hermes Agent gateway (hermes gateway run, port 8642) only provides HTTP endpoints - NO /api/ws WebSocket endpoint exists.
The WebSocket endpoint /api/ws exists in the Hermes Dashboard (hermes dashboard, port 9119), a separate component. Confirmed by:
- Starting dashboard on 9119:
curl http://127.0.0.1:9119/api/wsreturns{"detail":"Unauthorized"}(endpoint exists) - But Hermes One connects to tunnel port (18642→8642), not 9119
This means:
- v0.5.8 worked (used HTTP
/v1/chat/completionsthrough tunnel) - v0.6.1 broke (switched to WebSocket
/api/wswhich doesn't exist on gateway) - Other users with "working" SSH tunnel may be running
hermes dashboardalongside gateway, or using Remote mode
Evidence
- Source code:
connectWebSocket("ws://127.0.0.1:${port}/api/ws")in main/index.js /api/wsreturns 404 on port 8642 (gateway) and 8643 (TUI gateway)- Zero outbound connections from Hermes One when sending chat (netstat monitoring over 30+ seconds)
- Tunnel works:
curl http://127.0.0.1:18642/health→ 200 OK - Backend works:
curl -X POST http://127.0.0.1:18642/v1/chat/completionswith auth → 200 OK - Gateway restart did not fix the issue
Repro
- Install Hermes Desktop v0.6.1
- Configure SSH Tunnel mode
- Verify "SSH Tunnel Connected"
- Send a chat message to any profile → indefinite loading
Workaround
Remote mode (direct HTTP) works for basic chat but lacks profile switching and session history.
Additional info
- Related upstream issues: #358, #577
- The
/api/wsendpoint exists intui_gateway/ws.pyandhermes_cli/web_server.pybut NOT ingateway/platforms/api_server.py - Starting
hermes dashboardon port 9119 provides the WebSocket endpoint but Hermes One doesn't connect to it (it connects to the tunnel port)
Source: fathah/hermes-desktop