Hermes Agent Setup Guide
Complete setup and configuration guide for Hermes Agent by Nous Research — the #1 self-hosted AI agent on OpenRouter. Skills, security, messaging platforms, and LLM provider wiring.

Hermes Agent
Hermes Agent by Nous Research is the #1 AI agent on OpenRouter — 271 billion tokens processed daily as of May 2026. It supports 19 messaging platforms (WhatsApp, Telegram, Slack, Discord, Teams, and more), connects to every major LLM provider, and runs on your own infrastructure.
Note:
Hermes Agent overtook OpenClaw for the #1 OpenRouter spot in May 2026. The key differentiator: a seven-layer security model that makes it safer for enterprise deployment than OpenClaw (which has documented CVEs).
Installation
Clone and Install
Hermes Agent runs on Node.js 22+. Clone the repository and install dependencies.
git clone https://github.com/NousResearch/hermes-agent.git
cd hermes-agent
npm install
Configure Core Settings
Create .env from the template. The minimum configuration: LLM provider API key and at least one messaging platform.
cp .env.example .env
# Core LLM provider (at least one required)
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
GOOGLE_API_KEY=...
# Messaging platforms (at least one required)
TELEGRAM_BOT_TOKEN=...
DISCORD_BOT_TOKEN=...
SLACK_BOT_TOKEN=...
WHATSAPP_PHONE_NUMBER_ID=...
Start the Agent
npm run start
The agent registers with your configured messaging platforms and is ready to receive commands.
Security Model
Hermes Agent's seven-layer security architecture is what sets it apart from OpenClaw. Each layer can be configured independently.
Security Layers
Values: oauth, token, sso
Values: admin, operator, user, read-only
Values: regex, llm-guard, custom
Values: docker, firecracker, process
Values: llm-guard, regex, custom
Values: json, postgres, elastic
Values: token, request, concurrent
Note:
OpenClaw CVEs. OpenClaw has documented vulnerabilities related to unauthenticated MCP tool access and malicious plugin injection. Hermes Agent's Layer 3 (Input Sanitization) and Layer 4 (Tool Sandboxing) address these classes of attack. If you're migrating from OpenClaw to Hermes, the security model is the primary reason.
Skills System
Skills are capability packages that extend the agent. Each skill bundles instructions, tool definitions, and integration configs.
# skills/web-research.yml
name: web-research
description: Web search and content extraction capabilities
tools:
- brave-search
- firecrawl
- jina-reader
instructions: |
You can search the web using Brave Search API.
Use firecrawl to extract full page content from URLs.
Always cite sources with URLs.
Popular Skills
Values: built-in
Values: built-in
Values: built-in
Values: built-in
Values: built-in
Provider Configuration
Wire Hermes Agent to your preferred LLM. It supports every major provider and OpenRouter for model flexibility.
# providers.yml
providers:
- name: anthropic
models:
- claude-opus-4-20250514
- claude-sonnet-4-20250514
default: claude-sonnet-4-20250514
- name: openai
models:
- gpt-4o
- gpt-4o-mini
default: gpt-4o
- name: google
models:
- gemini-2.5-flash
- gemini-2.5-pro
default: gemini-2.5-flash
- name: openrouter
models:
- anthropic/claude-opus-4
- openai/gpt-4o
- google/gemini-2.5-flash
- meta-llama/llama-4-maverick
default: google/gemini-2.5-flash
- name: ollama
endpoint: http://localhost:11434
models:
- hermes-3:8b
- llama3.2:3b
- qwen2.5:14b
default: hermes-3:8b
Note:
Local models. Hermes 3 8B runs on Ollama and is strong enough for tool calling and basic agent tasks. Use it for development and low-sensitivity workflows to eliminate API costs. Switch to Claude or GPT-4o for production tasks requiring complex reasoning.
Messaging Platform Wiring
Hermes Agent connects to 19 platforms. Here are the most commonly configured ones:
Platform Configuration
Values: TELEGRAM_BOT_TOKEN
Values: DISCORD_BOT_TOKEN, DISCORD_APP_ID
Values: SLACK_BOT_TOKEN, SLACK_APP_TOKEN
Values: WHATSAPP_PHONE_NUMBER_ID, WHATSAPP_TOKEN
Running with Our Blueprints
The Research Agent, Code Review Agent, and Content Writer blueprints all run on Hermes Agent. Wire them as skills:
# Install a blueprint as a skill
cp -r blueprints/research-agent ~/.hermes-agent/skills/research-agent
hermes-agent skills enable research-agent
# Configure the blueprint's tools
hermes-agent tools enable brave-search firecrawl jina-reader
Note:
Production deployment: JustPaid runs 7 Hermes Agent instances 24/7 for customer operations. Each instance handles a specific domain (billing, onboarding, support, etc.) with scoped tool access and separate audit trails.
Key Takeaway
Hermes Agent's seven-layer security model makes it the safest self-hosted agent platform. If you're choosing between Hermes and OpenClaw for production, Hermes wins on security. OpenClaw wins on ecosystem size. For most teams, start with Hermes and only switch to OpenClaw if you need a specific plugin that doesn't exist in Hermes' ecosystem.
Related Articles
Content Writer Agent Blueprint
Multi-step content creation agent with outline, research, draft, edit, and finalization stages. Includes grammar checking, tone adjustment, and SEO optimization tools.
Agent Platform Guides
Setup and configuration guides for Hermes Agent, OpenClaw, and Pi Coding Agent — the three most-used self-hosted AI agent platforms in 2026.
Pi Coding Agent Setup Guide
Setup and configuration for Pi Coding Agent by Earendil Inc. — the minimal agent harness with TypeScript extensions, context engineering, and session trees. Powers OpenClaw under the hood.