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). To pick or switch models, see Models. This page is the command and auth reference.

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. See Models for a cross-harness quick reference, restart requirements, and common mistakes. Claude Code-only flags:
  • --interactive: open the model mapping wizard (cannot combine with model flags)
  • --non-interactive: skip first-run onboarding; use saved preferences or example defaults
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 using firerouter):
  • --anthropic-api-key sk-ant-...: BYOK for Claude Opus 4.8 pass-through (where the harness supports it)
  • --routing-preference <1-5>: savings vs. quality (Claude Code, OpenCode, Pi, VS Code). 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

Only needed if you still have old scripts or muscle memory. Day-to-day use is fireconnect <harness> on --model <id>.

See also