Skip to main content
Add FireRouter to an existing LiteLLM Proxy deployment so developers request one model instead of choosing between open and closed-source models on every call. FireRouter uses bring-your-own-key (BYOK): your Fireworks API key pays for redirected calls, and an Anthropic API key pays for pass-through to Claude Opus 4.8. See Authentication. FireRouter does not store provider keys.

Prerequisites

Add FireRouter to config.yaml

Always use the full router resource ID in litellm_params.model. LiteLLM rewrites short names like fireworks_ai/firerouter to accounts/fireworks/models/firerouter, which FireRouter does not recognize. Set ANTHROPIC_API_KEY on the LiteLLM server so pass-through requests include x-anthropic-api-key automatically. Developers do not need to send the Anthropic key on each request when it is configured here.
A server-side Anthropic key is shared across all callers of that proxy deployment. If each developer should bring their own Anthropic key, omit extra_headers and have clients send x-anthropic-api-key on each request instead (see below).
Start or restart the proxy with both keys exported:

Call FireRouter

Clients authenticate to LiteLLM with a virtual key:
Optional routing preference:
See Routing preferences for values 15.

Per-developer Anthropic keys

If each caller should use their own Anthropic key, omit extra_headers from the model config and have clients send the header on every request:
Enable client header forwarding for the accounts/fireworks/routers/firerouter model group if your LiteLLM version does not forward x- headers by default.

API key layout