Hermes Agent + OmniaKey: a custom OpenAI-compatible endpoint
Point Nous Research's Hermes Agent at OmniaKey with one custom endpoint — `hermes model` or a few lines of config.yaml, and Claude, GPT, Gemini, and Grok all answer to one key.
On this page
- The fast path: hermes model
- Or by hand: config.yaml
- One key, four families
- Common setup errors
- /model doesn't offer the custom endpoint
- A key in .env is ignored and requests go to another provider
- Hermes won't start with provider: main
- /model custom lands on the wrong model
- Frequently asked questions
- How do I connect Hermes Agent to OmniaKey?
- Why does Hermes return 404 with my OmniaKey base URL?
- Can one OmniaKey key cover Claude, GPT, Gemini and Grok?
- How do I switch models mid-session?
- Sources checked
Updated October 30, 2026: Four common Hermes setup errors now come with the symptom, the cause, and the fix, taken from Hermes Agent's own docs.
Hermes Agent (from Nous Research) ships with built-in providers, but it's designed to talk to any OpenAI-compatible endpoint. That makes OmniaKey a clean fit: one custom endpoint, and the same key reaches Claude, GPT, Gemini, and Grok — you switch model by id, not by reconfiguring.
The fast path: hermes model
The quickest setup is the interactive picker:
hermes model
Choose Custom endpoint (self-hosted / VLLM / etc.), then enter:
- Base URL:
https://api.omniakey.com/v1 - API key: your OmniaKey key
- Model: e.g.
claude-opus-4-8
End the base URL at /v1. Hermes appends /chat/completions itself, so a URL that already includes the full path — or a trailing slash — is the usual cause of a 404.
Or by hand: config.yaml
Prefer to edit it directly, or want a persistent multi-model setup? Put the same thing in ~/.hermes/config.yaml instead:
model:
provider: custom
base_url: https://api.omniakey.com/v1
api_key: your-omniakey-api-key
default: claude-opus-4-8
models:
- claude-opus-4-8
- gpt-5.5
- gemini-3.1-pro-preview
- grok-4.5
provider: custom is what tells Hermes to call your endpoint directly with the key above, instead of one of its built-in providers. The models: list is what populates the /model picker — restart Hermes once after editing, and you can switch between claude-opus-4-8, gpt-5.5, gemini-3.1-pro-preview, and grok-4.5 without leaving the session.
One key, four families
Because OmniaKey picks the model by id on its OpenAI-compatible endpoint, a single custom endpoint covers all four families — no second provider block, no juggling base URLs. Billing is per token against one prepaid balance, with no monthly plan. And the model id you set is the one that runs: no silent fallback to a cheaper "equivalent" that would reason about your codebase differently mid-task. The model catalog lists every id you can set, and pricing shows the per-token rate for each. The same key works in other agents; see the OpenClaw setup, Cline custom API key and Claude Code setup guides.
Common setup errors
These four come up often when you point Hermes at a custom endpoint. The cause and the fix for each are from the Hermes provider docs and the configuration reference.
/model doesn't offer the custom endpoint
Symptom: you type /model in a running session and OmniaKey is not in the list.
Cause: /model inside a session only switches between providers you have already set up. It cannot add a provider, run OAuth, or prompt for an API key.
Fix: exit the session, run hermes model in the terminal, set up the custom endpoint there, then start a new session.
A key in .env is ignored and requests go to another provider
Symptom: you put the base URL or the key in ~/.hermes/.env, and Hermes still calls a built-in provider.
Cause: LLM_MODEL in .env was removed — config.yaml is the single source of truth for the model and the endpoint — and OPENAI_BASE_URL counts only for the openai-api provider.
Fix: put base_url and api_key in the model: block of ~/.hermes/config.yaml, or point key_env at the variable that holds the key. Once base_url is set, Hermes calls that endpoint directly and authenticates with api_key or OPENAI_API_KEY.
Hermes won't start with provider: main
Symptom: startup fails, or the model picker stays empty, after you set provider: main in the top-level model: block.
Cause: main means "use my main agent's provider" and is valid only inside auxiliary:, compression:, or a fallback entry.
Fix: set provider: custom in model:, next to the OmniaKey base_url and key.
/model custom lands on the wrong model
Symptom: /model custom picks a model you did not ask for, or errors out.
Cause: bare /model custom asks the endpoint's /models API and auto-selects only when exactly one model is loaded, and OmniaKey serves several.
Fix: name the model, as in /model custom:claude-opus-4-8.
Frequently asked questions
How do I connect Hermes Agent to OmniaKey?
Run hermes model, choose Custom endpoint (self-hosted / VLLM / etc.), and enter https://api.omniakey.com/v1 as the base URL, your OmniaKey key, and a model id such as claude-opus-4-8. The same three values in ~/.hermes/config.yaml do the job if you would rather edit the file.
Why does Hermes return 404 with my OmniaKey base URL?
The base URL has to end at /v1. Hermes appends /chat/completions itself, so a URL that already includes the full path, or one with a trailing slash, is the usual cause of the 404.
Can one OmniaKey key cover Claude, GPT, Gemini and Grok?
Yes. OmniaKey picks the model by id on its OpenAI-compatible endpoint, so one custom endpoint reaches all four families — you change the id, not the provider block. Put the ids you want in the models: list and they show up in the /model picker.
How do I switch models mid-session?
Type /model custom:<model id>, for example /model custom:gpt-5.5. Restart Hermes once after you edit the models: list, and the picker and /model both see the new ids.
Sources checked
The coding agents guide covers the other tools.
Related articles
Use Claude Code with OmniaKey
Point Claude Code at OmniaKey's Anthropic-native endpoint — two environment variables, Claude models that are never silently swapped, billing per token with no monthly plan.
OpenClaw + OmniaKey: one provider, four model families
Add OmniaKey to OpenClaw as one OpenAI-compatible provider and run Claude, GPT, Gemini, and Grok by model id — including the allowlist step everyone misses.
Cline Custom API Key Setup
Connect Cline to an OpenAI-compatible API in four fields, verify it, and diagnose failures by layer.