Skip to main content
FireConnect routes LangChain Deep Agents Code (dcode) through Fireworks AI models. See the FireConnect overview for install and CLI basics.

Prerequisites

Enable Fireworks routing

Or pass the key once:
Restart dcode after on or off if it is already running.

Default model

Deep Agents routes a single default model. The default is glm-fast-latest, written to config as fireworks:<model-id>.

What gets written

FireConnect edits ~/.deepagents/config.toml:
  • Sets [models].default to fireworks:<model> and configures [models.providers.fireworks] with the Fireworks OpenAI-compatible base URL (https://api.fireworks.ai/inference) and a baked api_key literal (file mode 0600)
  • Stores your Fireworks API key in the FireConnect keychain via login or deepagents on --api-key, then bakes it into config.toml
  • FireConnect does not write ~/.deepagents/.state/auth.json. Use dcode’s /auth for credentials stored in that file
FireConnect snapshots config.toml under ~/.fireconnect/deepagents/ before the first change. Running fireconnect deepagents off restores it byte-for-byte.

Browsing and picking models

Fire Pass keys (fpk_...) show Fire Pass-supported routers only and cannot select firerouter.

CLI reference

Run fireconnect deepagents help for all options.

Switch models

Turn off Fireworks routing

This restores your previous config.toml from the backup in ~/.fireconnect/deepagents/.

Use a non-default config file

Fireworks on Microsoft Foundry

Deep Agents supports Fireworks on Microsoft Foundry (CLI: --provider azure or on --azure). See Microsoft Foundry in FireConnect and the portal setup guide.
Foundry routing requires a standard Azure API key. Fire Pass keys (fpk_...) are not supported.
Pass your Foundry model with --model (for example, FW-GLM-5.2), not a Fireworks serverless short ID. FireConnect writes a fireworks-azure provider in config.toml with the Foundry base URL and deployment name. fireconnect model list only browses the Fireworks serverless catalog on the direct gateway path. To switch back to the Fireworks gateway:
See Turn off Foundry routing for off and global config behavior.

Source

FireConnect is open source: github.com/fw-ai/fireconnect