Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › Hermes Agent

How to Install Hermes Agent on Windows 11 With WSL2

By Freedom251 Team · · 9 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install Hermes Agent inside a WSL2 Linux distribution, not in Windows PowerShell: enable WSL2, open Ubuntu, run Hermes’s official installer, then complete its setup wizard. WSL2 is the right choice when you need Linux process and filesystem behavior or Hermes’s dashboard embedded terminal; native Windows is also supported if you do not need those WSL-specific benefits.

What you need before installing Hermes Agent

Hermes runs in the Linux environment provided by WSL2. You will need a supported Windows 11 installation, an Administrator session for the initial WSL setup, an internet connection to download the installer and its components, and a Linux username and password for the distribution. The Linux credentials are separate from your Windows account.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Use WSL2, not WSL1. The Hermes documentation treats WSL2 as plain Linux, while WSL1 differs in syscall, process, signal, and networking behavior and is not a reliable environment for Hermes.
  • Use Ubuntu for the commands below. If you already have another WSL2 Linux distribution, the installation steps apply inside that distribution too.
  • Keep active repositories and Hermes work in the Linux filesystem, such as ~/code/project, unless a Windows-side tool requires a Windows-mounted path.

The official Hermes installation command is the same one used for Linux. The installer bootstraps uv, prepares pinned Python, Node, npm, ripgrep, and FFmpeg tooling, installs browser and computer-use tools by default, and writes logs under the Hermes data directory. See the official Hermes installer.

Install and verify WSL2

Install WSL from an elevated terminal

  1. Open PowerShell or Windows Terminal as Administrator.
  2. Run wsl --install.
  3. Reboot if Windows prompts you to do so. After the restart, Ubuntu opens and asks you to create a Linux username and password. Enter credentials you will remember; they are not your Windows sign-in credentials.

Confirm the distribution uses version 2

In PowerShell, run:

wsl --list --verbose

Find the Ubuntu row and check its VERSION column. It should read 2. Do not continue on the assumption that a distribution is WSL2 simply because WSL is installed; the version shown for that distribution is the check that matters.

#1 Best Overall
Microsoft OEM System Builder | Windоws 11 Pro | Intended use for new systems | Authorized by Microsoft
  • STREAMLIMED AND INTUITIVE UI | Intelligent desktop | Personalize your experience for simpler efficiency | Powerful security built-in and enabled.
  • JOIN YOUR BUSINESS OR SCHOOL DOMAIN for easy access to network files, servers, and printers.
  • OEM IS TO BE INSTALLED ON A NEW PC WITH NO PRIOR VERSION of Windows installed and cannot be transferred to another machine.
  • OEM DOES NOT PROVIDE PRODUCT SUPPORT | To acquire product with Microsoft support, obtain the full packaged “Retail” version.

If WSL installation did not create Ubuntu, install a Linux distribution through the available WSL installation flow and then run wsl --list --verbose again. The listed distribution name is also the name you use in Windows commands that target a particular distribution.

Enable systemd if you want Hermes gateways to run as services

Systemd is recommended when you plan to install a Hermes gateway as a service. It is not required just to run the interactive Hermes command. In your WSL distribution, edit /etc/wsl.conf and add the following settings, merging them with any existing sections rather than duplicating section headers:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
[boot]
systemd=true

[interop]
enabled=true
appendWindowsPath=true

[automount]
options = "metadata,umask=22,fmask=11"

The metadata automount option preserves Linux permission bits on Windows-mounted paths. The automount section header must be spelled [automount]; a malformed header will prevent the setting from taking effect. Keep the interop settings if you want WSL and Windows command paths to work together.

After saving the file, return to PowerShell and stop the WSL virtual machine so the configuration is re-read:

wsl --shutdown

Reopen Ubuntu. To check whether systemd is PID 1, run inside WSL:

ps -p 1 -o comm=

A result of systemd confirms it is active. If the command returns something else, recheck the /etc/wsl.conf section spelling and restart WSL again.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install Hermes inside the Linux distribution

Open Ubuntu from the Start menu or Windows Terminal. Run the installer and start Hermes from the WSL shell, not from an Administrator PowerShell prompt:

curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
source ~/.bashrc
hermes

The official Hermes WSL2 guidance says the installer treats WSL2 as plain Linux, so there is no separate WSL-specific installer or Windows-side installation step. The shell script downloads and sets up Hermes and its tooling in the Linux environment. Allow it to finish before closing the terminal.

The source ~/.bashrc command reloads the shell configuration so the current terminal can see the command and environment changes made by the installer. You can alternatively close Ubuntu and open a fresh terminal. When the final hermes command runs, it should launch Hermes in the WSL session.

Complete setup and configure a model

Run the full interactive configuration wizard from Ubuntu:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
hermes setup

Use the prompts to configure a model provider and any other settings your intended workflow needs. Installation alone does not choose or configure the model and tools you plan to use.

Rank #2
Windows 11 Pro Upgrade, from Windows 11 Home (Digital Download)
  • Instantly productive. Simpler, more intuitive UI and effortless navigation. New features like snap layouts help you manage multiple tasks with ease.
  • Smarter collaboration. Have effective online meetings. Share content and mute/unmute right from the taskbar (1) Stay focused with intelligent noise cancelling and background blur.(2)
  • Reassuringly consistent. Have confidence that your applications will work. Familiar deployment and update tools. Accelerate adoption with expanded deployment policies.
  • Powerful security. Safeguard data and access anywhere with hardware-based isolation, encryption, and malware protection built in.

Configure only the area you need

If you prefer to configure components individually, run the corresponding command from the WSL shell:

  • hermes model opens model configuration.
  • hermes tools configures tools.
  • hermes gateway setup configures the gateway and, when systemd is available, can set up a systemd user unit.
  • hermes config set changes a configuration value.

Nous Portal users can use hermes setup --portal as a quicker setup route. For diagnostics after setup or when a component is not behaving as expected, run hermes doctor.

Choose where to keep projects and files

For active coding and Hermes work, prefer a directory in the Linux filesystem, such as ~/code/project. A path under /mnt/c is on a Windows-mounted drive. The WSL2 guide associates Windows-mounted paths with much slower git status and hermes chat operations, so using the Linux filesystem can make day-to-day work more responsive.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This choice is about where the working copy lives, not whether Windows can access it. You can still use Windows tools and files where needed, but avoid making a Windows-mounted directory the default location for a repository that Hermes and Linux tools access continuously.

Prevent line-ending errors in repositories edited from Windows

Windows editors can introduce CRLF line endings. A shell script with those endings may fail with bad interpreter: /bin/bash^M; byte-order marks can cause related interpreter problems. Set Git’s WSL defaults with:

git config --global core.autocrlf input
git config --global core.eol lf

These settings configure Git to convert CRLF input to LF and use LF for checked-out files. If an existing script already has CRLF endings, convert the affected file to LF as well; changing Git defaults does not retroactively repair every file already in a working tree.

Connect Windows, WSL, local models, and other clients

Networking matters when a Hermes process in WSL needs to call a service on Windows, when Windows needs to open a dashboard served by Hermes, or when another device on your LAN must reach a service. Windows 11 version 22H2 or later supports mirrored networking. NAT is the other common WSL networking mode; the right configuration depends on which side initiates the connection.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Mode or access need What to expect What to configure
Mirrored networking, Windows 11 22H2 or later Can make localhost work in both directions between Windows and WSL. It is the simplest route when Hermes in WSL calls a Windows-hosted local model. Add networkingMode=mirrored under [wsl2] in %USERPROFILE%.wslconfig, then run wsl --shutdown and reopen the distribution.
NAT, Windows host connecting to a WSL service Localhost forwarding usually works for Windows-host access, but a service may need to listen on all interfaces. Check the service bind address. If needed, bind it to 0.0.0.0; confirm the service is listening before changing firewall settings.
NAT, a LAN client connecting to a WSL service Windows-host localhost forwarding does not by itself make a service reachable to other devices on the local network. Configure a Windows port proxy and an appropriate Windows Firewall rule, and ensure the service binds to 0.0.0.0.
Hermes in WSL calling a Windows-hosted Ollama, LM Studio, or llama-server Mirrored mode is the simplest arrangement. With older or NAT configurations, the Windows service may not be reachable as WSL localhost. In NAT setups, use the Windows host IP from WSL, bind the Windows service to 0.0.0.0, and allow the port through Windows Firewall as appropriate.

Enable mirrored networking

  1. In Windows, open %USERPROFILE%.wslconfig. Create the file if necessary.
  2. Add the following setting under a [wsl2] section:
[wsl2]
networkingMode=mirrored
  1. Save the file, run wsl --shutdown in PowerShell, then reopen Ubuntu.

Mirrored networking is a WSL networking option, not a Hermes setting. If a connection still fails, check the service’s listening address and Windows Firewall rather than assuming that changing the WSL mode also starts or exposes the service.

Keep a gateway available after you close the terminal

For an interactive session, Hermes runs while you use the WSL terminal. A gateway intended to operate as a service needs a service manager and a running WSL environment. With systemd enabled, run hermes gateway setup and follow the wizard to install the available systemd user unit.

If you need WSL to remain running after Windows login, Windows Task Scheduler can launch a long-running WSL process at user logon. Create a task whose program is wsl.exe and whose arguments are:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
-d Ubuntu --exec /bin/sh -c "sleep infinity"

Use the distribution’s actual name if it is not Ubuntu. This task keeps the WSL environment alive; it does not replace the Hermes gateway setup or configure the gateway itself. Check that the task runs under the Windows account that owns the WSL distribution and that it starts at the logon event you intend.

Rank #3
Sale
Microsoft Windows 11 (USB)
  • Less chaos, more calm. The refreshed design of Windows 11 enables you to do what you want effortlessly.
  • Biometric logins. Encrypted authentication. And, of course, advanced antivirus defenses. Everything you need, plus more, to protect you against the latest cyberthreats.
  • Make the most of your screen space with snap layouts, desktops, and seamless redocking.
  • Widgets makes staying up-to-date with the content you love and the news you care about, simple.
  • Stay in touch with friends and family with Microsoft Teams, which can be seamlessly integrated into your taskbar. (1)
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Native Windows or WSL2: which should you choose?

Hermes supports native Windows as well as WSL2. The decision is less about whether Hermes can run and more about which environment best matches your tools and the way you access it.

Consideration WSL2 Native Windows
Hermes dashboard embedded terminal Required for this dashboard feature, according to the Hermes Windows guidance. Not the supported environment for the embedded terminal.
Linux process and filesystem behavior Provides a POSIX-style Linux environment, which is the reason to choose WSL2 over WSL1. Uses Windows behavior rather than a Linux distribution.
Windows file and path access Windows drives are available under paths such as /mnt/c, but active repositories there can be slower for Linux operations. Windows paths are native; there is no Linux-to-Windows filesystem boundary for the Windows working copy.
Networking May require choosing mirrored or NAT behavior and configuring bind addresses, proxies, or firewall rules for particular connections. Avoids the Windows-to-WSL network boundary, although services still need suitable listening and firewall settings.
Long-running gateways Can use a systemd user unit, with WSL kept alive when needed. Uses Windows service and process management rather than WSL’s systemd setup.
GPU and local-model workflow Supports NVIDIA GPUs through the standard Windows NVIDIA driver; local Windows-hosted models need the appropriate WSL networking path. Uses the Windows environment directly for Windows-hosted tools.

Choose WSL2 when you need the embedded dashboard terminal, Linux-compatible development tools, or POSIX behavior. Choose native Windows when a Linux environment is not needed and a direct Windows workflow is simpler.

Fix common installation and connection problems

hermes: command not found

The current shell may not have loaded the environment changes made by the installer. Run source ~/.bashrc in Ubuntu or open a new WSL terminal, then try the command again. Also confirm you ran the installer inside the Linux distribution rather than in PowerShell.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

bad interpreter: /bin/bash^M

The ^M indicates a line-ending problem in the script. Convert the file’s CRLF endings to LF, then apply the Git settings in the filesystem section so future checkouts use Linux line endings. Check for a byte-order mark too if the interpreter error remains after conversion.

A Windows-hosted local model returns “connection refused”

Confirm the model server is running and listening on the address Hermes is trying to reach. In mirrored mode, test the localhost route. In a NAT setup, use the Windows host IP, ensure the Windows service binds to 0.0.0.0, and check whether Windows Firewall allows the service port. A refused connection points first to the listening address, service state, or port path—not to Hermes installation.

Repository commands or Hermes chats are slow

Check whether the project is under /mnt/c or another Windows-mounted location. Move the active working copy into the Linux filesystem, for example under ~/code, and work from there.

An MCP-launched binary reports “UNC paths are not supported”

Some Windows-launched binaries cannot start from a Windows UNC path. For that session, start Hermes from a Windows-reachable mounted path such as /mnt/c/.... This is a targeted workaround for the launch boundary; it is not a reason to keep every active repository on a Windows-mounted drive.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Certificate-based connections fail after the computer sleeps

Clock drift after sleep can interfere with certificate validation. The WSL guide suggests this on-demand correction from the Linux shell:

sudo hwclock -s

Because it uses sudo, enter the Linux account password when prompted. Treat it as a clock correction for the affected session, not a substitute for diagnosing a connection that continues failing for another reason.

GPU notes for WSL2

WSL2 supports NVIDIA GPUs through the standard Windows NVIDIA driver. Do not install a separate Linux NVIDIA driver inside WSL; the WSL guidance identifies the Windows driver as the route for NVIDIA GPU support. AMD ROCm and Intel Arc support remain evolving and are outside that guide’s test matrix, so the available installation guidance does not establish equivalent support for those GPU workflows.

Quick Recap

SaleBestseller No. 3
Microsoft Windows 11 (USB)
Microsoft Windows 11 (USB)
Make the most of your screen space with snap layouts, desktops, and seamless redocking.; FPP is boxed product that ships with USB for installation
$128.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Hermes AgentLinuxUbuntuWindows 11WSL2

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.