How to Install Hermes Agent: Complete Step-by-Step Guide (2025)
By Jonathan Ben Haim · · 15 min read
Last updated:
What Is Hermes Agent and Why Is Everyone Talking About It?
Hermes Agent is an open-source AI agent built by Nous Research — and it's different from every other AI tool you've used.
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 literally gets smarter 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 - Auto-generated skills 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) support for extended tool capabilities - Runs on a $5 VPS — you control it 24/7
This guide walks through the complete installation process, from a fresh machine to a running Hermes Agent connected to your preferred messaging platform.
Prerequisites
Hardware options: - Local machine: Works on macOS, Linux, or Windows (WSL2) - VPS (recommended): Any VPS running Linux — Hetzner CX11 (€3.49/month), DigitalOcean Droplet ($4/month), or Oracle Cloud Free Tier (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 Discord server with admin access - OR Slack workspace
Installation Method 1: One-Line Installer (Recommended)
The fastest way to install Hermes Agent is with the official one-line installer:
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
Installation Method 2: pip Install
If you prefer a pure Python install:
pip install hermes-agent
hermes postinstall # installs Node.js, browser, ripgrep, ffmpeg and runs setup
Requirements: Python 3.11+ must already be installed.
Installation Method 3: Windows (PowerShell)
Windows native support is in early beta. Run from PowerShell:
iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)
Note: Windows requires WSL2 for full functionality. For the best experience on Windows, install WSL2 first:
wsl --install
Then run the Linux one-line installer from inside the WSL shell.
Step 1: Run the Setup Wizard
After installation, run:
hermes setup
You'll 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.
Step 2: Choose Your AI Provider
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 their own gateway that 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 and create an API key 2. When prompted, enter your API key 3. Select your preferred model (claude-sonnet-4-20250514 recommended for most tasks)
Option C: Ollama (local models, free)
For completely free local operation:
# 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 choosing.
Step 3: Configure Your Messaging Gateway
This is where Hermes gets interesting — you connect it to a messaging platform so you can talk to your agent from anywhere.
Option A: Telegram (Easiest — Recommended)
Create a Telegram bot:
- Open Telegram and search for
@BotFather - Send
/newbot - Choose a name for your bot (e.g., "My Hermes Agent")
- Choose a username (must end in
bot, e.g.,my_hermes_bot) - 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:
- Go to discord.com/developers/applications
- Click New Application, name it
- Go to Bot section, click Add Bot
- Copy the bot token
- Go to OAuth2 → URL Generator, select bot scope and necessary permissions
- Use the generated URL to invite the bot to your server
In Hermes setup: Select Discord and paste your bot token.
Option C: Slack
Create a Slack app:
- Go to api.slack.com/apps and click Create New App
- Choose From scratch, name it, select your workspace
- Go to OAuth & Permissions, add bot token scopes:
chat:write,im:history,im:read - Install the app to your workspace
- Copy the Bot User OAuth Token
In Hermes setup: Select Slack and paste your bot token.
Option D: CLI Only (No Messaging Platform)
If you just want to use Hermes from the terminal:
hermes # classic terminal interface
hermes --tui # newer terminal UI with modal overlays
Step 4: Start Hermes and Test It
hermes
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.
Step 5: Deploy Hermes on a VPS (For 24/7 Operation)
Running Hermes on your local machine means it only works when your computer is on. For a proper always-on agent, deploy it on a VPS.
Recommended VPS specs: - Hetzner CX11 (€3.49/month, 1 vCPU, 2GB RAM) — sufficient for most models - Use Ollama on a larger VPS (CX32 with 4 vCPU, 8GB RAM) for local model hosting
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
Keep Hermes running with systemd:
nano /etc/systemd/system/hermes.service
[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
systemctl daemon-reload
systemctl enable hermes
systemctl start hermes
systemctl status hermes
Now Hermes runs 24/7 on your VPS, accessible through your messaging platform from anywhere.
Step 6: Configure Tools and Capabilities
Hermes comes with a set of built-in tools. Configure which ones are active:
hermes tools
Default tools: - Web search - File operations - Code execution - Shell commands - Browser automation
Enable MCP servers for extended capabilities:
hermes config set mcp.servers '[{"name": "your-mcp-server", "url": "http://your-mcp-server/sse"}]'
For example, connect to your n8n instance via the n8n-MCP server to let Hermes build and manage your workflows.
Step 7: Set Up Scheduled Automations
One of Hermes's most powerful features is natural language scheduling:
Tell Hermes (via chat or terminal):
> Every morning at 7am, search for the top AI news stories, summarize them in 5 bullets, and send me a briefing on Telegram
Hermes creates a scheduled task that runs automatically — no cron job setup required.
More examples:
> At 9pm every Sunday, summarize what I accomplished this week based on our conversations
> Every Monday at 8am, check the weather in Tel Aviv and send me a weekly forecast
> Daily at 2pm, remind me to check my email and prioritize responses
Hermes Agent vs. Other AI Agents: Why It's Different
| Feature | Hermes | Standard ChatGPT | Claude.ai | OpenClaw |
|---|---|---|---|---|
| Persistent memory | ✅ | ❌ | Limited | ✅ |
| Self-improving skills | ✅ | ❌ | ❌ | ❌ |
| Messaging platforms | ✅ | ❌ | ❌ | ✅ |
| Local/VPS hosting | ✅ | ❌ | ❌ | ✅ |
| Model agnostic | ✅ | ❌ | ❌ | ✅ |
| MCP support | ✅ | Limited | ✅ | ✅ |
| Scheduled tasks | ✅ | ❌ | ❌ | Limited |
| Open source | ✅ | ❌ | ❌ | ✅ |
| Cost | API costs only | Subscription | Subscription | API costs only |
Advanced Configuration
Switch AI model at any time:
hermes model
Full configuration wizard:
hermes setup
Individual config settings:
hermes config set key value
View current configuration:
hermes config list
Reset to fresh state:
hermes config reset
Troubleshooting Common Issues
"Model context window too small" Your model needs at least 64K context. For Ollama:
ollama run your-model --ctx-size 65536
Telegram bot not responding - Verify the bot token is correct - Make sure you started a chat with the bot first (Telegram requires user-initiated contact) - Check: systemctl status hermes if running as a service
"Command not found: hermes"
source ~/.bashrc
# or
export PATH="$HOME/.hermes/bin:$PATH"
Memory/skills not persisting between sessions By default, data is stored in ~/.hermes/. If you're running on a VPS, make sure this directory persists between restarts (it should by default with the systemd setup above).
What to Build With Hermes
With Hermes running 24/7 on your VPS, some ideas that leverage its unique capabilities:
Personal AI assistant: Daily briefings, calendar summaries, email prioritization — all delivered to your Telegram.
Research agent: Tell Hermes to monitor specific topics, summarize weekly developments, and send reports.
Content pipeline: Feed Hermes a topic, have it research, draft, and queue content to your scheduler.
Business monitoring: Monitor competitor websites, price changes, or industry news and alert you to significant changes.
The Lazy Leader use case: Hermes can run autonomously on your Hetzner VPS, monitor RSS feeds and newsletters relevant to your content topics, compile a daily brief, and send it via Telegram — completely hands-off.
This guide is part of The Lazy Leader series. Subscribe for weekly automation and AI infrastructure guides.