# 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.

- Canonical HTML: https://omniakey.com/blog/hermes-setup
- Markdown: https://omniakey.com/blog/hermes-setup.md
- Published: 2026-05-24 (updated 2026-10-30)
- Author: Kiki, COO at OmniaKey
- Language: en
- Category: Guide
- Reading time: 4 min
- All posts: https://omniakey.com/blog/llms.txt

---

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:

```bash
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:

```yaml
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](https://omniakey.com/models) lists every id you can set, and [pricing](https://omniakey.com/pricing) shows the per-token rate for each. The same key works in other agents; see the [OpenClaw setup](https://omniakey.com/blog/openclaw-setup), [Cline custom API key](https://omniakey.com/blog/cline-custom-api-key) and [Claude Code setup](https://omniakey.com/blog/claude-code-setup) guides.

- **OpenAI-compatible**: <https://api.omniakey.com/v1>
- **Anthropic-native**: <https://api.omniakey.com>
- **Gemini-native**: <https://api.omniakey.com/v1beta>

## 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](https://hermes-agent.nousresearch.com/docs/integrations/providers) and the [configuration reference](https://hermes-agent.nousresearch.com/docs/user-guide/configuration).

### `/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

- [Nous Research: LLM and Model Providers](https://hermes-agent.nousresearch.com/docs/integrations/providers)
- [Nous Research: Hermes Agent Configuration](https://hermes-agent.nousresearch.com/docs/user-guide/configuration)

The [coding agents guide](https://docs.omniakey.com/en/coding) covers the other tools.
