Skip to main content
FireConnect uses harness-first syntax: fireconnect <harness> <command>. Bare harness names run on (for example, fireconnect claude is the same as fireconnect claude on).

Global commands

Run fireconnect help for the overview, or fireconnect claude help (and similarly for other harnesses) for harness-level options.

Sign in options

~/.fireconnect/config.json stores a reference such as {keychain:fireworks-api-key} or {env:FIREWORKS_API_KEY}. It never stores a literal key in global config.

Global configuration

fireconnect configure sets provider defaults and shared keys. It does not sign you in. Use login for your Fireworks API key.
In configure, --api-key is the Azure endpoint key and requires --provider azure. For Fireworks keys, use fireconnect login.

Providers

Set the default with fireconnect configure --provider fireworks or --provider azure. Harness on commands use the configured provider unless you pass --azure or per-command --base-url / --api-key overrides.

Per-harness commands

Each CLI harness (claude, opencode, codex, pi, deepagents) supports:
  • fireconnect <harness> on: route through the configured provider
  • fireconnect <harness> off: restore your previous config
  • fireconnect <harness> status: show provider, auth, and models
  • fireconnect <harness> help: harness-specific help
Claude Code also has fireconnect claude usage. See Session usage. Each IDE harness (cursor, vscode) supports on, off, status, and help. Commands that write settings require quitting the IDE first; status is read-only.

Model flags

Use --model <id> for the primary model. Claude Code also supports slot flags: --opus, --sonnet, --haiku, --fable, --subagent. On the Foundry path, pass your model with --model (for example, --model FW-GLM-5.2).
--main is a retired alias for --model in v0.9.0+. Prefer --model in new scripts.
FireRouter flags (when a slot uses firerouter):
  • --anthropic-api-key sk-ant-...: BYOK for pass-through to Claude Opus 4.8
  • --routing-preference <1-5>: tune savings vs. quality (see Routing preferences)

API key resolution

Direct Fireworks routing (--provider fireworks)
  1. Explicit --api-key
  2. OS keychain (via fireconnect login)
  3. Global ~/.fireconnect/config.json reference
  4. FIREWORKS_API_KEY environment variable
Claude Code additionally reads harness-local keys from ~/.claude/settings.json when FireConnect is already enabled there. Fireworks on Microsoft Foundry (--provider azure)
  1. Explicit --api-key
  2. Global ~/.fireconnect/config.json
  3. AZURE_API_KEY environment variable

Migration from earlier syntax

Pre-0.5.0 syntax

v0.9.0 changes

See also