Install Hermes Agent on WSL2 (Advanced Windows Path)
Installing in WSL2 is identical to Linux: run the official one-liner in your WSL2 shell. The differences: keep the gateway alive with foreground mode or tmux, and use an MCP bridge for browser automation.
Who this is for:Windows users who want the full Linux toolchain. For a quick start, see the Desktop path on the Windows download page.
Steps
-
Prepare WSL2
In an elevated PowerShell, install WSL2 (Ubuntu by default), reboot, and finish Linux user setup.
wsl --install -
Install prerequisites inside WSL2
sudo apt update && sudo apt install curl xz-utils -
Run the official installer
Same one-liner as Linux.
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash -
Reload shell and start
source ~/.bashrc hermes -
Keep the gateway alive (important)
Official FAQ: systemd is unreliable in WSL; use foreground mode or tmux.
hermes gateway run # or tmux new -s hermes 'hermes gateway run'
How to verify
- hermes opens the chat interface
- hermes doctor passes all checks
- gateway survives closing the WSL window when run under tmux
FAQ
How do I control Windows Chrome from WSL2?
Officially recommended: use chrome-devtools-mcp as an MCP server so Hermes accesses browser tools through MCP, which is more reliable than /browser connect.
Why not just PowerShell?
The native PowerShell path works for daily chat; the Linux environment has more complete terminal tooling, which is why community guides commonly recommend WSL2.
Hermes cannot find tools installed via nvm/pyenv?
Official FAQ: Hermes sources ~/.bashrc by default; add other init files in config.yaml under terminal.shell_init_files (e.g. ~/.zshrc, ~/.nvm/nvm.sh).
Related pages
- Download and Install Hermes Agent on macOS
- Download and Install Hermes Agent on Windows (Desktop / PowerShell / WSL2)
- Download and Install Hermes Agent on Linux
- Hermes Agent Model Provider and API Key Setup
- Migrate from OpenClaw to Hermes Agent (official hermes claw migrate)
- How to fix: hermes: command not found
- How to fix: API key not set / invalid API key
- How to fix: Hermes requires Python 3.11 or newer
- How to fix: context length exceeded
- Telegram + Hermes Agent: Known Pitfalls and Fixes
- Curated official issues
- School solution cards