AI

How to Set Up Hermes Agent: A Self-Hosted AI Agent With No Weekly Caps

November 27, 2026 · 6 min read · admin

After my posts on Grok Bot’s shrinking limits and how the hosted agents compare, the natural next step is running your own. I’ve already covered OpenClaw. This time it’s Hermes Agent from Nous Research, the open-source agent that’s taken off this year.

What is Hermes Agent?

Hermes is a self-hosted AI agent that runs on your own machine and talks to whatever model you point it at. Its big selling point is a built-in learning loop: it writes its own skills from experience, refines them as it uses them, and keeps a long-term memory of you and your preferences between sessions. Old conversations are stored in a local SQLite database with full-text search, so it can pull up something you discussed weeks ago.

Other things worth knowing:

  • Model-agnostic. Use Nous Portal, OpenRouter, Anthropic, OpenAI, Gemini, DeepSeek, or a local model.
  • Subagents. It can split a job into parallel tasks and hand them to sub-agents.
  • MCP support. Anything it can’t do natively, you can bolt on with an MCP server.
  • Messaging gateway. Talk to it from Telegram, Discord, Slack, WhatsApp, Signal, email, Home Assistant or Teams.
  • No weekly meter. You pay your model provider directly (or nothing, with a local model), and nobody can cut your allowance overnight.

The project moves fast. As of mid-November the latest stable release is v0.23.1, and new builds land almost daily.

What you need

  • Linux, macOS or WSL2 (native Windows and a desktop app are also available)
  • Git. The installer handles Python, Node.js and the rest.
  • A model: a Nous Portal account, an API key from a provider, or a local model with at least 64K tokens of context

Where to run it (homelab tip)

Don’t install an agent that can run shell commands on your daily-driver machine. Give it its own box. On Proxmox, a small Debian VM or LXC container is plenty, since the heavy lifting happens at your model provider (or on whatever machine serves your local model).

If you go the LXC route and want Hermes to sandbox its commands in Docker (recommended, see below), turn on nesting and keyctl under the container’s Options → Features so Docker can run inside it. A VM avoids that wrinkle entirely.

Step 1: Install Hermes

On Linux, macOS or WSL2, run the official one-line installer:

curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash

On native Windows, use PowerShell instead:

iex (irm https://hermes-agent.nousresearch.com/install.ps1)

Then reload your shell so the hermes command is on your path:

source ~/.bashrc   # or: source ~/.zshrc

If you’d rather have a GUI on a Mac or Windows PC, there’s also a Hermes Desktop installer on the official site. Only download it from hermes-agent.nousresearch.com. The docs have a whole page on look-alike phishing domains, so it’s worth double-checking the URL before you paste anything into a terminal.

Step 2: Pick a model provider

This is the most important step. The easiest path is Nous Portal, which logs you in, sets your model, and turns on the Tool Gateway (web search, image generation, text-to-speech and a browser) in one go:

hermes setup --portal

If you want to bring your own API key or subscription instead, run the full setup or the model picker:

hermes setup    # walks you through every option
hermes model    # just the provider and model picker

You can also set things directly. Hermes puts each value in the right file for you:

hermes config set OPENROUTER_API_KEY sk-or-...
hermes config set model <provider/model-name>

Running a local model? Hermes needs at least 64K tokens of context, and most local runners default to much less. Set it explicitly, for example --ctx-size 65536 in llama.cpp or -c 65536 in Ollama. Too small a context window is the most common reason a local setup acts broken.

Step 3: Make sure a basic chat works

Start Hermes. The TUI is the recommended interface:

hermes --tui    # modern interface
hermes          # classic CLI

Give it something specific that needs a tool, like “Check my current directory and tell me what looks like the main project file.” You’re good when the banner shows your model and provider, it answers without errors, it uses a tool, and you can keep the conversation going past one reply. Then quit and confirm it remembers:

hermes --continue   # or: hermes -c

Nous’s own advice here is good: if a plain chat doesn’t work, don’t add anything else yet. Fix the basics first.

Step 4: Lock it down before you go further

An agent with a terminal can do real damage if a prompt or a web page tricks it. Before you hook it up to anything:

  • Sandbox its terminal. Run its commands in Docker, or on a separate machine over SSH:
    hermes config set terminal.backend docker
    hermes config set terminal.backend ssh
  • Keep your real API keys out of the sandbox. With the Docker backend, the egress proxy hands the sandbox stand-in tokens instead of your actual keys: hermes egress setup && hermes egress start
  • Turn off tools you don’t need. hermes tools controls what’s enabled on each platform. If you want to start minimal, pick the Blank Slate mode in hermes setup, which starts with almost everything off.
  • Keep secrets in the right place. Keys and tokens live in ~/.hermes/.env, regular settings in ~/.hermes/config.yaml. Use hermes config set rather than hand-editing.

Step 5: Talk to it from your phone

Once the CLI works, set up the messaging gateway. It walks you through connecting Telegram, Discord, Slack, WhatsApp, Signal, email, Home Assistant or Microsoft Teams:

hermes gateway setup
hermes gateway status

Each platform has its own guide in the docs for creating the bot token. Whatever you use, set an allowlist so only your own account can message the bot. An open bot with shell access is an open shell.

Step 6: Keep it updated

Hermes ships constantly, so update often:

hermes update

If you run it in Docker instead, the stable image is nousresearch/hermes-agent:stable.

Troubleshooting

When something breaks, work through these in order:

hermes doctor           # finds config problems
hermes model            # re-check provider, model and login
hermes setup            # re-run setup if needed
hermes sessions list    # check saved sessions
hermes gateway status   # check the messaging gateway
  • Empty or broken replies: run hermes model and check the provider, model name and login.
  • A custom endpoint returns garbage: test the base URL and model name in another client first.
  • Gateway is running but the bot doesn’t answer: re-run hermes gateway setup and check the bot token and allowlist.
  • Local model acts confused: check that context is set to at least 64K.

Hermes or OpenClaw?

Both are self-hosted agents with skills, MCP support and chat-app gateways. Hermes’s angle is that it learns: it writes and improves its own skills and builds a memory of you over time, and Nous says it gets more out of open-source models than other agents do. If you’re planning to run local models in your homelab, that makes Hermes worth a look. If you already have OpenClaw set up and happy, there’s no rush to switch.

Sources: Hermes Agent Quickstart, Hermes Agent docs, DataCamp Hermes Agent tutorial, DeepSeek: Integrate with Hermes Agent, Releasebot: Hermes Agent v0.23.1.

Leave a Reply

Your email address will not be published. Required fields are marked *