Skip to main content
Content updated: 2026-10-12
With crazyrouter-hermes, you can switch Hermes Agent to Crazyrouter as the model provider. Once configured, Hermes uses https://api.crazyrouter.com/v1 as the OpenAI-compatible endpoint and calls Claude, GPT, DeepSeek, Gemini, Qwen, and 627+ other models with a single Crazyrouter API Key.

Who is this for

  • for users of Hermes Agent who want to use Crazyrouter as their model provider
  • for local agent scenarios where models and quotas must be managed through Crazyrouter
  • for those who want to set up OPENAI_API_KEY, OPENAI_BASE_URL, and the default model with a single command

Requirements

Hermes connects to Crazyrouter using OpenAI-compatible settings. The Base URL must be https://api.crazyrouter.com/v1.

Setup with one command

The script will prompt you to enter the Crazyrouter API Key, choose a default model, and optionally verify the connection.
The script writes the local Hermes configuration. If you already have your own settings, make a backup of ~/.hermes/.env and ~/.hermes/config.yaml first.

Manual setup

If you don’t want to run the script, configure Hermes manually.

Environment Variables

Edit ~/.hermes/.env:

Default Model

Edit ~/.hermes/config.yaml:
Replace default with any model allowed in your Crazyrouter token.

Switching Models

After setup, switch models inside Hermes using /model:
If you see model not allowed or 403 when switching, usually the selected model isn’t allowed in the current Crazyrouter token.

Checklist

  • OPENAI_API_KEY in ~/.hermes/.env is a valid Crazyrouter token
  • OPENAI_BASE_URL equals https://api.crazyrouter.com/v1
  • provider in ~/.hermes/config.yaml equals custom
  • the default model is allowed in the Crazyrouter token
  • Hermes responds to a test message
  • /model gpt-5.5 or another allowed model switches successfully

Common Issues

Open the crazyrouter-hermes repository

See setup scripts, manual configuration example, and current notes.