Featured image of post Installing Hermes Agent on WSL2 (2026)

Installing Hermes Agent on WSL2 (2026)

Install the self-hosted AI agent Hermes on WSL2—official one-click script, setup wizard, starting the gateway, and keeping it running with a systemd user service. Verified against a live instance.

Hermes is an open-source, self-hostable, self-evolving AI agent (Python, MIT). Installing it on WSL2 is the same as on Linux—the official installer drops everything into ~/.hermes. This guide was verified against a live WSL2 instance running Hermes v0.16.0.

1. Install (official one-liner)

1
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash

The installer bundles its own dependencies: uv, Python 3.11, Node.js, ripgrep, ffmpeg. On WSL2 it detects your existing Git and uses that directly (no bundled Git needed). Everything lands in ~/.hermes, isolated from your system Python.

Verify the command is on your PATH:

1
hermes --version

2. Run the setup wizard

1
hermes setup

This walks you through the whole configuration in one go—model providers, channels, skills. Want a web-based wizard?

1
hermes setup --portal

3. Start the gateway + chat

1
2
hermes gateway setup    # configure messaging channels
hermes gateway start    # start the gateway

Then send a message to the bot on your configured channel. That’s the standard path: install → setup → start gateway → chat.

4. (Optional) Keep it running with a systemd user service

hermes gateway start runs in your terminal; close the terminal and it stops. To keep Hermes running across logouts and auto-start it on boot, use a systemd user service. The unit below is adapted from a live instance (verified 2026-07-31)—save it as ~/.config/systemd/user/hermes-gateway.service:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
[Unit]
Description=Hermes Agent Gateway - Messaging Platform Integration
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=%h/.hermes/hermes-agent/venv/bin/python -m hermes_cli.main gateway run
WorkingDirectory=%h/.hermes
Environment="HERMES_HOME=%h/.hermes"
Restart=always
RestartSec=5

[Install]
WantedBy=default.target

Then enable and start it, and turn on linger so the user service keeps running even without active login sessions:

1
2
3
4
systemctl --user daemon-reload
loginctl enable-linger $USER
systemctl --user enable --now hermes-gateway.service
systemctl --user status hermes-gateway.service

%h expands to your home directory, so this unit works for anyone who installed to the standard ~/.hermes path.

Troubleshooting

  • hermes not found — The installer puts the binary at ~/.hermes/hermes-agent/venv/bin/hermes and symlinks it to ~/.local/bin. Make sure ~/.local/bin is on your PATH (WSL2 usually has it by default).
  • Service won’t start — Check journalctl --user -u hermes-gateway.service -f. The most common cause is an incomplete hermes setup (missing model provider or channel configuration).
  • WSL2 pulls in Windows PATH — The service’s PATH may include Windows paths inherited from WSL2. Purely cosmetic; the actual process runs the venv Python.

Sources + freshness

Installation steps come from the official Hermes docs (quickstart, install.sh). The systemd unit and ~/.local/bin symlink details were verified against a live WSL2 instance on 2026-07-31 (Hermes v0.16.0). Hermes moves fast—double-check the installer URL and version before deploying.