Hermes Agent
An open-source terminal AI agent from Nous Research that connects via a Custom Endpoint.
Project Overview
Hermes Agent is an open-source terminal AI agent from Nous Research, bringing powerful tool calling, file read/write, and code execution capabilities to your terminal. Through its built-in Custom Endpoint capability, Hermes can seamlessly connect to any OpenAI-compatible API — including Models Hub — without writing any code or plugins.
- Official homepage: https://hermes-agent.nousresearch.com
- Quickstart: https://hermes-agent.nousresearch.com/docs/getting-started/quickstart
- GitHub: https://github.com/NousResearch/hermes-agent
Hermes Agent is fully open source. You can browse the source, file issues, or contribute in the Hermes Agent GitHub repository. This guide covers installation, configuration, and the complete steps to connect Hermes Agent to Models Hub.
🌟 Key Features
Intelligent agent capabilities
- Tool calling: Native support for tool calling, file read/write, and code execution
- Persistent memory: Supports running as a resident background process with long-term memory
- Skill system: Search and install skill packages via the
hermes skillscommand - Multiple interfaces: Supports both command-line and TUI (terminal UI) modes
Multi-channel integration
- Message gateway: Manage all channels in one place via
hermes gateway - Multi-platform support: Connect to messaging apps such as Telegram, Discord, Slack, and WhatsApp
- Always online: Runs as a resident background service
Open model ecosystem
- Custom provider: Built-in Custom Endpoint support lets you connect to any OpenAI-compatible API
- Interactive configuration: Complete setup through an interactive menu via the
hermes modelcommand — no config file editing required - Flexible switching: Switch models at any time during a conversation with the
/modelcommand
📦 Before You Begin
Information to prepare
- Hermes Agent installed (see the installation steps below)
- A working Models Hub URL (must end with
/v1) - A working Models Hub API Key (generated in the console)
- The name of the model you want to use (e.g.,
claude-sonnet-4-6,gemini-2.5-flash), which must exactly match the model ID in the Models Hub console
Model context requirement
Hermes Agent requires the model in use to support a context window of at least 64K tokens. When choosing a model, confirm that it meets this requirement; otherwise, you may encounter insufficient-context errors.
🚀 Step 1: Install Hermes Agent
Linux / macOS / WSL2
Run the official one-click install script in your terminal:
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bashAfter installation, reload your terminal environment variables:
source ~/.bashrcIf you use zsh (the default on macOS), run:
source ~/.zshrcWindows
Note for Windows users
Hermes Agent does not directly support native 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 the installation
Run the following command to verify that Hermes installed successfully:
hermes --versionIf a version number is displayed, the installation succeeded 🎉.
🔧 Step 2: Configure Models Hub (the core step)
This is the most important step in the whole 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 to enter your Models Hub URL, Key, and model name.
Run in your terminal:
hermes modelThis opens an interactive menu. Use the up/down arrow keys to select an option and press Enter to confirm.
Walkthrough
Configuration steps
1. Select a provider
Use the arrow keys to scroll to Custom Endpoint (or a similarly named "custom endpoint" option) and press Enter to confirm.
2. Enter the Base URL
Enter your Models Hub URL, for example:
https://modelsok.com/v1⚠️ The URL must end with
/v1— this is the most common source of configuration errors.
3. Enter the API Key
Enter the API Key you generated in the Models Hub console, for example:
sk-xxxxxxxxxxxxxxxx4. Enter the model name
Enter the model you want to use, for example:
claude-sonnet-4-6The model name must exactly match the model ID in the Models Hub console, or you'll get a "model not found" error.
5. Confirm and save
Confirm as prompted, and the configuration is complete.
Key configuration reference
| Setting | Description | Example |
|---|---|---|
| Base URL | Models Hub URL, must end with /v1 | https://modelsok.com/v1 |
| API Key | Token generated in the Models Hub console | sk-xxxxxxxxxxxxxxxx |
| Model | Model name, must match the model ID actually exposed by Models Hub | claude-sonnet-4-6 |
✅ Step 3: Verify the connection
Once configured, start Hermes and begin chatting:
hermesOr use the more modern TUI mode (terminal graphical interface):
hermes --tuiSend any test message, for example:
Hi, tell me what day of the week it is todayIf the model returns a normal reply, the connection succeeded 🎉.
View and switch models
During a conversation, enter the following command to view the current model and switch quickly:
/modelYou can also run hermes model again at any time to override the previous configuration and re-enter a new URL, Key, or model name.
❓ FAQ
| Problem | Solution |
|---|---|
| Empty reply or error | Check that the Base URL ends with /v1 |
| "Model not found" | Confirm the model name exactly matches the model ID in the Models Hub console |
| "Invalid API Key" | Generate a new Key in the Models Hub console, then run hermes model again |
| Don't know how to open the configuration menu | Enter hermes model in the terminal and press Enter |
| Want to switch models | Run hermes model again, or enter /model during a conversation |
| "Insufficient context" | Hermes requires a model with at least 64K tokens; switch to a model with a larger context |
| Want to change a previous configuration | Run hermes model again to override the previous settings |
| Can't install on Windows | Hermes doesn't natively support Windows; install WSL2 first and run the install command in a WSL2 terminal |
🎯 Next Steps (optional)
After successfully connecting to Models Hub, you can explore more of Hermes Agent's capabilities:
Start the message gateway
Connect Hermes to messaging apps such as Telegram, Discord, and Slack:
hermes gateway setupSearch for and install skills
Hermes has a built-in skill store you can use to extend its capabilities with one click:
hermes skills search <keyword>View all available commands
hermes --helpTip
Once connected to Models Hub, all of Hermes Agent's subsequent capabilities (message gateway, skill calls, background residency, etc.) will call your chosen model through Models Hub — there's no need to configure a model provider separately for each feature.