~/.claude/settings.json setup when you cannot use FireConnect.
Prerequisites
- Claude Code installed
- A Fireworks API key (
fw_...) - An Anthropic API key if you need pass-through to Claude Opus 4.8. See Authentication.
~/.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. UseANTHROPIC_CUSTOM_HEADERS to pass your Fireworks API key.
With an Anthropic API key
AddANTHROPIC_API_KEY for pass-through. You still need ANTHROPIC_CUSTOM_HEADERS for your Fireworks API key.