Hermes Agent
Hermes Agent
In recent years, the field of AI Agents has developed rapidly, evolving from simple chatbots to intelligent agents that can truly perform tasks, maintain long-term memory, and grow autonomously.
Hermes Agent is an open-source autonomous AI Agent framework from Nous Research. Through natural language interaction, this autonomous AI Agent can execute terminal commands, control browsers, read and write files, search the internet, generate images, and maintain memory across sessions.
- GitHub repository:https://github.com/nousresearch/hermes-agent
- Hermes Agent official website:https://hermes-agent.nousresearch.com/

The official definition is very direct:
The agent that grows with you.
An Agent that grows with use.
It is an autonomous agent whose capabilities become stronger the longer it runs.
The core philosophy of Hermes Agent is:To make AI a long-term online digital employee, rather than a one-time chatbot.
Hermes Agent is rare in the industryAI Agent with a native learning loop,which can accumulate skills from execution experience, autonomously optimize capabilities, persist knowledge, retrieve historical conversations, and continuously refine the user cognition model across sessions.
Difference from ordinary AI chat tools:
| Dimension | Ordinary AI chat (such as ChatGPT) | Hermes Agent |
|---|---|---|
| Memory | Starts from scratch in each conversation | Persistent memory across sessions, understands you better the more you use it |
| Execution capability | Can only generate text | Can execute terminal commands, operate files, and control browsers |
| Execution location | Cloud, data upload service provider | Local or your server, data does not leave you |
| Scalability | Closed ecosystem | Open skill standards (agentskills.io), MCP ecosystem |
| Contact Methods | Web | CLI + Telegram/Discord/Slack/WhatsApp, etc. |
| Model Binding | Fixed Model | Supports 300+ models, switch anytime, no lock-in |
Core Features:
- ** Connect:** Telegram, Discord, Slack, WhatsApp, Signal, Email, CLI—one Agent, unified memory, all platforms. A conversation started in Telegram can seamlessly continue in the terminal.
- Memory:Hermes learns your projects, automatically generates skills, and never forgets the problems it has solved. Important information is written to persistent memory after each session.
- Schedule: Set up scheduled tasks in natural language—daily reports, backups, routine reviews, morning briefings—to run unattended in the background.
- Delegate:Generates isolated sub-Agents with independent conversation contexts, independent terminals, and Python RPC scripts, achieving parallel pipelines with zero context cost.
- Search and Multimodal: Web search, browser automation, visual understanding, image generation, text-to-speech, and multi-model inference are all built-in.
Hermes Agent supports switching between any large model, includingNous Portal, OpenRouter (200+ models), OpenAI, GLM, Kimi, MiniMaxWait, executehermes modelYou can switch without changing code or vendor lock-in.
| Provider | Description | Setup method |
|---|---|---|
| Nous Portal | Subscription model, zero configuration | Throughhermes modelPerform OAuth login |
| OpenAI Codex | ChatGPT OAuth, using Codex model | Throughhermes modelPerform device code authentication |
| Anthropic | Directly use Claude model | Through Claude Code authentication or Anthropic API key |
| OpenRouter | Multi-provider routing | Enter your API key |
| DeepSeek | Direct DeepSeek API access | SettingsDEEPSEEK_API_KEY |
| Hugging Face | Access 20+ open models through a unified router | SettingsHF_TOKEN |
| Custom Endpoint | VLLM, SGLang, Ollama, or any OpenAI compatible API | Set the base URL and API key |
Of course, buying a Coding Plan is the most cost-effective, as it is a monthly subscription:
| Features | Capability Description |
|---|---|
| Native Terminal Interaction | Complete TUI interface, supporting multi-line editing, command completion, history recall, streaming output, etc. |
| Cross-platform access | A gateway to access multiple platforms such as CLI, Telegram, Discord, Slack, WhatsApp, etc. |
| Closed-loop learning system | Autonomous memory management, skill generation and optimization, cross-session recall, user modeling |
| Scheduled automation | Built-in Cron scheduling, supporting 7x24 automatic tasks such as daily reports, backups, and audits |
| Parallel task processing | Supports parallel execution of sub-Agents, multi-workflow splitting, and RPC tool calling |
| Multi-environment operation | Supports 6 backends including local, Docker, SSH, Daytona, and Modal |
| Research-grade capabilities | Supports trajectory generation, reinforcement learning environments, and training data compression |
Overall architecture
Overall process:

Architecture diagram:

| Module | Function | Example |
|---|---|---|
| Access Layer (Clients) | Receive user requests | Web, App, API, Feishu |
| Input Layer (Input) | Process various input data | Text, images, PDF, Excel |
| Scheduler (Agent Orchestrator) | Understand tasks and decompose execution flow | Analyze requirements -> Formulate plan |
| Capabilities | Provide execution capabilities | Conversation, retrieval, code execution |
| Memory | Save context and history information | Session memory, long-term memory |
| Knowledge Layer | Provide knowledge retrieval capabilities | RAG, vector database |
| Model Layer | Provide inference capabilities | GPT, Claude, local models |
| Tools Layer | Calling external tools to complete tasks | Search, database, API |
| External Services Layer | Interfacing with business systems | ERP, CRM, cloud services |
| Infrastructure Layer | Supporting system operation | Permissions, logs, and monitoring |
Quick installation
The following installation commands apply to Linux, macOS, and WSL2 systems:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
Reload the Shell after installation:
Original prompt (Chinese, left untranslated)
bashsource ~/.bashrc # 使用 bash
# 或
source ~/.zshrc # 使用 zsh
Native Windows installation (PowerShell):
iex (irm https://hermes-agent.nousresearch.com/install.ps1)
Native Windows support is still an experimental feature; using WSL2 is recommended.
** macOS / Windows Desktop App: **Go to hermes-agent.nousresearch.com to download the desktop installer for your platform; the CLI and desktop application will be installed simultaneously.

Double-click to install after downloading:

Verify installation:
hermes --version
Outputting the version number indicates successful installation.
The installer will automatically handle all dependencies:
- uv— A fast Python package manager
- Python 3.11— Installed via uv, no sudo required
- Node.js v22— Used for browser automation and WhatsApp bridging
- ripgrep— Fast file search
- ffmpeg— TTS audio format conversion

Windows system notes: Does not support native Windows environment, please install WSL2 first, then execute the above commands in the WSL2 terminal.
If OpenClaw has been installed, you can import the configuration directly:

Here, select not to import, enter n, enter model settings, and select the first quick setup:

Next, we select More providers, the second to last item:

Here you can select more domestic or international large models:

Next, we useByte Ark Coding Planso we selectCustomer endpointwhich is a custom API address and API key.
Set the Base URL to the Byte Ark interface protocol compatible with OpenAI: https://ark.cn-beijing.volces.com/api/coding/v3
Set the API key and supported large models, such as ark-code-latest.
After installation, execute the following command:
Original prompt (Chinese, left untranslated)
source ~/.bashrc # 重载shell配置(若使用zsh,执行:source ~/.zshrc)
hermes # 开启智能体对话!

Quick Start
Original prompt (Chinese, left untranslated)
hermes # 交互式命令行界面 — 开启对话
hermes model # 选择大语言模型服务商与对应模型
hermes tools # 配置启用的工具集
hermes config set # 设置单项配置项
hermes gateway # 启动消息网关(支持Telegram、Discord等平台)
hermes setup # 运行全量配置向导(一站式完成所有配置)
hermes claw migrate # 从OpenClaw迁移数据(适用于原OpenClaw用户)
hermes update # 更新至最新版本
hermes doctor # 诊断运行环境与配置问题
Manual Installation
If you prefer complete control over the installation process, follow these steps.
Step 1: Clone the repository
Use--recurse-submodulesClone to get the required submodules:
git clone --recurse-submodules https://github.com/NousResearch/hermes-agent.git
cd hermes-agent
If already cloned but without submodules:
git submodule update --init --recursive
Step 2: Install uv and create a virtual environment
Original prompt (Chinese, left untranslated)
# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create a Python 3.11 virtual environment (uv will download when needed, no sudo required)
uv venv venv --python 3.11
Tip:
You
do not
need to activate the virtual environment to use
hermes
. The entry point has a hardcoded shebang pointing to the Python in the virtual environment, so it can be used after global linking.
Step 3: Install Python dependencies
Original prompt (Chinese, left untranslated)
# Tell uv which virtual environment to install into
export VIRTUAL_ENV="$(pwd)/venv"
# Install all extensions
uv pip install -e ".[all]"
If you only want the core agent (without Telegram/Discord/cron support):
uv pip install -e "."
Optional extensions description:
| Extensions | Features | Installation command |
|---|---|---|
all |
Includes all the following features | uv pip install -e ".[all]" |
messaging |
Telegram and Discord gateways | uv pip install -e ".[messaging]" |
cron |
Cron expression parsing for scheduled tasks | uv pip install -e ".[cron]" |
voice |
CLI microphone input and audio playback | uv pip install -e ".[voice]" |
mcp |
Model context protocol support | uv pip install -e ".[mcp]" |
honcho |
AI native memory (Honcho integration) | uv pip install -e ".[honcho]" |
We can combine:uv pip install -e ".[messaging,cron]"
Step 4: Create configuration directory
Original prompt (Chinese, left untranslated)
# Create directory structure
mkdir -p ~/.hermes/{cron,sessions,logs,memories,skills,pairing,hooks,image_cache,audio_cache,whatsapp/session}
# Copy example configuration file
cp cli-config.yaml.example ~/.hermes/config.yaml
# Create an empty .env file to store API keys
touch ~/.hermes/.env
Step 5: Add API key
Open~/.hermes/.envAnd add at least one LLM provider key:
Original prompt (Chinese, left untranslated)
# Required — at least one LLM provider:
OPENROUTER_API_KEY=sk-or-v1-your-key-here
# Optional — enable other tools:
FIRECRAWL_API_KEY=fc-your-key # 网页搜索和抓取
FAL_KEY=your-fal-key # 图像生成(FLUX)
Or set via CLI:
hermes config set OPENROUTER_API_KEY sk-or-v1-your-key-here
Step 6: Add hermes to PATH
mkdir -p ~/.local/bin
ln -sf "$(pwd)/venv/bin/hermes" ~/.local/bin/hermes
If~/.local/binIt is not in PATH, add it to your shell configuration:
# Bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
# Zsh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
Step 7: Configure your provider
Original prompt (Chinese, left untranslated)
hermes model # 选择您的 LLM 提供商和模型
Step 8: Verify installation
Original prompt (Chinese, left untranslated)
hermes version # 检查命令是否可用
hermes doctor # 运行诊断以验证一切正常
hermes status # 检查您的配置
hermes chat -q "Hello! What tools do you have available?"
Troubleshooting
| Issue | Solution |
|---|---|
hermes: command not found |
Reload the shell (source ~/.bashrc) or check PATH |
| API key not set | Runhermes modelConfigure the provider, orhermes config set OPENROUTER_API_KEY your_key |
| Configuration lost after update | Runhermes config checkThenhermes config migrate |
For more diagnostic information, runhermes doctor— it will tell you what is missing and how to fix it.
Tip:You can switch providers at any time
hermes model— no code changes, no lock-in.
More content
Hermes Agent Configuration
Hermes Agent CLI
Hermes Agent Tools
Hermes Agent Skills
Hermes Agent MCP Integration
Message Gateway
Hermes Agent Message Gateway allows you to interact with agents through multiple platforms—Telegram, Discord, Slack, WhatsApp, Signal, Email, Home Assistant, etc.
Send messages from one gateway to 15+ platforms. Stay connected with Hermes no matter where you are.
Supported Platforms
| Platform | Description | Status |
|---|---|---|
| Telegram | Most complete message platform integration | ✅ Supported |
| Discord | Supports servers and voice channels | ✅ Supported |
| Slack | Workspace integration | ✅ Supported |
| Via WhatsApp Web | ✅ Supported | |
| Signal | Private messaging application | ✅ Supported |
| Matrix | Decentralized communication | ✅ Supported |
| Mattermost | Self-hosted messaging | ✅ Supported |
| SMTP Email | ✅ Supported | |
| SMS | SMS Sending | ✅ Supported |
| DingTalk | DingTalk | ✅ Supported |
| Feishu | Lark | ✅ Supported |
| WeCom | WeChat Work | ✅ Supported |
| BlueBubbles | macOS iMessage | ✅ Supported |
| Home Assistant | Smart home | ✅ Supported |
| Webhooks | Custom HTTP callback | ✅ Supported |
Set message platform
Interactive setup:
hermes gateway setup
This will launch an interactive configuration wizard to guide you through setting up each platform.
Manual configuration:
Or edit directly~/.hermes/config.yaml:
Telegram:
Original prompt (Chinese, left untranslated)
# In ~/.hermes/.env
TELEGRAM_BOT_TOKEN=your-bot-token
# config.yaml
gateway:
adapters:
telegram:
enabled: true
Discord:
Original prompt (Chinese, left untranslated)
# In ~/.hermes/.env
DISCORD_BOT_TOKEN=your-discord-token
# config.yaml
gateway:
adapters:
discord:
enabled: true
allowed_channels:
- "123456789"
Slack:
Original prompt (Chinese, left untranslated)
# In ~/.hermes/.env
SLACK_BOT_TOKEN=xoxb-your-token
SLACK_SIGNING_SECRET=your-signing-secret
# config.yaml
gateway:
adapters:
slack:
enabled: true
WhatsApp:
Original prompt (Chinese, left untranslated)
# WhatsApp requires browser automation
# Scan QR code for initial setup
# config.yaml
gateway:
adapters:
whatsapp:
enabled: true
session_dir: ~/.hermes/whatsapp/session
Email (SMTP):
Original prompt (Chinese, left untranslated)
# In ~/.hermes/.env
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your-email@gmail.com
SMTP_PASSWORD=your-app-password
# config.yaml
gateway:
adapters:
email:
enabled: true
from_email: your-email@gmail.com
Home Assistant:
Original prompt (Chinese, left untranslated)
# In ~/.hermes/.env
HA_URL=http://homeassistant.local:8123
HA_TOKEN=your-long-lived-access-token
# config.yaml
gateway:
adapters:
homeassistant:
enabled: true
Start gateway
Run in foreground:
hermes gateway
Run in background (recommended):
Original prompt (Chinese, left untranslated)
hermes gateway &
# or use systemd
systemctl enable hermes-agent
systemctl start hermes-agent
Docker Run:
docker run -d \
--name hermes-gateway \
-v ~/.hermes:/home/hermes/.hermes \
ghcr.io/nousresearch/hermes-agent:latest \
hermes gateway
Platform-specific configuration
Telegram:
- Create a new bot via @BotFather
- Obtain bot token
- Configure and run Hermes
- Send to your bot in Telegram
/start
Discord:
- Create an application in the Discord Developer Portal
- Add the bot to the server
- Obtain the bot token
- Configure and run Hermes
Slack:
- Create a new app in the Slack App Portal
- Add the bot token scope
- Install to the workspace
- Configure and run Hermes
Send messages:
Usesend_messageSend messages through any configured channel:
send_message(
platform="telegram",
chat_id="123456789",
message="Hello from Hermes!"
)
Or schedule automated messages using cron:
Original prompt (Chinese, left untranslated)
# Set daily briefing
hermes
❯ 每天早上9点检查 Hacker News 上的 AI 新闻,并通过 Telegram 给我发送摘要
Voice support
Some platforms support voice interaction:
- TelegramVoice messages and voice calls
- DiscordVoice channels and voice messages
- CLIMicrophone input and TTS
For details on voice modes, see the Voice Mode Guide.
Security considerations
Important:
- Do not commit API keys to source control
- Use environment variables or secure credential storage
- Restrict users/channels allowed to interact with the agent
- Rotate API keys regularly
- Enable command approval on public platforms
Troubleshooting
| Issues | Solutions |
|---|---|
| Robot unresponsive | Check if the gateway is running |
| Permission error | Verify bot token and permissions |
| Message not sent | Check channel ID and configuration |
| Connection timeout | Check network and firewall settings |
Hint:Use
hermes gateway --verboseCheck the detailed logs to debug the issue.