Skip to main content
FireConnect routes Claude Code through Fireworks AI models. See the FireConnect overview for install and CLI basics.
Change models: fireconnect claude on --model <id> (or --opus / --sonnet / …). See Models.

Prerequisites

Azure routing not implemented yet for Claude Code. fireconnect claude on always configures direct Fireworks, even when global config has --provider azure or you pass --azure. See Microsoft Foundry in FireConnect.

Enable Fireworks routing

Or pass the key once:
Restart Claude Code after enabling, then test with:
After fireconnect claude on, start a new Claude Code session or run /model to pick up model changes. To use a new model in the same session, start a new session or /exit and resume with claude --resume <id>.

Change models

Slot flags are independent. Re-running on without flags keeps your current mapping.

Using Fire Pass

Use your fpk_... key during login or with --api-key:
FireConnect detects Fire Pass keys and routes all model aliases to kimi-fast-latest.

Example model mapping

When you run fireconnect claude on without model flags, FireConnect applies the mapping below. First-time setup opens an interactive model picker unless you pass --non-interactive. Override any slot with --model, --opus, --sonnet, --haiku, --fable, or --subagent. Short model IDs expand automatically. FireConnect appends [1m] on 1M-context models (not on subagent). FireConnect saves your chosen mapping per key type. Reopen the wizard anytime:
Use --non-interactive to skip the wizard and apply saved preferences or the example mapping above. --interactive cannot be combined with model flags like --model or --opus. In the wizard, toggle between fast models (routers on the high-speed path) and non-fast models (pinned model IDs that stay stable across catalog updates).

What gets written

FireConnect writes these settings to ~/.claude/settings.json. Claude Code authenticates via the X-Fireworks-Api-Key custom header (not apiKeyHelper). The Fireworks key is written to the file with mode 0600:
FireConnect saves a backup of your previous provider settings to ~/.fireconnect/claude/ so fireconnect claude off can restore them.

Web search MCP

When you run fireconnect claude on, FireConnect can install the Fireworks WebSearch MCP for eligible accounts. FireConnect WebSearch integration is Claude Code only today; other harnesses are coming soon. The MCP itself works from any harness that supports HTTP MCP. See the WebSearch MCP guide for the endpoint URL, bearer token auth, and manual setup on Claude Code or other tools. When installation succeeds, fireconnect claude on prints a confirmation such as Web search → fireworks-websearch (installed). Restart Claude Code, then run /mcp and connect to fireworks-websearch. fireconnect claude off removes the managed MCP entry and restores your previous ~/.claude/settings.json (including any permissions rules).

Browsing and picking models

fireconnect model list shows serverless endpoints and pricing. fireconnect claude status shows your current mapping and rates. Fire Pass keys only list Fire Pass routers. FireConnect rejects --model firerouter with Fire Pass (fpk_...) on every harness; use an fw_... key.

FireRouter

Route requests through FireRouter. FireConnect rejects --model firerouter with Fire Pass (fpk_...) on every harness; use an fw_... key.
Use --model firerouter for main, or slot flags like --opus firerouter. Pass --anthropic-api-key sk-ant-... on on, or store it once with fireconnect configure --anthropic-api-key sk-ant-.... Bias savings vs quality with --routing-preference (1-5; default 3):
See Routing preferences.

Session usage

Claude Code’s /model picker shows Anthropic list prices, not Fireworks serverless rates. For actual spend, use fireconnect claude usage. It reads Claude Code session logs and estimates Fireworks cost from your configured models.
Pair with fireconnect claude status for per-slot Fireworks rates and fireconnect model list to browse serverless pricing.

Claude Code pricing estimates

Claude Code’s cost column in the /model picker still uses Anthropic list prices. The session usage section above is the better place to estimate real Fireworks spend. FireConnect cannot override Claude Code’s price column. For example, a kimi-fast-latest main mapping may show Opus-tier estimates while Fireworks bills at serverless rates. Check the billing dashboard for actual spend.

Troubleshooting

Text-only models and images

Claude Code cannot mark a model as non-vision. Pasting an image on a text-only slot (for example glm-fast-latest or deepseek-v4-flash) can break the session. Recover with /rewind, then avoid images on that slot or map it to a vision model (for example kimi-fast-latest):
fireconnect claude on warns when your mapping includes text-only models. fireconnect claude status labels each slot vision or text-only.

CLI reference

Run fireconnect claude help for all options.

Turn off Fireworks routing

This restores your previous ~/.claude/settings.json from the backup saved in ~/.fireconnect/claude/.

Uninstall

To remove FireConnect from your machine entirely (all harnesses):

Source

FireConnect is open source: github.com/fw-ai/fireconnect