Prerequisites
- Claude Code installed
- A Fireworks API key (
fw_...) or a Fire Pass key (fpk_...) - The FireConnect CLI v0.9.0+ (see Install)
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
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 yourfpk_... key during login or with --api-key:
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/claude/ so fireconnect claude off can restore them.
Web search MCP
When you runfireconnect 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 throughon:
fireconnect model list
Lists the shared Fireworks serverless catalog (coding-tagged models plus known platform routers). Every row is tagged serverless.
--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.
--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 (1–5; default 3):
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.
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 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
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
~/.claude/settings.json from the backup saved in ~/.fireconnect/claude/.