The Hermes messaging gateway is a background process that receives incoming messages from external platforms — such as Telegram and WhatsApp — and routes them to the Hermes agent for processing. Responses are sent back through the same platform automatically. The gateway runs independently of the TUI chat interface, so you can keep it alive while closing and reopening the launcher at any time.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/techjarves/Hermes-USB-Portable/llms.txt
Use this file to discover all available pages before exploring further.
Starting the Gateway
Via the Launcher Menu
From the main menu, select [3] Start Gateway. The launcher starts the gateway as a background process, waits two seconds for it to initialize, then returns you to the menu with an updated status showing
Running (PID …).Via the CLI
You can start the gateway directly from the terminal using the launcher scripts or the
hermes command.- Windows
- macOS / Linux
hermes gateway run --replace stops any existing gateway instance before starting a fresh one. Use this when the status shows Stopped (stale lock) and a clean restart is needed.Stopping the Gateway
- Via Launcher
- Via CLI
When the gateway is running, the main menu option [3] changes to Stop Gateway
[live]. Select it to send a stop signal and clean up the PID file.Restarting the Gateway
- Via Launcher
- Via CLI
Navigate to [4] Advanced Options → [4] Restart Gateway. The launcher runs
hermes gateway restart and returns you to the main menu with a refreshed status.Install as a System Service
You can register the gateway as an OS-level service so it starts automatically on boot without needing to open the launcher.Checking Gateway Status
Telegram Bot Setup
To receive and respond to Telegram messages, you need a Telegram Bot Token. Set it indata/.env:
| Telegram Command | What it does |
|---|---|
/start | Start chatting with Hermes |
/stop | Cancel the current task or agent turn |
/sethome | Set this chat as your home channel for cron jobs and notifications |
| Any text | Hermes processes the message as a prompt and replies inline |
Gateway Logs
All gateway activity is written todata/logs/gateway.log.
View via Launcher
Navigate to [4] Advanced Options → [2] View Logs. The launcher prints the last 20 lines of
gateway.log inline.View via CLI
The gateway PID is tracked in
data/gateway.pid. If the gateway process exits unexpectedly without cleaning up this file, the launcher will show Stopped (stale lock) in yellow. Use [3] Start Gateway or hermes gateway run --replace to recover.