Skip to main content
Every harness below works two ways. FireConnect writes the settings for you and restores them with off. Manual setup shows the same settings so you can apply them yourself, with no extra tool installed.

Claude Code

Messages API

Codex CLI, Codex app, and ChatGPT

Responses API

OpenCode

Chat Completions

Pi

Chat Completions

Cursor IDE

Chat Completions

VS Code

Chat Completions

Copilot App

Chat Completions

Copilot CLI

Chat Completions

DeepSeek Harness

Chat Completions

Before you start

Install FireConnect and sign in once:
  • Connect: fireconnect <harness>. Add --model <id> to choose a model or router. Browse IDs with fireconnect model list.
  • Quit first: fully quit Cursor IDE, VS Code, and the Copilot App before connecting or running off. Restart other harnesses after connecting.
  • Check: fireconnect <harness> status is read-only and safe while the app is open.
  • Undo: fireconnect <harness> off restores the settings FireConnect saved under ~/.fireconnect/.

Claude Code

Anthropic Messages FireRouter Native web search
Start a new session, or exit and run claude --resume <id>. FireConnect selects FireRouter by default. To choose another model, pass --model:
--model sets the default model for new sessions. Anthropic tier slots stay native, and /model lists auto, the routers, and the Fireworks catalog.
~
.claude
settings.json
.claude.json
~/.claude/settings.json
  • The Fireworks key goes in a custom header, so your Claude login stays available for routes with Claude models.
  • [1m] marks 1M-context models.
  • The status line shows the estimated session cost. It is added only if you do not already have one.
  • FireConnect also turns off Claude Code telemetry and nonessential traffic, and enables MCP tool search.
  • ~/.claude.json records approval for the FireConnect credential so Claude Code does not prompt for it.
  • Bare firerouter and routes with Claude models can use your Claude login when you connect with FireConnect.
  • firerouter/astra, firerouter/sol, and other GPT routes need an OpenAI key in Provider Keys with FireConnect, or an x-openai-api-key header in manual setup.
  • See Routing Preferences for --routing-preference and Harness Compatibility for cross-harness support.
For the status line and fireconnect claude usage, see Usage and Cost. Claude Code’s own in-app cost uses Anthropic list prices; use the FireConnect status line for the Fireworks estimate. For a side-by-side comparison, see the Side-by-Side Demo.
  • Text-only models fail on pasted images. Use /rewind, or switch to a vision model such as glm-5p3-flash.
  • Resume or restart the session after changing models.

Claude Agent SDK

Anthropic Messages The Claude Agent SDK can reuse the Claude Code settings above. Connect Claude Code first, with FireConnect or manually:
In the SDK query options, include settingSources: ["user"]. The SDK then reads the Fireworks endpoint, model, and credentials from ~/.claude/settings.json.
Claude Desktop is not supported. fireconnect claude does not configure Claude Desktop’s third-party inference provider.

Codex

OpenAI Responses FireRouter Native web search The Codex CLI, the Codex app, and the ChatGPT desktop app share one config in ~/.codex/config.toml, so one setup covers all three. Quit the Codex app and the ChatGPT app before you change it so their model lists refresh.
MCP servers and plugins in the ChatGPT desktop app don’t work reliably while FireConnect is on. See Harness Compatibility.
The default model is auto. To add FireRouter to the Codex and ChatGPT model pickers, run fireconnect codex --model firerouter. Exit Codex and run codex resume <id>, or start a new session.
Codex CLI model picker showing Auto selected, FireRouter, and Fireworks DeepSeek, GLM, and Kimi models

Codex CLI after connecting with FireRouter enabled; Auto is selected

~/.codex
config.toml
fireworks-model-catalog.json
~/.codex/config.toml
FireConnect keeps your other TOML settings, saves the key with file mode 0600, and writes a model catalog so Codex knows each model’s context window and capabilities.
ChatGPT desktop model picker showing FireRouter selected alongside Auto and Fireworks models

ChatGPT desktop with FireRouter selected

When you resume an old session, select the provider explicitly:
MiniMax models don’t work on Codex. Codex may insert assistant messages between tool_calls and tool_results, which MiniMax templates reject. Use a Chat Completions harness such as OpenCode for MiniMax.

OpenCode

OpenAI Chat Completions FireRouter
Restart OpenCode. The default model is auto, stored as fireworks-ai/auto. Short IDs such as glm-5p2 expand to full Fireworks paths.
OpenCode model picker showing Auto selected and Fireworks DeepSeek, GLM, Kimi, and other models

OpenCode model picker after FireConnect, with Auto selected

~/.config/opencode/opencode.json
The file is saved with mode 0600. FireConnect never changes auth.json. Use --config-path for a config stored elsewhere.

Pi

OpenAI Chat Completions FireRouter
Restart Pi if it was running. The default model is auto.
~/.pi/agent
settings.json
auth.json
models.json
~/.pi/agent/settings.json
~/.pi/agent/auth.json
models.json adds the Fireworks catalog to Pi’s built-in fireworks provider. FireConnect tracks the IDs it adds so off removes only those. Use --settings-path for a settings file stored elsewhere.

Cursor IDE

OpenAI Chat Completions FireRouter with Provider Keys fireconnect cursor configures Cursor IDE. Cursor CLI (agent or cursor-agent) is not supported. Fully quit Cursor IDE before connecting or running off.
FireConnect points every existing mode in modelConfig at the Fireworks default and registers the catalog in the picker. Reopen Cursor IDE and choose a Fireworks model.
Cursor IDE model picker showing Auto selected with Fireworks DeepSeek, GLM, Kimi, and MiniMax models

Cursor IDE after FireConnect, with Auto selected

Cursor IDE stores AI settings in SQLite (state.vscdb under ~/.config/Cursor, ~/Library/Application Support/Cursor, or %APPDATA%\Cursor):Your previous auth state is saved under ~/.fireconnect/cursor/. Use --db-path for a non-default state.vscdb.
While connected, only Fireworks models work. Cursor IDE’s built-in models are hidden until you run off. Cursor IDE also enforces a server-side allowlist, so not every Fireworks model is selectable. Some features may still use Cursor’s own backend, depending on plan and version.

VS Code

OpenAI Chat Completions FireRouter FireConnect adds a Fireworks provider to GitHub Copilot Chat’s custom endpoints. This requires Copilot Pro or Enterprise. Quit VS Code before connecting or running off.
Restart VS Code, then pick a model under Other Models → Fireworks in Copilot Chat. glm-latest and glm-fast-latest are text-only; glm-5p3-flash supports images.
VS Code Chat model picker showing the Fireworks provider with Auto selected and DeepSeek, GLM, and Kimi models

VS Code Chat after FireConnect, with Auto selected under Fireworks

chatLanguageModels.json
The key is stored separately in state.vscdb, encrypted with Electron safeStorage. On Linux, encryption needs libsecret; without it, VS Code only obfuscates the key and FireConnect warns you.

Copilot App

OpenAI Chat Completions FireRouter with Provider Keys The GitHub Copilot desktop app keeps its built-in models and adds Fireworks alongside them. Quit the app before connecting or running off.
Reopen the app and pick a Fireworks model in Settings → Model providers.
FireConnect writes to ~/.copilot/data.db (SQLite, movable with COPILOT_HOME):off deletes the provider and its models. Use --db-path for a non-default database.
The app’s bring-your-own-key path does not support image input, the hover-card Context row, or AI-credits pricing. Routes that need a local Anthropic key are not available. See Harness Compatibility.

Copilot CLI

OpenAI Chat Completions FireRouter with manual setup The copilot command (@github/copilot) reads plain JSON under ~/.copilot, separate from the desktop app.
Start a new copilot session. Switch models with copilot --model fireworks/<name> or /model.
Copilot CLI model picker showing Auto selected and Fireworks DeepSeek, GLM, Kimi, and MiniMax models

Copilot CLI model picker after FireConnect, with Auto selected

off restores providers.json from its snapshot, or deletes it if FireConnect created it. Use --providers-path for a non-default location.
Use provider-prefixed model IDs such as fireworks/glm-latest. The CLI rejects a bare glm-latest and silently falls back to its configured model.

DeepSeek Harness

OpenAI Chat Completions FireRouter with manual setup DeepSeek’s coding agent (dsh) runs named profiles, such as tui, web, and headless, under $DSH_HOME, which defaults to ~/.dsh. Restart dsh after changing a profile.
FireConnect writes a fireworks provider to ~/.dsh/settings.yaml and snapshots it under ~/.fireconnect/deepseek/. The default model is auto.
dsh 0.1.7 reads provider settings from each profile’s cordis.patch.yml and ignores ~/.dsh/settings.yaml. If dsh still uses its DeepSeek provider after you connect, use manual setup.