Skip to main content
FireConnect routes Claude Code through Fireworks AI models. See the FireConnect overview for install and CLI basics.

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>.

Using Fire Pass

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

Default model mapping

Short model IDs like glm-fast-latest are expanded to full Fireworks paths (for example, accounts/fireworks/routers/glm-fast-latest[1m]). FireConnect appends the [1m] suffix on main, opus, and fable so Claude Code enables 1M context. The subagent slot is written without [1m] because Claude Code forwards that value verbatim to the provider API.

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

Browse the global catalog, then configure Claude Code through on:

fireconnect model list

Lists the shared Fireworks serverless catalog (coding-tagged models plus known platform routers). Every row is tagged serverless.
Resolves the key from --api-key, the OS keychain, ~/.fireconnect/config.json, or FIREWORKS_API_KEY. Fire Pass keys (fpk_...) show Fire Pass-supported routers only and cannot select firerouter. Standard keys include firerouter.

fireconnect claude status vs fireconnect model list

FireRouter

Route requests through FireRouter, a managed service that sends simple work to cheaper open models and passes hard requests to Claude Opus 4.8. Requires a standard Fireworks API key (fw_...); Fire Pass keys cannot select firerouter.
Use --model firerouter for the primary model or alias flags like --opus firerouter for specific slots. Pass --anthropic-api-key sk-ant-... on on, or store a key once with fireconnect configure --anthropic-api-key sk-ant-.... Bias routing toward savings or quality with --routing-preference (15; default 3):
See Routing preferences for level names.

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, the default glm-fast-latest mapping may show Opus-tier estimates around 5/5 / 25 per Mtok while Fireworks bills at model-specific serverless rates (often much lower). Check the billing dashboard for actual spend. FireConnect also writes ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION with Fireworks rates for your main model. That text appears as the subtitle on the custom picker entry at the bottom of /model, not in the price column.

CLI reference

Run fireconnect claude help for all options, including --settings-path (custom settings.json location) and --routing-preference when using FireRouter.

Switch models

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