Hermes

Hermes "The model request failed. Run /model to switch or hermes doctor to check the setup."

Last checked

The error

The model request failed. Run /model to switch or `hermes doctor` to check the setup.
Details: <raw provider text>

CLI chat-panel copy from locales/en.yaml (cli.error.unknown). The Details line carries the provider's own message, shortened.

Hermes sorts each failed model request into a known reason (bad key, no credit, unknown model, rate limit, overloaded, server error, timeout) and prints a specific fix. This line is the fallback when none matched. The cause is on the Details line under it: read that, then fix the model id, the key or the request. If every model fails, run hermes doctor.

Why it happens

The CLI chat panel maps the error classifier's verdict to plain-language copy. Anything the classifier cannot place lands on this generic message, with the raw provider text demoted to a Details line.

  1. A model id the provider does not recognise or has retired, reported in words the classifier does not catch.
  2. A provider-specific rejection, such as a bad tool schema or an unsupported parameter (often an HTTP 400).
  3. A broken provider setup: wrong base_url, a proxy in the way, or a custom provider entry with a typo.
  4. On older builds, a lost connection to the local gateway was also shown this way, which no model switch can fix.

The fix

  1. 1 Read the Details line. It is the provider's real answer.
  2. 2 If it names a model, pick a valid one with /model.
  3. 3 If it mentions 401, 403 or an invalid key, fix the key in ~/.hermes/.env and restart Hermes.
  4. 4 If it is a 400 or a schema complaint, check the model's tool and context support.
  5. 5 If every model fails, run hermes doctor, and hermes gateway status to rule out a lost gateway.
hermes doctor

Still failing?

  • Run hermes logs to see the full provider response.
  • Update Hermes: newer builds classify more errors and print a specific fix instead of this line.

Related errors

Full guideHermes Agent Not Working? 14 Errors and Their Exact Fixes

Hit a different error?

Paste any agent error and get the cause and fix in seconds.

Open the decoder

Frequently asked questions

Why does Hermes not just show the provider error?

It does, on the Details line. The first line is a plain-language summary, and for unclassified errors that summary can only point you at /model and hermes doctor.

Does /model change my config permanently?

It switches the model for the session. Use hermes model to change the configured default.

Stop firefighting agent errors

Decoding errors one at a time is the manual version of what BetterClaw automates. Run your agents on a no-code AI agent platform with managed models, retries and config validation built in.

Free plan available · Pro $49/mo · BYOK · 7-day free trial