Prerequisites
- OpenAI Codex CLI installed (0.134+)
- A standard Fireworks API key (
fw_...) - FireConnect v0.9.5+ (see Install)
Enable Fireworks routing
fireconnect codex and fireconnect chatgpt share one config — both the Codex CLI and the ChatGPT desktop app route through Fireworks with a single command.
Quit the ChatGPT app before
on or off so its model list refreshes. Same quit rules as Cursor and VS Code.fireconnect codex on or off, config.toml is updated immediately. To use updated routing, exit Codex and resume with codex resume <id>, or start a new session.
Default model
Codex routes a single default model. The default iskimi-fast-latest.
What gets written
FireConnect edits~/.codex/config.toml:
- Sets root
model_provider/modelfor Codex 0.134+ (stored as a short slug) - Adds a
[model_providers.fireworks-ai]block withwire_api = "responses"and a bakedexperimental_bearer_tokenliteral (file mode0600). Codex reads the key from config; no shell hook is required.
~/.codex/config.toml before the first change. The snapshot lives in ~/.fireconnect/codex/. Running fireconnect codex off restores it byte-for-byte. Unrelated Codex settings (for example [[mcp_servers]]) are preserved via surgical TOML edits.
Codex model catalog
When you runfireconnect codex on, FireConnect fetches your account’s serverless catalog and writes Codex-compatible model metadata to ~/.codex/fireworks-model-catalog.json. It links that file from config.toml via model_catalog_json so Codex knows display names, context windows, reasoning levels, and tool-calling support for each model.
glm-fast-latest. Deprecated models are excluded. If catalog generation fails (for example, due to an invalid API key), routing still works but Codex may show limited model metadata until you re-run fireconnect codex on.
Browse available models globally:
FireRouter
Route requests through FireRouter:--model firerouter with Fire Pass (fpk_...) on every harness; use an fw_... key. Codex also does not support Fire Pass for direct routing. FireRouter BYOK reads ANTHROPIC_API_KEY from your shell (Codex does not support --routing-preference).
CLI reference
fireconnect codex help for all options.
Switch models
glm-5p2 supports high and max). Pick the model in Codex with /model after switching.
Turn off Fireworks routing
config.toml from the backup in ~/.fireconnect/codex/.
Use a non-default config file
Fireworks on Microsoft Foundry
Codex 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 setsmodel_provider = "fireworks-azure" in config.toml with a Fireworks on Microsoft Foundry provider block pointed at your Foundry endpoint. The Azure API key is baked as a literal when passed with --api-key, or referenced via env_key = "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:config.toml:
uninstall.