Install Guide

2026 Hermes Agent Complete Install & Setup Guide:
Hands-On Tutorial That Proves It Works

nuzcloud Editorial Team 2026-05-23 9 min
At a glance

Installing Hermes Agent without running a real case leaves you guessing whether it actually works. This guide starts with a low-risk document task, then walks through the full 2026 Mac install and setup path—environment → install → configure → verify → run → troubleshoot. You will read sample text in an isolated test folder, generate a summary and todo list, write output files, and trace the full run in ~/.hermes/logs/. (Verified 2026-05-23; model names and pricing follow each provider's current docs.)

A successful launch is only step one. What matters is whether the model responds, files stay within boundaries, logs are traceable, and failures are diagnosable. The case study here is not a separate workflow article—it proves that install and configuration really work, so you can extend into real Hermes Agent workflows with confidence.

1Define the hands-on case first

Your first case must be low-risk, reversible, and verifiable—not a production repo or private folder on day one.

Element Fixed plan for this tutorial Pass criteria
Test directory ~/hermes-lab/ (delete anytime with rm -rf) Agent reads/writes only here
Input input/notes.md (3-5 paragraphs of meeting notes you write) CLI can read the full file
Output output/summary.md + output/todos.md Both files exist with sensible content
Logs ~/.hermes/logs/ Model calls and tool traces visible
Rollback Delete ~/hermes-lab/output/* Re-run produces consistent results

Create the skeleton once before verification:

mkdir -p ~/hermes-lab/{input,output}
# Edit ~/hermes-lab/input/notes.md with a few test paragraphs

2Prepare the install environment for the case

  • Hardware: Apple Silicon or Intel Mac; ≥16 GB RAM and ≥5 GB free disk recommended. Confirm chip and OS with uname -m and sw_vers.
  • Dependencies: only git --version is required upfront; Python 3.11, Node v22, ripgrep, and ffmpeg are handled by the official installer.
  • Network: reach GitHub raw and your LLM API endpoint (OpenRouter, Anthropic, etc.).
  • Account: at least one provider API key; store secrets only in ~/.hermes/.env with chmod 600.
  • Permissions: local admin account; approve macOS privacy prompts when file or terminal tools are first used.
⚠️Boundaries: do not touch production Git repos, real private files, saved browser passwords, or cloud admin credentials. Do not enable --yolo or approvals.mode: off for this case.

3Install Hermes Agent and confirm version

curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

Then source ~/.zshrc and run hermes setup or hermes model per the official flow. After install, verify:

  • which hermes → typically ~/.local/bin/hermes
  • hermes doctor shows no blockers (missing key prompts you to configure a model)
  • hermes update shows your version; code lives at ~/.hermes/hermes-agent/, data under ~/.hermes/

Do not proceed to case configuration until hermes doctor passes.

4Configure model and API key for the case

Run hermes model to pick a provider and default model (names and billing change—check the provider site). You can also write ~/.hermes/.env, for example:

# Example—adjust for your provider
OPENROUTER_API_KEY=sk-or-...
chmod 600 ~/.hermes/.env

Connectivity check: from ~/hermes-lab, start hermes and send "reply OK". If the API errors, run hermes config check before continuing the case.

5Set directory boundaries and permissions

For first verification, work inside the test directory: cd ~/hermes-lab before starting hermes. If you later use the Messaging Gateway, set MESSAGING_CWD=~/hermes-lab in ~/.hermes/.env so the agent does not start from a sensitive path (see the official security guide).

  • Keep approvals.mode: manual (default)—dangerous commands need human approval.
  • Advanced isolation: set terminal.backend: docker in ~/.hermes/config.yaml (recommended for production Gateway).
  • Never put API keys in files under ~/hermes-lab that might be tracked by Git.

6Pre-flight gates before the full case

  • Model ping: conversation returns a normal reply
  • Read file: ask the agent to summarize the first paragraph of input/notes.md
  • Write file: create output/ping.txt containing ok
  • Check logs: ls ~/.hermes/logs/—CLI session records should be traceable

If any gate fails, troubleshoot at that layer before running the full case.

7Run the complete hands-on case

From ~/hermes-lab, start hermes and use a clear task prompt (copy and adjust):

Work only in this directory. Read input/notes.md, write a summary under 200 words to output/summary.md, and list up to 5 actionable todos in output/todos.md as a Markdown list. Do not access paths outside this directory or run destructive shell commands.

If delete or system-config commands appear during execution, deny them at the CLI approval prompt—that confirms your safety settings are active.

8Verify, troubleshoot, and confirm rollback

Check Command / location
Output files cat ~/hermes-lab/output/summary.md, todos.md
Permission bleed Confirm no unexpected new files under ~/ or Desktop
Logs ~/.hermes/logs/ (Gateway often uses gateway.log)
Cost Provider dashboard for this run's token usage
Rollback rm -rf ~/hermes-lab/output/* then re-run

Layered failure diagnosis:

  • hermes: command not found → install layer: PATH, source ~/.zshrc
  • 401 / no model response → model layer: hermes model, .env permissions
  • Cannot read/write files → permission layer: working directory, MESSAGING_CWD, macOS privacy grants
  • hermes doctor config errors → config layer: hermes config migrate
  • Tool loops or off-topic output → task layer: shorten the prompt, pin output paths

9Scale from the test case to real workflows

After the case passes, expand permissions and automation in steps—not by skipping verification:

  • 1Read-only access to real source folders; keep output in a separate draft/ directory
  • 2Configure hermes gateway setup + gateway install for launchd persistence (plist at ~/Library/LaunchAgents/ai.hermes.gateway.plist)
  • 3For higher automation, evaluate Docker backend, command allowlists, and platform user allowlists

For a fuller pre-install checklist, see our Hermes Agent Mac Setup Checklist.

10Running the case on Mac mini is simpler

The install, configuration, and log checks in this guide run natively on macOS—Terminal, Homebrew, Docker, and launchd without WSL. Mac mini M4 draws roughly 4 W at idle; Apple Silicon unified memory makes it a strong silent node for long-running Hermes CLI and Gateway workloads. Gatekeeper and FileVault also reduce exposure when an agent stays online.

If you are upgrading this test case into a 7×24 workflow, Mac mini M4 is a cost-effective hardware starting point—get one now and run install and setup on a machine built for always-on work.

Case-driven quick reference
  • Define case directory and output standards
  • Official install + hermes doctor
  • Model key + test directory boundaries
  • Step gates → full case → logs and rollback
  • Then extend to Gateway and real workflows
nuzcloud · Mac Cloud

Run the Hermes Agent hands-on case on Mac mini

Dedicated Mac mini M4 bare metal, instant provisioning · built for always-on gateways, local agents, and remote dev. Give every step in this tutorial stable hardware underneath.

Mac Cloud M4 bare metal · instant
Get Now →