EasyRouterEasyRouter
Quick StartAPI DocsConnect Agent Tools

Hermes Agent

Hermes Agent Tutorial — An open-source terminal AI agent by Nous Research. Connect to EasyRouter via Custom Endpoint with no code required. Supports multi-channel integration like Telegram, Discord, and Slack.

Project Introduction

Hermes Agent is an open-source terminal AI agent developed by Nous Research. It provides powerful tool calling, file read/write, and code execution capabilities right in your terminal. With built-in Custom Endpoint support, Hermes can seamlessly connect to any OpenAI-compatible API — including EasyRouter — without writing any code or plugins.

Hermes Agent is fully open source. You can browse the source code, submit issues, or contribute at the Hermes Agent GitHub repository. This tutorial covers the complete steps for installation, configuration, and integrating Hermes Agent with EasyRouter.

🌟 Core Features

Smart Agent Capabilities

  • Tool Calling: Native support for tool calling, file read/write, and code execution
  • Persistent Memory: Supports persistent background operation with long-term memory
  • Skill System: Search and install skill packages via the hermes skills command
  • Multi-Interface Support: Supports both CLI and TUI (terminal UI) modes

Multi-Channel Integration

  • Message Gateway: Unified management of all channels via hermes gateway
  • Multi-Platform Support: Connects to Telegram, Discord, Slack, WhatsApp, and more
  • Always Online: Runs persistently as a background service

Open Model Ecosystem

  • Custom Provider: Built-in Custom Endpoint support — connects to any OpenAI-compatible API
  • Interactive Configuration: Configure everything through an interactive menu with hermes model — no need to edit config files
  • Flexible Switching: Switch models on the fly during a conversation via the /model command

📦 Pre-integration Preparation

Preparation Information

  • Hermes Agent installed (see installation steps below)
  • An available EasyRouter address (must end with /v1)
  • An available EasyRouter API Key (generated in the console)
  • The model name you want to use (e.g., claude-sonnet-4-6, gemini-2.5-flash), which must match the model ID in the EasyRouter console exactly

Model Context Requirement

Hermes Agent requires the model to support a context window of at least 64K tokens. Make sure your chosen model meets this requirement, otherwise you may run into context-length errors.

🚀 Step 1: Install Hermes Agent

Linux / macOS / WSL2

Run the official one-line install script in your terminal:

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

After installation, reload your terminal environment:

source ~/.bashrc

If you use zsh (default on macOS), run this instead:

source ~/.zshrc

Windows

Note for Windows Users

Hermes Agent does not natively support Windows. You need to install WSL2 (Windows Subsystem for Linux 2) first, then run the Linux/macOS install command above inside a WSL2 terminal.

WSL2 installation guide: https://learn.microsoft.com/windows/wsl/install

Verify Installation

Run the following command to verify Hermes was installed successfully:

hermes --version

If a version number is displayed, the installation was successful 🎉.

🔧 Step 2: Configure EasyRouter (The Key Step)

This is the most important step of the entire integration process. Hermes Agent provides an interactive menu so you don't need to write any code or manually edit config files — just follow the prompts and fill in your EasyRouter URL, Key, and model name.

Run the following command in your terminal:

hermes model

This opens an interactive menu. Use the arrow keys to navigate and press Enter to confirm.

Configuration Flow

Configuration Steps

1. Select Provider

Use the arrow keys to scroll to Custom Endpoint (or a similarly named "custom endpoint" option) and press Enter.

2. Enter Base URL

Enter your EasyRouter address, for example:

https://easyrouter.io/v1

⚠️ The address must end with /v1. This is the most common configuration mistake.

3. Enter API Key

Enter the API Key you generated in the EasyRouter console, for example:

sk-xxxxxxxxxxxxxxxx

4. Enter Model Name

Enter the model you want to use, for example:

claude-sonnet-4-6

The model name must match the model ID in the EasyRouter console exactly, otherwise you will get a "model not found" error.

5. Confirm and Save

Follow the prompts to confirm. Configuration complete.

Key Configuration Explanation

Configuration ItemDescriptionExample
Base URLEasyRouter address, must end with /v1https://easyrouter.io/v1
API KeyToken generated in the EasyRouter consolesk-xxxxxxxxxxxxxxxx
ModelModel name, must match the model ID actually exposed by EasyRouterclaude-sonnet-4-6

✅ Step 3: Verify Successful Integration

Once configuration is complete, start Hermes directly:

hermes

Or use the modern TUI mode (terminal graphical interface):

hermes --tui

Send any test message, for example:

Hello, tell me what day of the week it is today

If the model responds normally, the integration is successful 🎉.

View and Switch Models

Inside the conversation, type the following command to view and quickly switch the current model:

/model

You can also run hermes model again at any time to overwrite the previous configuration and enter a new URL, Key, or model name.

❓ Common Issues

IssueSolution
Empty response or errorCheck that the Base URL ends with /v1
"Model not found" errorConfirm the model name matches the model ID in the EasyRouter console exactly
"Invalid API Key" errorRegenerate a Key in the EasyRouter console, then run hermes model again
Don't know how to open the config menuRun hermes model in your terminal
Want to switch modelsRun hermes model again, or type /model in the conversation
"Context not enough" errorHermes requires models with at least 64K tokens of context; switch to a model with a larger context window
Want to modify previous configurationRun hermes model again to overwrite previous settings
Can't install on WindowsHermes does not natively support Windows. Install WSL2 first and run the install command inside WSL2

🎯 Next Steps (Optional)

After successfully integrating EasyRouter, you can explore more capabilities of Hermes Agent:

Launch the Message Gateway

Connect Hermes to messaging apps like Telegram, Discord, or Slack:

hermes gateway setup

Search and Install Skills

Hermes has a built-in skill marketplace for extending capabilities with a single command:

hermes skills search <keyword>

View All Available Commands

hermes --help

Tip

Once EasyRouter is integrated, all subsequent Hermes Agent capabilities (message gateway, skill execution, background persistence, etc.) will route through EasyRouter to call your chosen model. There's no need to configure the model provider separately for each feature.