Skip to main content
Hermes Agent is an open-source agent from Nous Research. It can connect to any OpenAI-compatible or Anthropic-compatible custom endpoint.

Prerequisites

Option 1: CLI wizard

Run:
Select Custom endpoint and fill in the prompts: The wizard uses the OpenAI Chat Completions protocol, which works for GPT, DeepSeek, Kimi, GLM, Grok and similar models.

Option 2: Edit the config file

1

Default model (Chat Completions)

Edit ~/.hermes/config.yaml and merge in the following:
~/.hermes/config.yaml
Put the key in ~/.hermes/.env:
~/.hermes/.env
You can also put api_key: "sk-xxxx" directly under model, but this is not recommended.
2

Add named endpoints such as Claude (Anthropic Messages)

To use several protocols at once, define named endpoints under providers and set the protocol with transport:
~/.hermes/config.yaml
3

Switch and verify

Restart Hermes and send a test message. You can switch models within a session:
The first uses the default endpoint under model; the second uses the named endpoint dreamto-claude.
Older Hermes versions use a top-level custom_providers: list (fields name, base_url, api_key, api_mode). Newer versions still read it and migrate it to providers: on hermes update. api_mode takes the same values as transport (chat_completions, anthropic_messages); note the underscores.

FAQ

Check that the variable name in ~/.hermes/.env matches key_env; running hermes setup cleans up stale .env entries. Note that OPENAI_BASE_URL only affects the built-in openai-api provider and does not change a custom endpoint’s URL.
  • The Chat Completions endpoint includes /v1; the Anthropic endpoint does not.
  • The model name must match the model ID in the Model Marketplace.
Hermes detects context length automatically. If detection is wrong, set context_length under model manually.