Skip to content

Quickstart for Fireworks AI Users ​

Fireworks AI delivers ultra-low-latency serving for open-weight coding and reasoning models over the OpenAI Chat Completions protocol (https://api.fireworks.ai/inference/v1). Kompile connects to Fireworks natively (fireworks provider) with live model discovery and full harness capabilities — Enforcer, Judge, Subagents, LSP, code indexing, and cost tracking.

Because Fireworks model IDs use full account paths (accounts/fireworks/models/...), the interactive wizards are the fastest way to set up Fireworks — after saving your defaults, future sessions are just kompile chat:

bash
cd /path/to/your/repo
kompile auth login       # Interactive Auth Wizard → pick Fireworks (or `/auth` inside chat)
kompile chat             # Launches SetupWizard on first run (or `kompile chat --setup` anytime)

1. Authenticate (important: managed store only) ​

IMPORTANT

Fireworks keys in Kompile are managed credentials only — there is intentionally no ambient FIREWORKS_API_KEY environment-variable fallback (FireworksChatProvider). Always register your key once via kompile auth login (or /auth inside chat).

Direct CLI commands for scripts, CI, or multiple named accounts:

bash
# Option A: Direct masked prompt
kompile auth login fireworks

# Option B: Pipe from stdin (CI / scripts)
printf '%s\n' "$FIREWORKS_API_KEY" | kompile auth login fireworks --stdin

# Option C: Store a reference to an environment variable you manage yourself
export FIREWORKS_API_KEY="fw_..."
kompile auth login fireworks --from-env FIREWORKS_API_KEY

Verify your stored credential (or manage multiple accounts):

bash
kompile auth login fireworks --name team --no-switch
kompile auth list

2. Discover models & start chatting ​

Kompile queries https://api.fireworks.ai/inference/v1/models live and caches the last-known-good catalog in ~/.kompile/cache/model-catalogs.json. Once saved via kompile chat --setup, run kompile chat.

bash
cd /path/to/your/repo

# Interactive setup wizard — picks Fireworks and lists live models
kompile chat --setup

Direct CLI overrides (for scripts or one-off launches):

bash
kompile chat --provider fireworks \
  --model accounts/fireworks/models/deepseek-v3p1

# Pin a named credential to a single terminal session
kompile chat --provider fireworks \
  --model accounts/fireworks/models/deepseek-v3p1 \
  --credential team --auth-scope session

Switch models mid-session at any time with /model.

Non-interactive / CI turns ​

bash
kompile chat --provider fireworks \
  --model accounts/fireworks/models/deepseek-v3p1 \
  --prompt "Review the diff in src/ and list any missing null checks" \
  --output-format stream-json

3. How resolve_model works with Fireworks AI ​

Before launching a subagent, Kompile agents call resolve_model to inspect live routes without running a model turn or touching credentials:

How your vendor of choice is resolved ​

Fireworks model IDs use Fireworks-specific accounts/fireworks/models/... (or your accounts/<org>/deployedModels/...) paths, which do not match bare first-party family prefixes in ModelRouting:

  • When Fireworks is your active chat provider, ModelRouting keeps unrecognized/Fireworks-prefixed IDs on fireworks automatically.
  • When another provider is your main agent (for example Claude Opus/Fable, OpenAI Astra/Sol, or Antigravity Neon), pass provider=fireworks explicitly — or bind Fireworks in /subagent-config route / role-route so every worker dispatches straight to Fireworks without manual flags.

TIP

Fireworks AI is one of the best dedicated worker backends in Kompile. Instead of running expensive frontier models like Opus, Fable, Astra, or Neon as subagents, keep your frontier model on the main lead thread and route parallel subagent workers onto fast, low-cost Fireworks models.

Subagents never silently borrow the parent chat's Kompile-managed credential — pin your Fireworks credential name (kompile auth list fireworks) in /subagent-config route:

text
/subagent-config ban *opus*
/subagent-config ban *fable*
/subagent-config ban *astra*
/subagent-config ban *neon*
/subagent-config route fireworks/accounts/fireworks/models/deepseek-v3p1 credential=default
/subagent-config per-session 6
/subagent-config budget 500000
/subagent-config preload-tools read,grep,glob,edit,write,bash

Where Fireworks shines in Kompile ​

Fireworks' high token throughput makes it especially effective in three Kompile patterns:

  • Fast edit-test-fix coding loops: Rapid tool-call turnaround when iterating across read, edit, lsp action=check, and build.
  • Parallel subagent fan-out (multi_task / quorum_task): Spawn multiple Fireworks workers in parallel to audit modules, write tests, or cross-check findings without hitting slow queue times.
  • High-speed background Judge: Configure a fast Fireworks model to evaluate tool calls and completion criteria in The Judge while keeping a frontier model as your lead.

Use /workflow inside kompile chat to assign Fireworks models to worker or reviewer roles alongside another provider — see Interactive Workflows.


Resuming & importing sessions onto Fireworks AI ​

Every Fireworks chat session is stored as a portable Kompile transcript in ~/.kompile/conversations/. You can resume your own sessions directly or import history from external CLIs/IDEs (Claude Code, Codex, Antigravity, OpenCode, Cursor, Aider, etc.) and pick up on Fireworks' fast open-weight models:

bash
# Resume Kompile sessions
kompile chat --continue                                # Resume last session in this project
kompile resume                                         # Interactive multi-tab session browser
kompile resume-all                                     # Restore all recently active terminal windows

# Import an external session and continue on Fireworks AI
kompile session import-all
kompile chat --resume <id> --provider fireworks --model <fireworks-model-id>

CrossAgentResumeCompactor keeps the most recent turns verbatim and compacts older turns to fit your target Fireworks model's context window. See Import & Resume for full details.

Common gotchas ​

  • "No credential found" even with FIREWORKS_API_KEY exported: By design, FireworksChatProvider does not read ambient environment variables automatically. Run kompile auth login fireworks --from-env FIREWORKS_API_KEY (or kompile auth login fireworks) once so Kompile's credential store knows about it.
  • Custom / dedicated Fireworks deployments: Use the full model resource path shown in your Fireworks console (e.g., accounts/<your-account>/deployedModels/<id>), or override the endpoint with --base-url if using a private proxy.
  • Keep Kompile tools enabled: Open-weight models perform dramatically better when reading targeted line ranges (read, grep, code_search, lsp) instead of dumping whole files via shell commands — Kompile's Enforcer nudges the model onto those dedicated tools automatically.

Next steps ​

Released under the Apache-2.0 License.