# How to use Hermes Agent: a step-by-step guide to the CLI

URL: https://agentvera.dev/en/blog/how-to-use-hermes-agent/ · Published: 2026-11-23

How to use Hermes Agent: install it, run hermes setup, pick a provider, set approvals, run it headless, resume sessions and add memory, skills, MCP and cron.

**In short:**

- Install with curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash, run hermes setup to choose a provider (Nous Portal, OpenRouter, Anthropic or a local model), then run hermes in a project.
- Approvals default to smart mode: a helper model approves low-risk commands, denies dangerous ones and asks about the rest. --yolo turns prompts off but never bypasses the hardline blocklist.
- hermes -z runs one task and prints only the answer; -c and -r resume sessions. Settings live in ~/.hermes/config.yaml, secrets in ~/.hermes/.env, MCP servers under mcp_servers.

To use Hermes Agent, install it with `curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash` (on Windows, `iex (irm https://hermes-agent.nousresearch.com/install.ps1)`), run `hermes setup` to pick a model provider, then run `hermes` in a project and describe the task. **Hermes keeps its own memory and writes its own skills as it works, and the model you use needs at least 64,000 tokens of context.**

This guide covers Hermes Agent as of November 2026 (version 0.23.3): install, setup and providers, the interface, approvals, headless runs, sessions, memory and skills, AGENTS.md, MCP, messaging and cron, and what it costs.

## What Hermes Agent is

[Hermes Agent](https://github.com/NousResearch/hermes-agent "Hermes Agent on GitHub") is an AI agent from Nous Research that runs in your terminal and, optionally, behind messaging apps. It is MIT-licensed. What sets it apart from most coding CLIs is that it is built to improve with use: it keeps notes about you and your projects, searches its past sessions, and writes reusable skills after complex tasks.

Releases come often. Version 0.23.3 shipped on 19 November 2026, and daily canary builds are published alongside stable releases.

## Step 1: install

```bash
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash   # macOS, Linux, WSL2
iex (irm https://hermes-agent.nousresearch.com/install.ps1)          # Windows PowerShell
```

The installer brings its own uv, a pinned Python 3.14, Node.js, ripgrep and FFmpeg, and by default Chromium for the browser tools. You only need Git, curl and tar. Add `--skip-browser` or `--skip-computer-use` to keep the install smaller. Reload your shell (`source ~/.zshrc`) and check with `hermes doctor`.

Older tutorials say Hermes needs Python 3.11; that is out of date, since the installer manages Python itself. There are also desktop apps for Windows and for Apple Silicon Macs (Intel Macs are not supported), and a Termux package for Android.

## Step 2: run setup and choose a provider

```bash
hermes setup            # full wizard
hermes setup --portal   # sign in with Nous Portal
hermes model            # change provider or model later
```

Hermes works with almost any provider: Nous Portal (300+ models), OpenRouter, Anthropic (OAuth or API key), OpenAI Codex login, Google AI Studio, xAI, DeepSeek, Kimi, MiniMax, Z.AI, Hugging Face, AWS Bedrock and any OpenAI-compatible endpoint. Secrets go in `~/.hermes/.env`, other settings in `~/.hermes/config.yaml`, and `hermes config set KEY VALUE` writes each to the right file:

```bash
hermes config set OPENROUTER_API_KEY sk-or-...
hermes config set model anthropic/claude-opus-4.6
```

**Local models.** `ollama launch hermes` sets everything up in one step. Manually, choose a custom endpoint with `http://127.0.0.1:11434/v1` and an empty key. Start the model with at least 64K of context (`-c 65536` in Ollama, `--ctx-size 65536` in llama.cpp); Hermes refuses smaller windows at startup.

## Step 3: work in a session

```bash
cd my-project
hermes          # classic interface
hermes --tui    # the newer interface the docs recommend
```

The slash commands you will use most:

- `/model`, `/reasoning` and `/fast` change the model and how hard it thinks.
- `/plan` writes a plan to `.hermes/plans/` before any change; `/goal` and `/loop` keep it working toward a target.
- `/undo`, `/rewind`, `/rollback` and `/diff` step back and show what changed.
- `/compress` shortens a long conversation and `/context` shows what fills it.
- `/branch` and `/worktree` (or `hermes -w`) put risky work in a separate git worktree.
- `/tools`, `/skills`, `/memory` and `/usage` show what the agent can do, knows and has spent.

Its tools cover the terminal, file reads and patches, web search, a browser, images, sub-agent delegation and scheduling. `hermes chat --toolsets "web,terminal"` limits a run to some of them.

## Step 4: approvals and YOLO

Hermes checks each shell command against a list of risky patterns (`rm -r`, `dd`, `DROP TABLE`, `curl | sh` and so on). What happens next depends on `approvals.mode`:

| Mode | What it does |
|---|---|
| `smart` (default) | A helper model rates the risk: low-risk commands run, dangerous ones are denied, unclear ones ask you |
| `manual` | Always asks before a risky command |
| `off` | No prompts, the same as `--yolo` |

Commands you approve with "always" are saved to `command_allowlist`, and `hermes approvals suggest` proposes entries from your history. A prompt you do not answer within 300 seconds counts as a denial.

`--yolo`, `/yolo` or `HERMES_YOLO_MODE=1` turn prompts off, but two things still apply: a hardline blocklist (`rm -rf /`, fork bombs) that nothing overrides, and your own `approvals.deny` patterns. If you run Hermes in a Docker, Modal or Daytona backend, the risky-command checks are skipped because the container counts as the boundary.

## Step 5: headless runs

```bash
hermes -z "add a unit test for the price formatter"
git diff | hermes -z "review this diff for bugs"
hermes chat -q "update the changelog" --oneshot
```

`hermes -z` prints only the final answer, which suits scripts. Its exit code is 0 when the task completes, 2 when it fails or is partial, and 130 when interrupted. In headless, cron and unattended runs, dangerous commands are denied by default, so a run cannot quietly delete files while you are away.

## Step 6: sessions and terminal backends

`hermes -c` continues the last session, and `hermes -r <id|title|latest>` opens a specific one. `hermes sessions list` shows them, and they can also be exported, renamed and pruned. Everything is stored in `~/.hermes/state.db`, which Hermes searches when it needs something from an earlier conversation.

Commands run on your machine by default. Set `terminal.backend` in `config.yaml` to `docker`, `ssh`, `modal`, `daytona` or `vercel_sandbox` to run them elsewhere; for SSH, put `TERMINAL_SSH_HOST`, `TERMINAL_SSH_USER` and `TERMINAL_SSH_KEY` in `.env`.

## Step 7: memory, skills and AGENTS.md

**Memory.** Hermes keeps two short files: `~/.hermes/memories/MEMORY.md` for its own notes (up to 2,200 characters) and `USER.md` for your preferences (up to 1,375). It edits them with its `memory` tool. They load as a snapshot when a session starts, so a change shows up in the next session. Set `memory.write_approval: true` to review each write with `/memory pending`.

**Skills.** After complex tasks Hermes writes skills to `~/.hermes/skills/` as `SKILL.md` files in the agentskills.io format, and patches them as it learns. `hermes skills search` and `hermes skills install` add skills from the hub, each passing a security scan; `skills.external_dirs` can add shared folders such as `~/.agents/skills/`. Every skill runs as `/skill-name`.

**Project rules.** Hermes loads one project file, the first it finds of `.hermes.md` or `HERMES.md`, `AGENTS.override.md`, `AGENTS.md`, `CLAUDE.md` and `.cursorrules`. In a git repository, AGENTS.md files merge from the root down to your folder, and `/init` writes a new one. A file you already keep for Codex or Claude Code works as it is; our [AGENTS.md guide](/en/blog/agents-md/ "AGENTS.md guide") covers what to put in it. Hermes scans these files for prompt injection and blocks a file that matches.

## Step 8: MCP, messaging and cron

**MCP.** Add servers under `mcp_servers:` in `config.yaml`: `command`, `args` and `env` for stdio servers, `url` and `headers` for HTTP, and `auth: oauth` for hosted ones. `hermes mcp catalog` and `hermes mcp install` add servers from a catalog, and `/reload-mcp` reloads them in a session. Tools appear as `mcp_<server>_<tool>`.

**Messaging.** `hermes gateway setup` connects Hermes to Telegram, Discord, Slack, WhatsApp, Signal, Email, Matrix, Microsoft Teams and more, and `hermes gateway install` runs it as a service. Everyone is denied by default; an unknown user gets a pairing code that you approve with `hermes pairing approve`. Do not set `GATEWAY_ALLOW_ALL_USERS=true` on a bot that can run commands.

**Cron.** `/cron add`, `hermes cron create` or plain language ("every weekday at 9am") schedule jobs, and the results can go back to Telegram or another channel. Jobs only run while the gateway is running.

## What Hermes Agent costs (as of November 2026)

| Option | Price | Notes |
|---|---|---|
| Hermes Agent | Free | MIT license |
| Your own API key or local model | Provider’s price, or $0 locally | Any supported provider |
| Nous Portal Free | $0, pay as you go | Free models only, no hosted tools |
| Nous Portal Plus | $20/month | Hosted tools, a small cloud agent |
| Nous Portal Super | $100/month | 5x Plus usage |
| Nous Portal Ultra | $200/month | 10x Plus usage |

Hosted tools on paid plans include web search, image generation, text to speech and a cloud browser. Check the [Nous Portal page](https://portal.nousresearch.com/cloud "Nous Portal") before you decide.

## Common mistakes

- **A model with a small context window.** Hermes rejects anything under 64,000 tokens, which catches most local setups that use Ollama’s default.
- **Expecting memory edits right away.** Memory loads when a session starts; start a new one to see a change.
- **Cron jobs that never run.** They need the gateway daemon; `hermes cron tick` alone does not run agent jobs.
- **A heavy shell profile.** An interactive `.zshrc` or `.bashrc` can hang the agent’s shells, because Hermes runs them non-interactively.
- **An open messaging bot.** Keep the pairing flow or an allowlist; a bot anyone can talk to can run commands on your machine.

## Running Hermes Agent next to other CLIs in AgentVera

If Hermes is your only agent, its own interface may be all you need. It gets harder when Hermes runs next to Claude Code, Codex or Gemini CLI on the same project. [AgentVera](/en/ "AgentVera") is a desktop app that runs these CLIs side by side in real terminals, with your own installs and keys. [Hermes support](/en/agents/hermes-agent/ "Hermes Agent in AgentVera") works like this:

- **One session per agent.** AgentVera reads the session id Hermes prints at startup and reopens it with `--resume <id>` next time, so the conversation survives an app restart.
- **Model and permissions.** The model you pick reaches Hermes with `-m`, and the full-permission setting starts it with `--yolo`. A role you give the agent goes in as a system prompt Hermes never stores in the session.
- **One account per agent.** Each Hermes account under Settings → Accounts gets its own sign-in and config, while sessions, skills and memories stay shared.
- **MCP.** Servers from AgentVera’s [MCP manager](/en/features/mcp-manager/ "MCP manager") reach Hermes through its managed config, layered over yours, so nothing in your own `config.yaml` changes.
- **Panes and review.** Run Hermes in the [workspace](/en/features/workspace/ "Workspace") grid beside other agents and check its changes with [code review](/en/features/code-review/ "Code review").

The free plan runs 2 agents at once and includes MCP, Git, Docker, SSH, code review and token savings. Pro is $9.99 a month and has no agent limit; you can try Pro free for 7 days, and if you cancel before it ends you are not charged. To try it, [download AgentVera](/en/download/ "Download AgentVera").

## Wrapping up

Getting started with Hermes Agent takes two commands: the installer and `hermes setup`. The choices that matter come after: a model with at least 64K of context, an approval mode that fits the machine, project rules in `AGENTS.md`, and a locked-down gateway if you connect a messaging app. From there, its memory and skills make it more useful the longer you use it.

Sources: [Hermes Agent on GitHub](https://github.com/NousResearch/hermes-agent "Hermes Agent README"), [releases](https://github.com/NousResearch/hermes-agent/releases "Hermes Agent releases"), [installation](https://hermes-agent.nousresearch.com/docs/getting-started/installation "Hermes installation"), [quickstart](https://hermes-agent.nousresearch.com/docs/getting-started/quickstart "Hermes quickstart"), [CLI commands](https://hermes-agent.nousresearch.com/docs/reference/cli-commands "Hermes CLI commands"), [security and approvals](https://hermes-agent.nousresearch.com/docs/user-guide/security "Hermes security"), [memory](https://hermes-agent.nousresearch.com/docs/user-guide/features/memory "Hermes memory"), [context files](https://hermes-agent.nousresearch.com/docs/user-guide/features/context-files "Hermes context files"), [MCP](https://hermes-agent.nousresearch.com/docs/user-guide/features/mcp "Hermes MCP"), [Ollama integration](https://docs.ollama.com/integrations/hermes "Ollama and Hermes").

## Frequently asked questions

**Is Hermes Agent free?** Yes. Hermes Agent is MIT-licensed and costs nothing. You pay for the model: an API key from a provider, a local model, or a Nous Portal plan (Free pay-as-you-go, Plus at $20 a month, Super at $100, Ultra at $200 as of November 2026). Paid Portal plans add hosted tools such as web search and a cloud agent.

**Which models does Hermes Agent support?** Almost any. Nous Portal lists over 300 models, and Hermes also works with OpenRouter, Anthropic, OpenAI Codex login, Google AI Studio, xAI, DeepSeek, Kimi, MiniMax, Z.AI, Hugging Face, AWS Bedrock and any OpenAI-compatible endpoint such as Ollama, vLLM or LM Studio. The model needs at least 64,000 tokens of context.

**Can Hermes Agent run with a local model through Ollama?** Yes. ollama launch hermes installs and configures it in one step. Manually, choose a custom endpoint in hermes model with the base URL http://127.0.0.1:11434/v1 and an empty key, and start the model with at least 64K of context, because Hermes rejects smaller windows.

**How do I resume a Hermes Agent session?** hermes -c continues the last session and hermes -r <id or title> opens a specific one; /resume does the same inside a session. hermes sessions list shows what is stored. Sessions are kept in ~/.hermes/state.db.

**Does Hermes Agent read AGENTS.md or CLAUDE.md?** Yes. It loads one project file, taking the first match of .hermes.md or HERMES.md, AGENTS.override.md, AGENTS.md, CLAUDE.md and .cursorrules. Inside a git repository, AGENTS.md files are merged from the root down to your working folder, and /init writes a new AGENTS.md.

---

**About AgentVera.** AgentVera is a desktop app for macOS, Windows and Linux, built by Solviera Teknoloji. It runs 18 AI coding agents (Claude Code, Codex, Gemini CLI, Copilot, Cursor, Antigravity, opencode, Hermes, Qwen Code, Kimi Code, Kiro, Amp, Droid, Goose, Vibe, Crush, Aider, Cline) side by side, per project, in real terminals with the user's own CLI installs and logins. The free plan runs 2 agents at once. Download: https://agentvera.dev/en/download/ · Pricing: https://agentvera.dev/en/pricing/
