Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#667·hermes-desktop

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/ws returns {"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/completions through tunnel)
  • v0.6.1 broke (switched to WebSocket /api/ws which doesn't exist on gateway)
  • Other users with "working" SSH tunnel may be running hermes dashboard alongside gateway, or using Remote mode

Evidence

  • Source code: connectWebSocket("ws://127.0.0.1:${port}/api/ws") in main/index.js
  • /api/ws returns 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/completions with auth → 200 OK
  • Gateway restart did not fix the issue

Repro

  1. Install Hermes Desktop v0.6.1
  2. Configure SSH Tunnel mode
  3. Verify "SSH Tunnel Connected"
  4. 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/ws endpoint exists in tui_gateway/ws.py and hermes_cli/web_server.py but NOT in gateway/platforms/api_server.py
  • Starting hermes dashboard on port 9119 provides the WebSocket endpoint but Hermes One doesn't connect to it (it connects to the tunnel port)

Source: fathah/hermes-desktop

View original on GitHubView discussion on GitHub