fireconnect <harness>. Use off to restore its previous settings, status to inspect the connection, and help to see harness-specific options. The optional on command remains available for backward compatibility.
For model selection and credentials, see Open Models and Harness Compatibility. For router behavior, see FireRouter.
Global commands
model list:
fireconnect help for the overview, or fireconnect claude help (and similarly for other harnesses) for harness-level options.
Sign in and key storage
~/.fireconnect/config.json usually stores a secret-store reference or {env:FIREWORKS_API_KEY}, not the key itself. Run fireconnect status to see which backend is active.
FireConnect may store an Anthropic or Azure key literally when you pass --api-key. It writes files containing literal keys with mode 0600.
Configure a provider
fireconnect configure sets the default provider, Foundry endpoint, Azure key, or shared Anthropic key. It does not store your Fireworks API key. Use fireconnect login for that.
configure, --api-key is the Azure endpoint key and requires --provider azure. For Fireworks keys, use fireconnect login.
Providers
See Coding Harnesses for current Foundry compatibility. Connections use the configured provider by default. To use Foundry for one command, pass
--azure, or pass both --base-url and --api-key.
Harness commands
CLI harnesses support connect,off, status, and help. Claude Code also supports usage, live, and demo.
IDE commands require you to quit the app before FireConnect writes settings. status is read-only. See Coding Harnesses for app-specific commands and restart rules.
Choose a model or router
Use--model <id> to add or select a model. In Claude Code, this adds one row to /model; native tiers remain unchanged.
FW-GLM-5.2.
When using a model router:
- Pass any router ID with
--model, such asfirerouter,firerouter/opus,firerouter/claude-opus-5-5, or a custom route such asfirerouter/opus/glm-5p3. - Pass
--anthropic-api-key sk-ant-...when the route contains a Claude family alias or Anthropic model ID and the harness must forward a local key. - Pass
--routing-preference <level>on supported harnesses. Claude Code accepts this flag only with barefirerouter.
API key resolution
Afterfireconnect login, run fireconnect <harness> without --api-key. The flag on connect commands is an optional override (CI, rotation, or a key you have not stored yet). For the normal path, sign in once and omit it.
Direct Fireworks routing (--provider fireworks)
- Explicit
--api-keyon the connect command FIREWORKS_API_KEYenvironment variable- Stored credential referenced by
~/.fireconnect/config.json
FIREWORKS_API_KEY is set, login uses it without storing a copy. Unset it before login --api-key, --with-token, or browser sign-in.
When no global key resolves, connect can reuse a Fireworks key already stored in that harness’s config. Claude Code status and usage also read its connected key from ~/.claude/settings.json.
Fireworks on Microsoft Foundry (--provider azure)
- Explicit
--api-key - Existing Azure key stored by the harness
- Literal Azure key saved by
fireconnect configure AZURE_API_KEY, including a saved environment reference
Legacy syntax
Current usage isfireconnect <harness> --model <id>.
--main is rejected with a hint to use --model. Claude tier flags such as --opus and --sonnet are rejected on connect. --interactive is not supported for Claude Code.