BeeRoute logoBeeRoute.

Home / Guides / Hermes Agent

Hermes Agent

Hermes Agent is an open-source AI agent from Nous Research. You can use it in the terminal or run it as a gateway connected to chat apps such as Telegram and Discord. Hermes supports custom endpoints with a choice of three formats: Chat Completions, Responses, and Anthropic Messages.

1. Get an API Key

Open the API Keys page, click Create API Key, set Group to default, and copy the key (it starts with sk-).

2. Install Hermes

macOS / Linux / WSL2:

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

Windows PowerShell:

iex (irm https://hermes-agent.nousresearch.com/install.ps1)

After installation, reopen the terminal (or run source ~/.bashrc), then run hermes to confirm that it starts.

Run the model setup wizard:

hermes model
  1. Select Custom endpoint (self-hosted / VLLM / etc.).
  2. Fill in the following as prompted:
Wizard fieldValue
API base URLhttps://beeroute.ai/v1
API keyYour BeeRoute key sk-xxx
API compatibility modeSelect 2. Chat Completions
ModelFor example, claude-sonnet-5-5. See the Pricing page for all model IDs

For the remaining prompts, such as context length and display name, you can press Enter to accept the defaults.

Explicitly select Chat Completions as the API mode instead of auto-detect: Hermes can only auto-detect the official OpenAI URL and URLs ending in /anthropic.

The configuration is saved to ~/.hermes/config.yaml, and the key is saved to ~/.hermes/.env.

4. Edit the Configuration Manually (Optional)

You can also edit ~/.hermes/config.yaml directly:

model:
  provider: custom
  default: claude-sonnet-5-5
  base_url: https://beeroute.ai/v1
  key_env: BEEROUTE_API_KEY

Then add this line to ~/.hermes/.env:

BEEROUTE_API_KEY=sk-xxx
FieldDescription
providercustom means a custom endpoint
defaultDefault model ID
base_urlMust include /v1
key_envName of the environment variable that holds the key. You can also use api_key: sk-xxx to write the key directly

If you want to configure multiple API formats at the same time (for example, using the native Anthropic format for Claude models), use the providers form:

providers:
  beeroute:
    api: https://beeroute.ai/v1
    key_env: BEEROUTE_API_KEY
    transport: chat_completions
    default_model: claude-sonnet-5-5
  beeroute-claude:
    api: https://beeroute.ai
    key_env: BEEROUTE_API_KEY
    transport: anthropic_messages
    default_model: claude-sonnet-5-5

transport can be chat_completions, codex_responses (Responses format), or anthropic_messages.

5. Launch and Verify

hermes

Send a message. If you get a normal reply, the connection works. To change the model or endpoint, run hermes model again.

6. FAQ

Getting a 401 error?

Check the key in ~/.hermes/.env, or run hermes model again and re-enter the key.

Getting a 404 error?

In Chat Completions mode, base_url must include /v1.

OPENAI_BASE_URL in .env has no effect?

In newer versions of Hermes, OPENAI_BASE_URL only applies to the built-in OpenAI provider. For custom endpoints, use hermes model or config.yaml.

For more settings, see the official Hermes documentation: Custom & Self-Hosted LLM Providers.

Last updated 2026-11-29 · Markdown source · llms.txt