Hermes Agent setup via the Kiree gateway
Connect Hermes Agent to kiree.net: ~/.hermes/config.yaml with a custom provider, the gateway base_url and a required max_tokens; catalog models, billed by tokens.
Why the direct setup does not cover every case
Hermes normally calls its own endpoint. The config.yaml custom provider points at the gateway base_url; the agent replies with catalog models through kiree.net.
Steps to your first request
Get a key
Create a sk-… key in the kiree.net console.
Describe the custom provider
~/.hermes/config.yaml: model.default, provider custom, base_url https://kiree.net/v1, api_key and max_tokens.
Check with a request
hermes chat -q "reply ok": the reply comes from a gateway model.
base_url: "https://kiree.net/v1"
api_key: "sk-…"
max_tokens: 8192
max_tokens is required in practice: the custom provider sends 65536 by default, which exceeds the limit of many models (gpt-4o-mini — 16384) and returns 400.
Check: hermes chat -q "Reply with exactly one word: ok": the ok reply comes from a gateway model, usage visible in the console.
What to connect in Hermes Agent
Any text model from the catalog works on one key. Below are popular options to start.
Common errors
400: max_tokens is too large
The custom provider sends 65536 by default: set model.max_tokens (e.g. 8192) in config.yaml.
401 Unauthorized
api_key is wrong or missing; check config.yaml or key_env in .env.
Provider does not resolve
A custom endpoint needs provider: custom and base_url; OPENAI_BASE_URL only works for the openai-api provider.
Frequently asked questions
How do I connect Hermes through the gateway?+
The custom provider with base_url kiree.net goes to the gateway directly.
Why is max_tokens required?+
Without it Hermes sends 65536 completion tokens; models with a lower limit return 400. 8192 suits most catalog models.
Do I need a Nous Portal subscription?+
No: a kiree.net key and usage billed by actual tokens from the balance.
Which models are available?+
Any catalog text model: gpt-4o-mini, claude-sonnet-4-6, qwen3-7-plus, deepseek-v4-flash.
Create a key in a couple of minutes; pay only for actual usage, no subscription required.