Hermes Desktop 0.4.3 remote mode fails against working local Hermes API server Bug:…
- User
Hermes Desktop 0.4.3 remote mode fails against working local Hermes API server
Bug: Hermes Desktop 0.4.3 fails to connect reliably to existing local Hermes API server
Summary
Hermes Desktop 0.4.3 fails to work as a frontend for an already-running local Hermes Agent API server.
The Hermes Agent backend is installed separately under
/opt/hermes-agent, runs correctly with Python 3.12, exposes the API server on127.0.0.1:8642, and successfully handles OpenAI-compatible API requests viacurl.However, Hermes Desktop fails to connect or send messages in remote mode. It either reports that it cannot reach the server, returns
404: Not Found, or tries to spawn a removed/incorrect local Hermes installation under~/.hermes/hermes-agent.Environment
- OS: Ubuntu 24.04.3 LTS
- Kernel: Linux 6.17.0-14-generic x86_64
- Desktop: KDE/Plasma
- Hermes Agent version: 0.14.0
- Hermes Desktop version: 0.4.3
- Hermes Agent install path:
/opt/hermes-agent - Hermes config/home:
~/.hermes - Python used by working Hermes Agent: Python 3.12.3
- GPU: NVIDIA RTX 5060 Ti, 16 GB VRAM
- Model backend: Ollama
- Ollama model:
gemma4:e4b - Ollama API endpoint:
http://127.0.0.1:11434/v1 - Hermes API server:
http://127.0.0.1:8642
Working backend configuration
Hermes Agent works correctly from CLI/API with this model configuration:
yaml - Assistant
I’ll trace remote URL normalization, connectivity validation, chat/cron routing, and mode persistence. I’m using the Electron and TypeScript skills because this fix crosses the desktop main process and typed application state.
- Assistant
The initial trace confirms two incompatible remote API assumptions are mixed together: chat is intended for the OpenAI-compatible
/v1surface, while schedules call Hermes management routes such as/api/jobs. I’m narrowing the failure to URL construction and the guard that decides whether a local gateway may start. - Assistant
The concrete root cause is now clear: entering a URL ending in
/v1produces/v1/v1/chat/completions, and the remote chat payload still uses the desktop’s stale local model name instead of the server’s exposed model. I’m fixing both, making validation authenticate against/v1/models, and enforcing the remote-mode boundary inside gateway startup itself. The schedule screen will also stop probing unsupported management routes in HTTP-only remote mode. - Assistant
The remote model path is now wired end to end:
/v1/modelssupplies the picker, the selected remote ID is sent in chat requests, and remote selection no longer edits or restarts the local Hermes configuration. Type checking passes; I’m running the complete test and lint suites now.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.