Skip to main content
FireConnect routes Pi through Fireworks AI models. See the FireConnect overview for install and CLI basics.

Prerequisites

Enable Fireworks routing

Restart Pi after enabling if it is already running.

Using Fire Pass

Use your fpk_... key during login or with --api-key:
FireConnect detects Fire Pass keys and defaults Pi to glm-fast-latest.

Default model

Pi routes a single default model. The default is glm-fast-latest.

What gets written

FireConnect:
  • Sets defaultProvider / defaultModel in ~/.pi/agent/settings.json
  • Stores a baked plaintext literal in fireworks.key in ~/.pi/agent/auth.json (mode 0600)
  • Registers the preferred serverless catalog in ~/.pi/agent/models.json for Pi’s /model picker
FireConnect snapshots both files under ~/.fireconnect/pi/ before the first change. Running fireconnect pi off restores them byte-for-byte.

Browsing and picking models

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

FireRouter

CLI reference

Run fireconnect pi help for all options.

Switch models

Turn off Fireworks routing

This restores your previous settings.json and auth.json from the backup in ~/.fireconnect/pi/.

Use a non-default settings file

Fireworks on Microsoft Foundry

Pi supports Fireworks on Microsoft Foundry (CLI: --provider azure or on --azure). See the FireConnect overview and Microsoft Foundry integration guide for portal setup.

Configure and enable

One-off routing:

What gets written

FireConnect registers a fireworks-azure openai-completions provider in Pi’s models.json (labeled Fireworks on Microsoft Foundry) and sets defaultProvider / defaultModel in settings.json. The Azure API key is stored in auth.json as a literal when passed with --api-key, or as $AZURE_API_KEY when resolved from the environment. Pass your Foundry model with --model (for example, FW-GLM-5.2). Use fireconnect model list only for browsing Fireworks serverless models on the direct gateway path.

Turn off Foundry routing

To switch back to the Fireworks gateway:
To remove FireConnect entirely and restore your original settings.json, auth.json, and models.json:
Restart Pi after switching or running off. See Turn off Foundry routing for details on global config behavior and uninstall.

Source

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