Invite a friend, get 1 month of Pro freeHow it works

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

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.

Solviera Teknoloji 9 min read

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 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

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

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:

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

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:

ModeWhat it does
smart (default)A helper model rates the risk: low-risk commands run, dangerous ones are denied, unclear ones ask you
manualAlways asks before a risky command
offNo 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

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 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)

OptionPriceNotes
Hermes AgentFreeMIT license
Your own API key or local modelProvider’s price, or $0 locallyAny supported provider
Nous Portal Free$0, pay as you goFree models only, no hosted tools
Nous Portal Plus$20/monthHosted tools, a small cloud agent
Nous Portal Super$100/month5x Plus usage
Nous Portal Ultra$200/month10x Plus usage

Hosted tools on paid plans include web search, image generation, text to speech and a cloud browser. Check the Nous Portal page 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 is a desktop app that runs these CLIs side by side in real terminals, with your own installs and keys. Hermes support 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 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 grid beside other agents and check its changes with 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.

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, releases, installation, quickstart, CLI commands, security and approvals, memory, context files, MCP, Ollama integration.

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.

Bring your agents to one desk.

Download AgentVera for free; your installed CLIs are ready to go.

More posts