Free guide

Set Up Hermes Agent, Safely

Install Nous Research’s free, open-source AI agent, connect a model, talk to it from Telegram, and keep it on a short leash.

Time
About 20 minutes
Cost
Hermes is free (MIT licence). You pay for the AI model you connect.
Tools
Hermes Agent, An AI model provider, Telegram
Updated

Most AI tools forget you the moment you close the tab. Hermes doesn’t.

Hermes Agent is a free, open-source AI assistant from Nous Research. It lives on your computer or a small server, remembers what you tell it, can use tools, and you can message it from Telegram, WhatsApp, Slack and more.

That’s powerful. It’s also exactly why you set it up carefully. An agent that can run commands on your computer should ask before it does anything big.

This guide gets you from nothing to a Hermes you can message from your phone, with the safety settings switched on.

Checked against Hermes v0.23.3 (November 2026). Hermes moves fast, so if a command here doesn’t match, the official docs win.

What you need

  • A computer that can stay on: a Mac, Linux, or Windows. For always-on use, a small cloud server works too.
  • An AI model account. Hermes doesn’t come with a brain. You connect one: OpenRouter, Anthropic, Google, xAI, DeepSeek, a local model and others. The model needs a context window of at least 64K tokens.
  • Telegram on your phone, if you want to message it.
  • About 20 minutes.

Step 1: Install it

On a Mac, Linux, or Windows with WSL2, open Terminal and run:

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

On Windows without WSL, open PowerShell and run:

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

The installer sets up everything Hermes needs, including its own Python. When it finishes, reload your terminal:

source ~/.zshrc

(Use source ~/.bashrc if your terminal uses bash.)

The rest is free

Unlock the full guide

Tell me your first name and email and the rest of this guide opens right here. You’ll also get every new free guide as it comes out.

Step 2: Choose your model

Run the setup wizard:

hermes setup

Or, to just pick a provider and model:

hermes model

If you’re not sure, start with OpenRouter. One account gives you access to many models, so you can switch later without starting again.

Your keys are saved in ~/.hermes/.env and your settings in ~/.hermes/config.yaml. To add a key by hand:

hermes config set OPENROUTER_API_KEY your-key-here

Never paste API keys into a chat with the agent, a screenshot or a shared doc.

Step 3: Say hello

Start a chat in your terminal:

hermes

Try these first. They teach it about you, and they show you how it thinks:

Ask me 10 questions about my work, my week and how I like to be helped. Then save what you learn about me.
What can you do on this computer right now? List your tools and what each one needs permission for.

Type /exit when you’re done.

Step 4: Put the leash on

Do this before you give it real work.

Keep approvals on. Hermes asks before running risky commands. The default mode is smart. If you want it to ask before everything, open ~/.hermes/config.yaml and set:

approvals:
  mode: manual

Never switch approvals off on your main computer. Not mode: off, not --yolo. The official docs say to use those only in trusted environments.

Give it a sandbox. If Docker is installed, you can make Hermes run its commands inside a container instead of directly on your computer:

hermes config set terminal.backend docker

Then the worst it can break is the container.

Keep it away from: your banking, your password manager, your two-factor codes, and anything that can send money. An assistant doesn’t need those to be useful.

Step 5: Message it from Telegram

First, make a Telegram bot:

  1. In Telegram, message @BotFather and send /newbot.
  2. Give it a name and a username. BotFather replies with a bot token. Keep it private.
  3. Get your own Telegram user ID (message @userinfobot, which replies with your number).

Now connect it to Hermes:

hermes gateway setup

Choose Telegram, paste the bot token, and when it asks who may use the bot, give only your own user ID. That allowlist is what stops strangers from talking to your agent. Hermes denies unknown users by default. Keep it that way, and never set GATEWAY_ALLOW_ALL_USERS=true.

Start it:

hermes gateway start

Message your bot. If Hermes asks you to approve a pairing, run the command it shows you, for example hermes pairing approve telegram ABC123. Check it’s running any time with hermes gateway status.

Step 6: Teach it who you are

Hermes keeps a few plain files you can open and edit:

  • ~/.hermes/SOUL.md: its personality and how it talks to you. Edit this.
  • ~/.hermes/memories/USER.md and MEMORY.md: what it has learned about you. Read these now and then, and delete anything wrong.

A short SOUL.md to start with:

You are my assistant. Be brief. Lead with the answer.
Ask before doing anything that costs money, sends a message to another person, or deletes a file.
When you are not sure, say so.

Step 7: Add skills, carefully

Skills are add-ons that teach Hermes new jobs. Browse and search them:

hermes skills browse
hermes skills search calendar

Install one with hermes skills install and the skill’s name. Hermes runs a security scan first. Still, read what a skill does before you install it. A skill is code someone else wrote, running with your agent’s permissions.

Start with one or two. Add more when you actually need them.

Keep it up to date

Check for updates, then update:

hermes update --check
hermes update

To remove it, start with a dry run so you see what would go:

hermes uninstall --dry-run
hermes uninstall

What to ask it first

A few jobs that are useful from day one and low risk:

  • “Plan my day: my top three things, from what I’ve told you this week.”
  • “When I send you a voice note, turn it into a to-do list.”
  • “Summarise this article in five lines and tell me if it’s worth reading in full.”
  • “Draft a reply to this message. Don’t send it. Show me first.”

That last line, “Don’t send it, show me first”, is a good habit for everything.

Want more like this?

Every new guide goes to my list first. When my courses and paid skills open, the list hears about them first too. If you unlocked this guide, you’re already on it.