Skip to main content

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.

The gateway runs Hermes as a background service that listens for messages from Telegram, WhatsApp, Slack, and other platforms. Use these commands to manage its lifecycle. Once the gateway is running, you can interact with your Hermes agent from any supported messaging app without leaving a terminal open.

Gateway Commands

CommandDescription
hermes gatewayStart the gateway in the foreground
hermes gateway runSame as hermes gateway
hermes gateway run --replaceReplace an existing running instance
hermes gateway restartStop and then start the gateway
hermes gateway stopStop the running gateway
hermes gateway installInstall as a system service (auto-start on boot)
hermes gateway uninstallRemove the system service
hermes gateway statusCheck whether the gateway is running

Examples

# Start the gateway in the foreground
./launch.sh gateway

# Restart after a config change
./launch.sh hermes gateway restart

# Stop the gateway
./launch.sh hermes gateway stop

# Check gateway status
./launch.sh hermes gateway status

# Install as a system service
./launch.sh hermes gateway install

Interactive Launcher

You can also manage the gateway from the Hermes Portable interactive menu without typing any commands:
  • Main Menu → [3] Start Gateway — starts the gateway as a background process
  • Main Menu → [3] Stop Gateway — shown as [live] when the gateway is running
  • Advanced Options → [4] Restart Gateway — stop and start in one step

Gateway State

The gateway PID is tracked in data/gateway.pid (HERMES_HOME/gateway.pid). The launcher reads this file on startup to display the gateway status in the dashboard.
If the process no longer exists but gateway.pid is still present, the gateway is in a stale lock state. The launcher will show [!] Stopped (stale lock). Start the gateway again — the stale PID file will be cleared automatically.
Gateway logs are written to data/logs/gateway.log. To view the last 20 lines from the Advanced Options menu, choose [2] View Logs.

Telegram Bot Commands

Once the gateway is running and your Telegram bot is configured, send these commands directly to your bot:
CommandWhat it does
/startBegin chatting with Hermes
/stopCancel the current task or agent turn
/sethomeSet this chat as the home channel for cron jobs and notifications
Any textHermes processes the message as a prompt
Run hermes setup gateway to configure your Telegram bot token and other messaging platform credentials before starting the gateway.

Additional Messaging Platforms

Hermes also provides platform-specific commands for other messaging integrations:
CommandDescription
hermes whatsappWhatsApp integration tools
hermes slackSlack integration tools
hermes sendSend a message via the configured gateway

Build docs developers (and LLMs) love