Skip to main content
Prefer FireConnect. Run fireconnect claude on --model firerouter (v0.9.0+) instead of editing JSON by hand. See Claude Code and Models.
This page is only for manual ~/.claude/settings.json setup when you cannot use FireConnect.

Prerequisites

Add one of the configs below to ~/.claude/settings.json (on Windows: %USERPROFILE%\.claude\settings.json), then restart Claude Code.

With a Claude subscription

You do not need to pass any access or API token. Use ANTHROPIC_CUSTOM_HEADERS to pass your Fireworks API key.

With an Anthropic API key

Add ANTHROPIC_API_KEY for pass-through. You still need ANTHROPIC_CUSTOM_HEADERS for your Fireworks API key.