CloseRouter

Hermes

Connect Hermes through Messages or Chat Completions.

1. Open the settings file

text
~/.hermes/config.yaml

2. Choose an API format

Use the Claude or OpenAI-compatible configuration. Before starting, set the key environment variable named by the selected example.

The model list and context_length values are example client settings. Use your selected models and provider limits.

Configuration

YAML
custom_providers:
  - name: CloseRouter-Anthropic
    base_url: https://api.closerouter.dev/v1
    api_key: ${CLOSEROUTER_ANTHROPIC_API_KEY}

    # Native Anthropic Messages API
    api_mode: anthropic_messages

    default_headers:
      anthropic-version: "2023-06-01"

    model: anthropic/claude-opus-5

    models:
      anthropic/claude-opus-5:
        context_length: 200000

Check the connection

Save the file and restart the application. Select the configured CloseRouter model. If it is missing or the key is rejected, check the file location, API address and key.