Tutorial

Hermes Agent Quickstart: Install, Configure & Deploy in 10 Minutes

Hermes Agent by Nous Research is an open-source autonomous agent framework with a closed learning loop — it remembers context across sessions, auto-generates reusable skills, and connects to Telegram, Discord, Slack, and WhatsApp out of the box. This guide walks you through installation, configuration, chat platform integration, and deployment on a $5/month VPS. Total setup time: under 10 minutes.

Table of Contents

  1. 1. What Is Hermes Agent
  2. 2. Prerequisites
  3. 3. Step 1: Install
  4. 4. Step 2: Configure
  5. 5. Step 3: Connect a Chat Platform
  6. 6. Step 4: Your First Auto-Generated Skill
  7. 7. Deployment Options
  8. 8. Troubleshooting
  9. 9. FAQ
  10. 10. Related Resources

What Is Hermes Agent

Hermes Agent is an open-source (MIT license) autonomous agent framework created by Nous Research and released in February 2026. It has accumulated roughly 30K GitHub stars since launch. Unlike simple chatbot wrappers, Hermes implements a closed learning loop: every complex task the agent completes can become a reusable skill stored as Markdown, making the agent faster and more reliable over time.

Key capabilities include persistent memory via SQLite with full-text search, a MEMORY.md file for long-term context, built-in chat platform connectors, an OpenAI API-compatible server for third-party UI integration, and a 5-layer security architecture covering user authentication, command approval, container isolation, credential filtering, and injection scanning.

Prerequisites

Before you begin, make sure you have the following ready:

  • Operating System: Linux, macOS, or Windows with WSL 2
  • Node.js 18+ (for plugin ecosystem; the core binary is standalone)
  • LLM API Key: Claude (Anthropic), GPT-4 (OpenAI), or a local Llama endpoint
  • Optional — Docker: Required only if you prefer containerized deployment
  • Optional — Telegram Bot Token: Create one via @BotFather if you want Telegram integration

Step 1: Install Hermes Agent

The fastest way to install is the official one-line installer. Open your terminal and run:

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

Verify the installation by checking the version:

hermes --version

Alternative: Docker Install

If you prefer Docker, pull and run the official image:

docker run -d --name hermes -p 8080:8080 nousresearch/hermes-agent

The Docker image includes all dependencies and exposes port 8080 for the built-in API server.

Step 2: Configure Hermes Agent

After installation, create or edit ~/.hermes/hermes.config.yaml. Below are three configuration variants depending on your preferred LLM provider.

Config Variant A: Claude (Anthropic)

model:
  provider: anthropic
  name: claude-sonnet-4-20250514
  api_key_env: ANTHROPIC_API_KEY

memory:
  backend: sqlite
  path: ~/.hermes/memory.db
  full_text_search: true

security:
  command_approval: true
  container_isolation: false
  credential_filtering: true

Config Variant B: GPT-4 (OpenAI)

model:
  provider: openai
  name: gpt-4o
  api_key_env: OPENAI_API_KEY

memory:
  backend: sqlite
  path: ~/.hermes/memory.db
  full_text_search: true

security:
  command_approval: true
  container_isolation: false
  credential_filtering: true

Config Variant C: Local Llama

model:
  provider: openai-compatible
  name: llama-3.1-70b
  base_url: http://localhost:11434/v1
  api_key_env: OLLAMA_API_KEY

memory:
  backend: sqlite
  path: ~/.hermes/memory.db
  full_text_search: true

security:
  command_approval: true
  container_isolation: true
  credential_filtering: true

Note that api_key_env references an environment variable name, not the key itself. Export your key in ~/.bashrc or ~/.zshrc before starting Hermes.

Step 3: Connect a Chat Platform

Hermes supports multiple chat frontends. Here are the two most popular setups plus CLI mode.

Telegram Setup

  1. Message @BotFather on Telegram and create a new bot
  2. Copy the bot token (format: 123456:ABC-DEF...)
  3. Add to your config:
platforms:
  telegram:
    enabled: true
    bot_token_env: TELEGRAM_BOT_TOKEN

Discord Setup

  1. Create a Discord application at discord.com/developers
  2. Generate a bot token under the Bot section
  3. Add to your config:
platforms:
  discord:
    enabled: true
    bot_token_env: DISCORD_BOT_TOKEN

CLI Mode (for Testing)

The simplest way to test your setup is CLI mode. Just run:

hermes chat

This opens an interactive terminal session where you can send messages and watch the agent respond in real time. CLI mode is ideal for verifying your config before connecting a chat platform.

Step 4: Your First Auto-Generated Skill

Hermes auto-generates skills after completing tasks that involve 5 or more tool calls. Here is how to trigger your first skill:

  1. Start a CLI session with hermes chat
  2. Give the agent a multi-step task, for example: “Research the top 5 trending GitHub repos today, clone the most starred one, analyze its README, summarize the architecture, and create a comparison table with the other four.”
  3. Watch the agent execute multiple tool calls (file operations, web requests, text processing)
  4. After completion, Hermes automatically saves a skill document

Find the generated skill in ~/.hermes/skills/. Each skill is a Markdown file with this structure:

# Skill: GitHub Trend Analysis
## Trigger
When the user asks to analyze trending repositories...
## Steps
1. Fetch trending repos from GitHub API
2. Clone the top result
3. Parse README.md
4. Generate architecture summary
5. Build comparison table
## Tools Used
- web_fetch, git_clone, file_read, text_summarize

The next time you or anyone else asks a similar question, Hermes recognizes the pattern and executes the skill directly — faster and with fewer LLM calls. Skills accumulate over time, turning your Hermes instance into a personalized automation library.

Deployment Options

Choose a deployment method based on your uptime requirements and budget. All four options support the same feature set — the only differences are cost, maintenance, and availability.

MethodCostProsCons
Local$0Zero cost, instant setupTied to your machine uptime
VPS (Ubuntu)$5/mo24/7 uptime, SSH access, full controlManual server maintenance
Docker$5/moReproducible, isolated, easy rollbackSlight overhead, Docker knowledge needed
Modal (Serverless)Pay-per-useAuto-scaling, no idle costCold starts, vendor dependency

For most users, a $5/month VPS (such as a DigitalOcean Droplet or Hetzner Cloud CX22) provides the best balance of cost, uptime, and simplicity. SSH into your VPS, run the install script, copy your config, and start Hermes with hermes start --daemon. The agent runs in the background and reconnects to your chat platforms automatically after reboots if you add it to systemd.

Troubleshooting

Here are the five most common issues and how to fix them:

API key not found

Ensure your key is exported in the shell profile (~/.bashrc or ~/.zshrc), not just the current session. Run source ~/.bashrc after editing.

Port 8080 already in use

Change the port in hermes.config.yaml under server.port, or kill the conflicting process with lsof -i :8080.

Memory DB locked (SQLite)

Only one Hermes instance can write to the same DB. Stop duplicate processes with pkill hermes before restarting.

Telegram webhook fails

Verify your VPS has a public IP and port 443 is open. Hermes needs HTTPS for Telegram webhooks — use a reverse proxy like Caddy or nginx.

Skill not generating

Skills auto-generate only after 5+ tool-call tasks. Single-step commands (e.g., "what time is it") are too simple to trigger skill creation.

For additional help, consult the official documentation at hermes-agent.nousresearch.com/docs or open an issue on the GitHub repository.

Frequently Asked Questions

How long does Hermes Agent installation take?

About 2 minutes. The curl installer downloads the binary, adds it to your PATH, and verifies the installation automatically. Docker setup takes slightly longer due to image pull.

Can I run Hermes Agent on Windows?

Windows Subsystem for Linux (WSL 2) is the recommended approach. Install WSL, then run the standard Linux install command inside the WSL terminal. Native Windows support is not available yet.

What LLM models does Hermes Agent support?

Hermes supports Claude (Anthropic), GPT-4 and GPT-4o (OpenAI), Llama 3 (Meta, local or API), Mistral, and any OpenAI API-compatible endpoint. You configure the provider in hermes.config.yaml.

Is my data sent to external servers?

No. Hermes Agent is fully self-hosted. Conversation memory is stored locally in SQLite with full-text search. The only external calls are to your chosen LLM provider API.

How do I update Hermes Agent?

Run the same curl install command: curl -sSL https://hermes-agent.nousresearch.com/install | bash. It detects the existing installation and upgrades in place, preserving your config and memory.

Can I use Hermes Agent with Open WebUI?

Yes. Hermes includes a built-in OpenAI API-compatible server. Point Open WebUI to http://localhost:8080 (or your configured port) and it works as a drop-in backend.

What is the minimum VPS spec for Hermes Agent?

1 vCPU and 1 GB RAM is sufficient for single-user deployments. The agent itself is lightweight — most resource usage comes from the LLM API calls, which are processed externally.