Skip to content

Repository files navigation

🐉 Hermes Installation Toolkit

A practical guide and set of scripts for installing Hermes Agent — a fully self-hosted, offline-capable AI agent — on Linux systems. Includes setup for local LLM inference, browser automation, web search backends, Chrome DevTools MCP integration, and migration from OpenClaw.

Hermes Agent Platform License

Official docs: https://hermes-agent.nousresearch.com/docs


📋 Tested Environment

Component Spec
OS Ubuntu 24.04 LTS / 25.04
CPU AMD Ryzen 7 5700G (or similar)
RAM 64 GB
GPU NVIDIA GeForce RTX 5090 32 GB VRAM
LLM Qwen 3.6 27B Q4_M via LM Studio (local, OpenAI-compatible API)

The primary target is an x86-64 PC like the one above. The same setup also runs well on a Raspberry Pi 4 (8 GB) with the LLM served from another machine. See Running on Raspberry Pi 4 (arm64).


🚀 Quick Start

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

# 2. Run the setup wizard
hermes setup

# 3. Start chatting or launch the gateway
hermes
hermes gateway start

Video walkthrough: YouTube — Hermes AI Agent Setup

✅ Optional (but recommended) post-install steps

Step A — Self-hosted Firecrawl (web scraping & search)

Firecrawl gives Hermes the ability to scrape, crawl, and extract content from websites. Running it locally keeps all data on your machine and avoids API rate limits.

bash install_firecrawl_docker.sh

Then tell Hermes where to find it by adding this line to ~/.hermes/.env and restarting the gateway:

FIRECRAWL_API_URL=http://localhost:3002

Full guide: Fix Firecrawl & Browser on Headless Linux


Step B — Autostart Services at Boot (no login required)

Makes Firecrawl and Chrome CDP start automatically when the machine boots — even before any user logs in.

sudo bash install_autostart_services.sh

This creates and enables two systemd services:

Service What it starts Port
firecrawl.service Firecrawl Docker stack 3002
chrome-cdp.service Chrome headless + CDP remote debugging 9222

Note: The native Hermes gateway is already managed by its own user service, installed automatically by hermes gateway install during setup. Run hermes gateway status to check it.

To make Hermes' built-in browser tools use this always-on browser instead of launching their own, add cdp_url: "http://localhost:9222" under browser: in ~/.hermes/config.yaml and restart the gateway. See Browser Automation: CDP Explained for when that is worth it.

Post-install management:

# System services installed by this script
sudo systemctl status  firecrawl chrome-cdp
sudo systemctl restart firecrawl
sudo journalctl -u chrome-cdp -f

# The Hermes gateway is a *user* service — no sudo
systemctl --user status hermes-gateway
journalctl --user -u hermes-gateway -f

Step C — Chrome DevTools MCP Server (authenticated browser sessions)

Connects Hermes to a real Chrome browser via the Chrome DevTools Protocol (CDP). Required for:

  • Web pages that need a logged-in user (Gmail, Twitter/X, LinkedIn, etc.)
  • Sites behind a firewall or paywall with no public API
  • Sites whose API is paid or unavailable

If you ran Step B, Chrome is already running headlessly on port 9222 at boot. To take over with a visible Chrome window after login, use the included helper script:

bash chrome_remote_debug.sh

This stops the headless chrome-cdp service, opens a visible Chrome window on the same port and profile, then automatically restarts the headless service when you close Chrome or the terminal.

To launch Chrome manually without the script (if autostart is not installed):

google-chrome \
  --remote-debugging-port=9222 \
  --user-data-dir=$HOME/.config/google-chrome-ai-agent

Then add to ~/.hermes/config.yaml:

mcp_servers:
  chrome-devtools:
    command: "npx"
    args: ["-y", "chrome-devtools-mcp@latest", "--browser-url=http://127.0.0.1:9222"]
    timeout: 60
    connect_timeout: 30

Full guide: Install Chrome DevTools MCP Server

⚠️ Security warning: Chrome DevTools MCP gives Hermes full control over a real browser window, including access to all cookies, saved passwords, and active sessions in that profile. Use a dedicated Chrome profile (the --user-data-dir flag above) — never point it at your personal profile. Only enable this when you need it for sites with no API alternative. The risk is real but manageable with a separate profile.


Step D — Obsidian Knowledge Base (with plugins)

Installs Obsidian and pre-downloads 11 community plugins into a ready-to-use vault at ~/Obsidian.

bash extras/install_obsidian.sh              # vault at ~/Obsidian (default)
bash extras/install_obsidian.sh ~/my/vault   # or a custom path

Plugins included: Kanban, Dataview, Templater, Git, Tasks, Excalidraw, Calendar, QuickAdd, Advanced Tables, Smart Connections, Copilot

After running, open Obsidian, open ~/Obsidian as your vault, then go to Settings → Community plugins to enable each plugin.

See Nice-to-Have Tools & Skills for descriptions of all recommended extras.


📂 Documentation

Guide Description
Fix Firecrawl & Browser on Headless Linux Resolving missing system libraries, sandbox issues, and --no-sandbox configuration
Autostart Services at Boot Systemd services for Firecrawl and Chrome CDP — start at boot without login
Chrome Remote Debug Helper Switch from headless CDP service to a visible Chrome window and back
Nice-to-Have Tools & Skills Recommended extras: Firecrawl, Chrome DevTools MCP, Context7
Obsidian + Plugins Installer Installs Obsidian and 11 community plugins into a pre-configured vault
Install a Secondary Hermes Agent in Docker Run a second, isolated Hermes gateway in Docker alongside a bare-metal install
Running Multiple Hermes Instances (Profiles) Several agents on one bare-metal install: profiles, per-profile gateways, migrating the Docker instance
Install Chrome DevTools MCP Server Setting up browser automation with persistent sessions via CDP
Browser Automation: CDP Explained What CDP is, Hermes' default browser, browser.cdp_url, and how it differs from Chrome DevTools MCP
Migrate from OpenClaw Archiving your OpenClaw workspace and importing data into Hermes

🛠️ What's Included

hermes-installation-toolkit/
├── README.md                          # You are here
├── Doc/
│   ├── browser-cdp-explained.md       # CDP vs. DevTools MCP, browser.cdp_url
│   ├── fix-firecrawl-and-browser.md   # Firecrawl deps + browser sandbox fix
│   ├── install-secondary-hermes-docker.md # Second isolated Hermes in Docker
│   ├── install-mcp-chrome-dev-tools.md # Chrome DevTools MCP setup guide
│   ├── nice_to_have_tools_and_skills.md # Recommended extras: Firecrawl, CDP, Context7
│   ├── openclaw_migration.md          # OpenClaw → Hermes migration steps
│   └── run-multiple-hermes-profiles.md # Several bare-metal instances via profiles
├── install_hermes.sh                  # One-liner: curl installer wrapper
├── install_firecrawl_docker.sh        # Self-hosted Firecrawl via Docker Compose
├── install_autostart_services.sh      # Systemd autostart: Firecrawl + Chrome CDP
├── chrome_remote_debug.sh             # Switch headless CDP → visible Chrome window
├── migrate_docker_hermes_to_profile.sh # Docker instance → bare-metal profile
├── docker/
│   ├── hermes_docker_secondary.sh             # Secondary Docker Hermes helper
│   └── docker-compose.hermes-secondary.yml  # Secondary Docker Hermes Compose service
└── extras/
    └── install_obsidian.sh                  # Obsidian + 11 community plugins installer

🐳 Secondary Hermes in Docker (Alongside Bare-Metal)

If you already run Hermes on bare-metal and want a second isolated instance in Docker:

# 1) One-time setup wizard for the Docker instance
bash docker/hermes_docker_secondary.sh setup

# 2) Start the Docker gateway
bash docker/hermes_docker_secondary.sh start

# 3) Follow logs
bash docker/hermes_docker_secondary.sh logs

Defaults used by this toolkit:

  • Bare-metal data: ~/.hermes
  • Docker data: ~/.hermes-secondary
  • Docker API host port: 8643 (mapped to container 8642)

Quick interactive chat from the container:

bash docker/hermes_docker_secondary.sh shell
hermes

Full guide: Install a Secondary Hermes Agent in Docker


👥 Multiple Hermes Instances Without Docker (Profiles)

Hermes runs several independent agents from one bare-metal install. Profiles give each one its own config, keys, bot token, skills, sessions, memory and gateway service, while sharing the installed code:

# 1) Create a second instance, inheriting your working model config
hermes profile create research --clone

# 2) Use it — the create step also installs a wrapper script of the same name
research chat
research setup model

# 3) Give it its own gateway service (start is manual, not at boot)
research gateway install --start-now --no-start-on-login

# 4) See everything at a glance
hermes profile list
hermes gateway list
Path
default profile ~/.hermes/
Named profile ~/.hermes/profiles/<name>/
Its gateway service hermes-gateway-<name>.service (user service)

Give each profile its own bot token, and its own API_SERVER_PORT if you enable the API server — those are the only things that clash. Note that profiles isolate data, not privileges: every profile runs as your user. Use the Docker instance above when the second agent should be sandboxed.

Already running the Docker secondary agent and want it native? This moves it over without touching the container's data:

bash migrate_docker_hermes_to_profile.sh secondary

Full guide: Running Multiple Hermes Instances (Profiles)


🍓 Running on Raspberry Pi 4 (arm64)

The primary target of this toolkit is an x86-64 PC, but the full stack (Hermes gateway + self-hosted Firecrawl + always-on Chrome CDP) also runs comfortably on a Raspberry Pi 4 with 8 GB RAM.

Component Spec
Board Raspberry Pi 4 Model B, 8 GB RAM, 128 GB microSD
OS Ubuntu 26.04 LTS (arm64)
LLM Served from another machine on the LAN (OpenAI-compatible API, e.g. http://192.168.1.x:8090/v1)
Swap 4 GB (swapfile)

The Pi does not run the LLM. It runs Hermes and the tools, while inference happens on a GPU machine. Point Hermes at it with hermes setup model (custom OpenAI-compatible provider).

What works out of the box

  • Hermes Agent and gateway, including autostart at boot via its user service and linger.
  • Browser tools. Hermes downloads its own native arm64 Chromium into ~/.hermes/tools/.
  • Chrome CDP service. Google Chrome has no Linux arm64 build, so install_autostart_services.sh automatically uses Hermes' bundled Chromium instead. See Browser Automation: CDP Explained.
  • Firecrawl images. firecrawl, playwright-service and nuq-postgres all publish arm64 images.
  • chrome_remote_debug.sh uses the same Chrome → bundled-Chromium fallback (needs a desktop session for the visible window).

Pi-specific adjustments

1. Install Docker first. It is not preinstalled on Ubuntu for Pi:

sudo apt install -y docker.io docker-compose-v2 git
sudo usermod -aG docker $USER   # then log out and back in

2. Run install_firecrawl_docker.sh as usual. It detects arm64 and low-RAM machines and handles three problems that break the upstream docker-compose.yaml on a Pi:

Problem on the Pi What the script does
RabbitMQ crashes with .erlang.cookie: eacces: the healthcheck creates the cookie as root before the slow server starts runs RabbitMQ as uid 999 with a 120 s healthcheck grace period (applied on every platform, harmless on x86)
FoundationDB dies with Illegal instruction (exit 132): its arm64 build needs a newer CPU than the Pi 4's Cortex-A72 moves it to the optional fdb profile on arm64; Firecrawl uses Postgres by default anyway
The API misses its 60 s startup deadline and the 8 GB RAM is tight appends a 5 min startup timeout and lower concurrency to ~/firecrawl/.env (arm64 or < 12 GB RAM)

The fixes live in ~/firecrawl/docker-compose.override.yaml, which Compose merges automatically. The script regenerates that file on re-runs, unless you remove its first line to take ownership. The first start takes a few minutes, and the script waits for the API before it exits.

3. Add swap. Firecrawl, Chromium and Hermes together use most of the 8 GB, and the default 1 GB swap fills up. Add a second swapfile (safe even when the existing one is full):

sudo fallocate -l 3G /swapfile2 && sudo chmod 600 /swapfile2
sudo mkswap /swapfile2 && sudo swapon /swapfile2
echo '/swapfile2 none swap sw 0 0' | sudo tee -a /etc/fstab

Tips

  • Watch memory. Hermes logs system memory pressure is elevated and throttles background workers when RAM is tight. Check with free -h.
  • The always-on browser is optional. Skip chrome-cdp.service and browser.cdp_url if you don't need persistent logins, and Hermes will start Chromium only when needed.
  • If the LLM server changes IP, update base_url in ~/.hermes/config.yaml (both under model: and custom_providers:). Make sure the server listens on 0.0.0.0, not on one fixed address.

⚙️ Post-Installation Commands

hermes setup              # Re-run the full configuration wizard
hermes setup model        # Change model / provider
hermes config             # View current settings
hermes config edit        # Open config.yaml in your editor
hermes gateway start      # Launch messaging + cron gateway
hermes doctor             # Diagnose common issues
hermes update             # Pull latest version & bundled skills
hermes profile list       # List instances (see Profiles section above)
hermes gateway list       # Gateway status of every profile

📁 Where Files Live

After installation, everything is under ~/.hermes/:

  • Config: ~/.hermes/config.yaml
  • API Keys: ~/.hermes/.env
  • Data: ~/.hermes/cron/, ~/.hermes/sessions/, ~/.hermes/logs/
  • Agent Code: ~/.hermes/hermes-agent/

📌 Notes

  • This toolkit was built from a real-world installation on Ubuntu with a fully local LLM (no cloud API keys required for inference).
  • All scripts and guides are tested but may need minor adjustments depending on your distro or hardware.
  • Feel free to open an issue or submit a PR if you spot something outdated!

Releases

Packages

Contributors

Languages