Prerequisites
- Pi installed
- A Fireworks API key (
fw_...) or a Fire Pass key (fpk_...) - The FireConnect CLI (see Install)
Enable Fireworks routing
Using Fire Pass
Use yourfpk_... key instead of a standard fw_... key:
glm-latest.
Default model
Pi routes a single default model. The default isglm-latest.
What gets written
FireConnect:- Sets
defaultProvider/defaultModelin~/.pi/agent/settings.json - Stores the API key in
~/.pi/agent/auth.json($FIREWORKS_API_KEYwhen from env, literal with--api-key) - Writes
auth.jsonat mode0600
~/.fireconnect/pi/ before the first change. Running fireconnect pi off restores them byte-for-byte.
API key handling
- If the key comes from
FIREWORKS_API_KEY, it is written as$FIREWORKS_API_KEYso the secret stays out of settings. - Passing
--api-keywrites the literal key toauth.jsoninstead.
Browsing and picking models
fpk_...) show Fire Pass-supported models only.
CLI reference
fireconnect pi help for all options.
Switch models
Turn off Fireworks routing
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
What gets written
FireConnect registers afireworks-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 $AZURE_API_KEY when from the environment, or literally with --api-key.
Pass your Foundry deployment name with --main. model list and model select browse the Fireworks serverless catalog only.