# How to Install Hermes Agent: Step-by-Step Guide

> Install Hermes Agent with the one-line installer, pip, or WSL2. Connect Telegram, Discord, or Slack and run it 24/7 on a VPS. Step-by-step with commands.

By Jonathan Ben Haim. Updated 2026-11-29. Source: https://jonathanai.io/blog/how-to-install-hermes-agent

Most AI chats start from zero every time. You explain yourself again, and the tool forgets what you said last week. Hermes Agent takes a different approach. It keeps memory across sessions, creates its own skills, and can message you on the apps you already use.

Last updated: May 25, 2026

**In short:** Hermes Agent is an open-source AI agent built by Nous Research. You can install it with a one-line installer, with pip, or on Windows through WSL2. Once it runs, you can connect it to Telegram, Discord, or Slack and host it on a VPS to keep it running 24/7.

## Key takeaways

- Hermes Agent is open source and built by Nous Research.
- The one-line installer needs Python 3.11 or higher, and the pip method requires Python 3.11+ to already be installed.
- Hermes needs a model with at least 64,000 tokens of context window, or it is rejected at startup.
- Hetzner CX11 costs €3.49/month and DigitalOcean Droplet costs $4/month as VPS options.
- You can set up Telegram in the Hermes setup by pasting a bot token from @BotFather.
- A systemd service keeps Hermes running 24/7 on your VPS.

## What is Hermes Agent?

Hermes Agent is an open-source AI agent built by Nous Research. Unlike most AI tools, it does not start fresh every conversation.

Most AI tools are stateless: every conversation starts fresh. Hermes is different. It has a built-in learning loop. It creates skills from experience, remembers past conversations, builds a model of who you are across sessions, and gets more useful the longer you use it.

The pitch from Nous Research: "It's not a coding copilot tethered to an IDE or a chatbot wrapper around a single API. It's an autonomous agent that gets more capable the longer it runs."

Key capabilities:

- [Persistent memory across all sessions](/blog/everos-persistent-memory-ai-agents)
- [Auto-generated skills](/blog/turn-technical-book-into-claude-skill) it creates and reuses autonomously
- Natural language cron scheduling ("send me a briefing every morning at 7am")
- Lives where you already are: Telegram, Discord, Slack, WhatsApp, Signal, Email
- Works with any AI model: Claude, GPT-4, Gemini, local Ollama models
- MCP ([Model Context Protocol](/blog/turn-any-api-into-mcp-server)) support for extended tool capabilities
- Runs on a $5 VPS, and you control it 24/7

This guide walks through the full installation process. You will go from a fresh machine to a running Hermes Agent connected to your preferred messaging platform.

## What do you need before you install Hermes Agent?

You need a machine or VPS that runs Linux, macOS, or Windows with WSL2, plus Python 3.11 or higher. You also need an API key for an AI model provider, or [Ollama for local models](/blog/ollama-vs-lm-studio). A messaging platform is optional but recommended.

**Hardware options:**

- **Local machine:** Works on macOS, Linux, or Windows (WSL2).
- **VPS (recommended):** Any VPS running Linux. Options include Hetzner CX11 (€3.49/month), DigitalOcean Droplet ($4/month), or [Oracle Cloud Free Tier](/blog/free-n8n-hosting-oracle-cloud) (actually free).

**Software requirements:**

- Python 3.11+ (Hermes handles most dependencies automatically)
- Git (for the git installer method)
- An API key for at least one AI model provider (or Ollama for local models)

**Messaging platform (optional but recommended):**

- A Telegram bot token (easiest to set up)
- OR a Discord server with admin access
- OR a Slack workspace

## How do you install Hermes Agent with the one-line installer?

Run the official one-line installer, then reload your shell and check the version. This is the fastest method and the one the guide recommends.

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

This command automatically:

- Detects your operating system (Linux, macOS, WSL2, even Termux on Android)
- Installs Python 3.11 if not present
- Installs Node.js, ripgrep, ffmpeg, and other dependencies
- Clones the Hermes repository
- Creates a Python virtual environment
- Installs all Python dependencies
- Adds `hermes` to your PATH

After installation completes, restart your terminal or run:

```
source ~/.bashrc  # or ~/.zshrc on macOS
```

Verify the installation:

```
hermes --version
```

## How do you install Hermes Agent with pip?

Install it with pip if you prefer a pure Python install. Then run the postinstall command to set up the extra tools.

```
pip install hermes-agent
hermes postinstall  # installs Node.js, browser, ripgrep, ffmpeg and runs setup
```

Python 3.11+ must already be installed before you start.

## How do you install Hermes Agent on Windows?

Windows native support is in early beta, but the guide says Windows requires WSL2 for full functionality. Install WSL2 first, then run the Linux installer from inside the WSL shell.

Run this in PowerShell to start the native installer:

```
iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)
```

For the best experience on Windows, install WSL2 first:

```
wsl --install
```

Then run the Linux one-line installer from inside the WSL shell.

## How do you run the Hermes setup wizard?

Run `hermes setup` after installation and choose Quick setup for your first install. Quick setup covers the provider, the model, and messaging.

```
hermes setup
```

You will see:

```
How would you like to set up Hermes?
→ Quick setup ,  provider, model & messaging (recommended)
  Full setup ,  configure everything
```

Choose **Quick setup** for your first install.

## How do you choose an AI provider for Hermes?

Pick one provider during setup. Nous Research gives you a gateway with 300+ models. You can also connect Anthropic, OpenAI, Google, or Ollama for local models.

Hermes will ask which AI provider you want to use:

```
Which AI provider would you like to use?
→ Nous Research (Tool Gateway ,  300+ models, one subscription)
  Anthropic (Claude)
  OpenAI (GPT-4o, etc.)
  Google (Gemini)
  Ollama (local models, free)
  Other
```

### Option A: Nous Research Tool Gateway (easiest)

Nous Research offers its own gateway. It gives you access to 300+ models plus built-in tools (web search, image generation, TTS, cloud browser) without managing individual API keys. Run:

```
hermes login
```

This logs you into the Nous platform and sets up everything in one command.

### Option B: Anthropic (Claude)

If you want to use Claude:

1. Go to [console.anthropic.com](https://console.anthropic.com) and create an API key.
2. When prompted, enter your API key.
3. Select your preferred model. The guide recommends claude-sonnet-4-20250514 for most tasks.

### Option C: Ollama (local models, free)

For completely free local operation, install Ollama and pull a model. The model needs at least a 64K context window.

```
# Install Ollama first
curl -fsSL https://ollama.ai/install.sh | sh

# Pull a capable model (requires at least 64K context window)
ollama pull qwen2.5:32b  # Good balance of capability and speed
# OR
ollama pull llama3.3:70b  # More capable, needs more RAM
```

Then select Ollama in the Hermes setup and point it to `http://127.0.0.1:11434/v1`.

**Important:** Hermes requires a model with at least 64,000 tokens of context window. Models with smaller windows are rejected at startup. Check your model's context size before you choose it.

## How do you connect Hermes to a messaging app?

Connect Hermes to Telegram, Discord, or Slack so you can talk to your agent from anywhere. Telegram is the easiest option. You can also skip messaging and use the terminal only.

### Option A: Telegram (easiest, recommended)

Create a Telegram bot:

1. Open Telegram and search for @BotFather.
2. Send `/newbot`.
3. Choose a name for your bot (for example, "My Hermes Agent").
4. Choose a username. It must end in `bot`, for example `my_hermes_bot`.
5. BotFather gives you a bot token. Copy it.

In the Hermes setup:

```
Which messaging platform?
→ Telegram
Enter your bot token: [paste your token]
```

Hermes will connect and confirm. You can now message your bot on Telegram.

### Option B: Discord

Create a Discord application:

1. Go to [discord.com/developers/applications](https://discord.com/developers/applications).
2. Click **New Application** and name it.
3. Go to the **Bot** section and click **Add Bot**.
4. Copy the bot token.
5. Go to **OAuth2 → URL Generator**, select the bot scope and the permissions you need.
6. Use the generated URL to invite the bot to your server.

In the Hermes setup, select Discord and paste your bot token.

### Option C: Slack

Create a Slack app:

1. Go to [api.slack.com/apps](https://api.slack.com/apps) and click **Create New App**.
2. Choose **From scratch**, name the app, and select your workspace.
3. Go to **OAuth & Permissions** and add these bot token scopes: `chat:write`, `im:history`, `im:read`.
4. Install the app to your workspace.
5. Copy the Bot User OAuth Token.

In the Hermes setup, select Slack and paste your bot token.

### Option D: CLI only (no messaging platform)

If you only want to use Hermes from the terminal:

```
hermes  # classic terminal interface
hermes --tui  # newer terminal UI with modal overlays
```

## How do you start Hermes and test it?

Run `hermes` in the terminal. The first run sets up your memory database and skill library, so give it 30 to 60 seconds. Then send a few test commands.

```
hermes
```

The first run initializes your memory database and skill library. Give it 30-60 seconds.

You should see:

```
> Hello! I'm Hermes, your self-improving AI agent.
> I learn from every interaction and get better over time.
```

Test commands to try:

```
> Summarize what you know about me so far
> What tools do you have available?
> Search the web for the latest news about AI agents
> Set a reminder for tomorrow at 9am: review my n8n workflows
> Create a skill for summarizing long documents
```

If you set up Telegram, send a message to your bot. You should get a response within a few seconds.

## How do you run Hermes on a VPS 24/7?

Install Hermes on a VPS and run it as a systemd service. A [local machine](/blog/turn-old-pc-home-server-local-ai) only runs Hermes while the computer is on, so a VPS is the better choice for an always-on agent.

Recommended VPS specs:

- Hetzner CX11 (€3.49/month, 1 vCPU, 2GB RAM), which is sufficient for most models
- A larger VPS, such as CX32 with 4 vCPU and 8GB RAM, if you want to host local models with Ollama

SSH into your VPS and install Hermes:

```
ssh root@YOUR_VPS_IP
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
source ~/.bashrc
hermes setup
```

Create the systemd service file:

```
nano /etc/systemd/system/hermes.service
```

Add this configuration:

```
[Unit]
Description=Hermes AI Agent
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/root
ExecStart=/root/.hermes/bin/hermes
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
```

Then reload systemd, enable the service, and
