fireconnect on and fireconnect off to switch providers without editing config files by hand.
Prerequisites
- Claude Code installed
- A Fireworks API key (
fw_...) or a Fire Pass key (fpk_...) - Node.js (the installer can install it via Homebrew or apt if it is missing)
Install
- Uses Node.js to update Claude Code settings (it does not install or update npm packages)
- Prompts for your Fireworks API key, or reads it from
FIREWORKS_API_KEY - Runs
fireconnect onto apply the default model mapping and write~/.claude/settings.json - Clones the FireConnect CLI to
~/.fireconnect/cliand installs afireconnectlauncher to~/.local/bin - Adds
~/.local/binto your shellPATH
Using Fire Pass
If you have a Fire Pass subscription, use yourfpk_... key instead:
kimi-k2p6-turbo — the only model covered by the Fire Pass subscription.
Default model mapping
| Alias | Standard key (fw_...) | Fire Pass key (fpk_...) |
|---|---|---|
| main | kimi-k2p6-turbo | kimi-k2p6-turbo |
| opus | kimi-k2p6-turbo | kimi-k2p6-turbo |
| sonnet | glm-5p1 | kimi-k2p6-turbo |
| haiku | minimax-m2p5 | kimi-k2p6-turbo |
| subagent | minimax-m2p5 | kimi-k2p6-turbo |
kimi-k2p6-turbo are expanded to full Fireworks paths (for example, accounts/fireworks/routers/kimi-k2p6-turbo).
What gets written
FireConnect writes these settings to~/.claude/settings.json:
ANTHROPIC_API_KEY (preferred) and ANTHROPIC_AUTH_TOKEN (compatibility alias) with the same Fireworks key. It also saves a backup of your previous provider settings to ~/.fireconnect/claude/ so fireconnect off can restore them.
CLI reference
fireconnect help <command> for all options.
Manual setup
If you already have a Fireworks API key, you can skip the installer and enable routing directly:Switch models
Short model IDs work everywhere:Turn off Fireworks routing
~/.claude/settings.json from the backup saved in ~/.fireconnect/claude/.
Enable with a specific API key
Uninstall
~/.fireconnect/claude/, and deletes the fireconnect CLI launcher from ~/.local/bin.