How to Run Hermes Agent on a Headless Server with Remote Desktop Access
Hermes Agent can be deployed on a headless server and accessed remotely by running two separate server-side processes: 'hermes serve' for API and WebSocket connections, and 'hermes gateway run' for messaging channels like Telegram, Discord, and Slack. Both processes share the same configuration directory at ~/.hermes/, covering skills, memory, and sessions, but operate independently. A desktop client or web browser on a remote machine connects to the 'hermes serve' backend via WebSocket on port 9119, not directly to the gateway. For trusted local networks, basic authentication over 0.0.0.0 is considered adequate, while internet-exposed setups should use Tailscale or an OAuth provider for stronger security. Port 9119 TCP must be open in the server's firewall to allow external client connections.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in