Prerequisites
- Hermes Agent installed per the official docs.
- An API key created on the API Keys page of the DreamTo console.
Option 1: CLI wizard
Run:
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 Put the key in You can also put
~/.hermes/config.yaml and merge in the following:~/.hermes/config.yaml
~/.hermes/.env:~/.hermes/.env
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
401
401
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.404 / model not found
404 / model not found
- The Chat Completions endpoint includes
/v1; the Anthropic endpoint does not. - The model name must match the model ID in the Model Marketplace.
Wrong context length
Wrong context length
Hermes detects context length automatically. If detection is wrong, set
context_length under model manually.
