1) Configure fx
Use the Phaseo CLI to add the connection, sync compatible Phaseo models, and make Phaseo fx’s active provider:- adds a
phaseoconnection to~/.fx/settings.json, preserving your other settings and connections; - syncs up to 256 compatible Phaseo models, the most fx accepts, with their context and output limits;
- sets
phaseoas the active fx provider and records the previous provider so removal can restore it; - creates a
Phaseo CLI: fx API Key, which expires after 90 days and has a $100 monthly spend limit, and stores it in the owner-only file~/.config/phaseo/integrations/fx.env. Runphaseo fxagain to replace an expired key.
--catalog default to configure only the selected model, or --dry-run to preview the file changes.
2) Load the key in your shell
fx reads custom-connection keys only from environment variables, never from its settings file. Add this line to~/.zshrc or ~/.bashrc once, then open a new terminal:
PHASEO_FX_API_KEY when the file exists and does nothing after you remove the integration.
3) Start fx
/model, or pick any Phaseo model ID for a single run with FX_MODEL=<id> fx. Switch back to another provider with fx provider <name>.
Manual configuration
Add the connection to~/.fx/settings.json. fx does not accept custom connections in a project .fx.json.
PHASEO_API_KEY and run fx. Without a context_window, fx cannot work out when to compact the conversation, so declare limits for the models you use. The limits above are examples; take real values from the Models endpoint.
Remove
phaseo connection and model, restores your previous fx provider if Phaseo is still active, deletes the key file, and revokes the key.
Verification
- Run
fx status --jsonto confirm the active provider, endpoint, and model. - Run a small prompt such as
fx ask "Summarize README.md"before file-editing work. - If fx reports a missing credential, open a new terminal or check that the shell-profile line is present.
- AI Gateway-only fx features, such as gateway web search and credit checks, are not available through custom connections.