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 routers 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/.