Back to Article List

Hermes "command not found" error after install: How to fix

Hermes

You installed Hermes Agent and now your shell says hermes: command not found. This is the number one post-install problem in the community. In most cases the install worked fine. The shell just doesn't know about the new binary yet.

I'll walk through the fixes from fastest to slowest. If you're in a hurry, the first one solves it 90% of the time.

Why "hermes: command not found" happens

The Hermes installer puts the hermes binary in one of two locations:

  • ~/.local/bin/hermes for the per-user install (default on most Linux distros)
  • ~/.hermes/hermes-agent/venv/bin/hermes when the install uses a virtual environment

Both of these need to be on your shell's PATH. On Ubuntu and Debian, ~/.local/bin is added to PATH only when a login shell reads your profile. If you ran the install in a terminal that was already open, your shell never re-read the profile. The binary is there, the shell just won't find it by name. Easy mistake. The Nous installation docs mentions this but it's burried near the bottom.

Reload your shell PATH (the 90% fix)

Just source your shell config in the current terminal:

source ~/.bashrc

If you're on zsh:

source ~/.zshrc

Then check:

hermes --version

If you see a version string, you are done. Open a new terminal tab to make sure the PATH is set for future sessions too.

Fish shell users

Fish doesn't use bashrc. Your file is ~/.config/fish/config.fish and you also need to check the fish_user_paths universal variable:

fish_add_path ~/.local/bin

What to do when source doesn't fix it

If sourcing your config still doesn't bring hermes into scope, the binary may be somewhere unexpected or your profile may not export the right directory.

Find where the binary is installed

ls -la ~/.local/bin/hermes 2>/dev/null
ls -la ~/.hermes/hermes-agent/venv/bin/hermes 2>/dev/null
echo $PATH | tr ':' '\n'

First two commands tell you where the binary lives. Third command shows the directories your shell is searching. Compare. If the binary's directory is not in PATH, that is the problem.

Add the binary's directory to PATH

Append this to your shell config:

export PATH="$HOME/.local/bin:$PATH"

For zsh it goes in ~/.zshrc. For bash on Debian/Ubuntu it should go in ~/.profile so that login shells (used by systemd, cron, ssh non-interactive) pick it up too. If you only put it in ~/.bashrc the gateway will work when you start it manually but break under systemd. Common gotcha.

If you installed into a venv

Some installs land the binary inside a virtualenv at ~/.hermes/hermes-agent/venv/bin/hermes. You can add that venv bin to PATH the same way as above, or create a thin wrapper script in ~/.local/bin:

cat > ~/.local/bin/hermes << 'EOF'
#!/usr/bin/env bash
exec "$HOME/.hermes/hermes-agent/venv/bin/hermes" "$@"
EOF
chmod +x ~/.local/bin/hermes

The wrapper survives Hermes upgrades that rebuild the venv. I prefer this on my own boxes becuase I don't want to update PATH every time the venv path changes.

macOS specific notes

On macOS the default shell since Catalina is zsh. Your file is ~/.zshrc. If you upgraded from older macOS you may still be on bash, in which case use ~/.bash_profile.

Multiple Python installs problem

macOS users sometimes have Python from Homebrew, pyenv and the system all installed. The Hermes installer can pick one Python while your PATH points to another. To check, run:

which python3
head -1 ~/.local/bin/hermes

If the shebang at the top of the hermes file points to a Python that no longer exists (e.g. you removed Homebrew Python after install), the launcher fails before showing any usefull error. Reinstall Hermes and pin a single Python.

WSL2 specific notes

On WSL2 the same PATH logic applies but Windows can complicate things via interop. If you run hermes from PowerShell, Windows routes the call to WSL. Make sure to test from a real WSL terminal first (Windows Terminal, Ubuntu profile) before debugging anything on the Windows side.

If hermes gateway start works in your terminal but fails when started by systemd inside WSL, the systemd unit needs an explicit Environment="PATH=..." entry. Our Hermes systemd setup tutorial shows the right unit format.

About native Windows installs

Hermes Agent does not run natively on Windows. If you ran the install script in PowerShell or CMD and got hermes not found, the install never placed a working binary on your system. You have two options: install Hermes inside WSL2, or use the Hermes Desktop GUI app. Our Hermes on Windows comparison explains both paths in detail.

Verify the install with hermes doctor

After PATH is fixed, run:

hermes doctor

Doctor checks Python version, network reachability, provider config, write permissions on the data dir and several other things. It will tell you what else needs to be fixed before chat works. Skipping this step usually means finding those issues one at a time over the next hour. Five seconds of doctor saves a lot of time.

If doctor complains about no provider configured, see our separate guide on no inference provider configured.

Clean reinstall if nothing else works

Occasionally an install ends in a half-broken state. The binary exists but launching it does nothing or hangs. Back up your session history first if you have any, then wipe and reinstall:

# back up state.db before deleting anything
cp ~/.hermes/state.db ~/state.db.backup

# remove install
rm -rf ~/.hermes
rm -f ~/.local/bin/hermes

# re-run the official installer (get the command from Nous docs)

For proper backups of state.db (not just cp) see our Hermes Agent backups tutorial. A live SQLite file shouldn't be copied with cp, you can corrupt it.

Skip all the install steps with a LumaDock VPS

If you want to skip the install process entirely, the LumaDock Hermes Agent VPS template comes preinstalled with hermes on the PATH, the data directory ready and the dashboard set up. Plans include unmetered bandwidth and no setup fees, which helps if you're spinning up and tearing down test instances often. The end-to-end setup is covered in our Hermes Agent complete guide.

Your idea deserves better hosting

24/7 support 30-day money-back guarantee Cancel anytime
Számlázási ciklus

1 GB RAM VPS

$3.99 Save  25 %
$2.99 havonta
  • 1 vCPU AMD EPYC
  • 30 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Tűzfal kezelése
  • Szerver megfigyelés

2 GB RAM VPS

$5.99 Save  17 %
$4.99 havonta
  • 2 vCPU AMD EPYC
  • 30 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Tűzfal kezelése
  • Szerver megfigyelés

6 GB RAM VPS

$14.99 Save  33 %
$9.99 havonta
  • 6 vCPU AMD EPYC
  • 70 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P1

$7.99 Save  25 %
$5.99 havonta
  • 2 vCPU AMD EPYC
  • 4 GB RAM memória
  • 40 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P2

$14.99 Save  27 %
$10.99 havonta
  • 2 vCPU AMD EPYC
  • 8 GB RAM memória
  • 80 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P4

$29.99 Save  20 %
$23.99 havonta
  • 4 vCPU AMD EPYC
  • 16 GB RAM memória
  • 160 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P5

$36.49 Save  21 %
$28.99 havonta
  • 8 vCPU AMD EPYC
  • 16 GB RAM memória
  • 180 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P6

$56.99 Save  21 %
$44.99 havonta
  • 8 vCPU AMD EPYC
  • 32 GB RAM memória
  • 200 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD EPYC VPS.P7

$69.99 Save  20 %
$55.99 havonta
  • 16 vCPU AMD EPYC
  • 32 GB RAM memória
  • 240 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

EPYC Genoa VPS.G1

$4.99 Save  20 %
$3.99 havonta
  • 1 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4. generációs 9xx4 processzor 3.25 GHz-en vagy hasonló, Zen 4 architektúrával.
  • 1 GB DDR5 RAM memória
  • 25 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

EPYC Genoa VPS.G2

$12.99 Save  23 %
$9.99 havonta
  • 2 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4. generációs 9xx4 processzor 3.25 GHz-en vagy hasonló, Zen 4 architektúrával.
  • 4 GB DDR5 RAM memória
  • 50 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

EPYC Genoa VPS.G4

$25.99 Save  27 %
$18.99 havonta
  • 4 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4. generációs 9xx4 processzor 3.25 GHz-en vagy hasonló, Zen 4 architektúrával.
  • 8 GB DDR5 RAM memória
  • 100 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

EPYC Genoa VPS.G6

$48.99 Save  31 %
$33.99 havonta
  • 8 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4. generációs 9xx4 processzor 3.25 GHz-en vagy hasonló, Zen 4 architektúrával.
  • 16 GB DDR5 RAM memória
  • 200 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

EPYC Genoa VPS.G7

$74.99 Save  27 %
$54.99 havonta
  • 8 vCPU AMD EPYC Gen4 AMD EPYC Genoa 4. generációs 9xx4 processzor 3.25 GHz-en vagy hasonló, Zen 4 architektúrával.
  • 32 GB DDR5 RAM memória
  • 250 GB NVMe tárhely
  • Korlátlan sávszélesség
  • IPv4 és IPv6 benne van Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban és Hollandiában.
  • 1 Gbps hálózat
  • Automatikus mentés benne
  • Tűzfal kezelése
  • Szerver megfigyelés

AMD Ryzen VPS.R1

$15.99 Save  31 %
$10.99 havonta
  • 1 dedikált CPU AMD Ryzen 9 7950X 4,5 GHz-en vagy hasonló, Zen 4 architektúrán. vCPU
  • 4 GB DDR5MEMÓRIA
  • 50 GB NVMeTÁRHELY
  • Korlátlan sávszélesség
  • IPv4 & IPv6 mellékelve Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban vagy Hollandiában.
  • Auto mentés mellékelve

AMD Ryzen VPS.R2

$27.99 Save  21 %
$21.99 havonta
  • 2 dedikált CPU AMD Ryzen 9 7950X 4,5 GHz-en vagy hasonló, Zen 4 architektúrán. vCPU
  • 8 GB DDR5MEMÓRIA
  • 100 GB NVMeTÁRHELY
  • Korlátlan sávszélesség
  • IPv4 & IPv6 mellékelve Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban vagy Hollandiában.
  • Auto mentés mellékelve

AMD Ryzen VPS.R4

$99.99 Save  20 %
$79.99 havonta
  • 8 dedikált CPU AMD Ryzen 9 7950X 4,5 GHz-en vagy hasonló, Zen 4 architektúrán. vCPU
  • 32 GB DDR5MEMÓRIA
  • 400 GB NVMeTÁRHELY
  • Korlátlan sávszélesség
  • IPv4 & IPv6 mellékelve Az IPv6 támogatás jelenleg nem érhető el Franciaországban, Finnországban vagy Hollandiában.
  • Auto mentés mellékelve

FAQ

Why is hermes not on my PATH after installing?

The installer puts the binary in ~/.local/bin or inside a venv directory. On Debian and Ubuntu, ~/.local/bin is added to PATH only after a login shell reads your profile. Your current terminal session didn't reload it, so the new directory is invisible until you source the config or open a new terminal.

Your agent runs wild. Your bill doesn't.

Easily deploy Hermes in one click on Ubuntu 24.04 with AMD EPYC, NVMe storage and unmetered bandwidth. The price stays the same whatever the agent does, no setup fees, no overage charges and no tier traps.

GPU products are in high demand at the moment. Fill the form to get notified as soon as your preferred GPU server is back in stock.