Prerequisites
- Cursor installed
- A Fireworks API key (
fw_...) or a Fire Pass key (fpk_...) - The FireConnect CLI (see Install)
Cursor supports direct Fireworks routing only. Fireworks on Microsoft Foundry is not available for IDE BYOK setups.
Enable Fireworks routing
Cursor stores AI settings in a SQLite database (state.vscdb). Fully quit Cursor before running commands that write to it (for example, Cmd+Q on macOS or close all Cursor windows on Linux). Otherwise Cursor’s in-memory state can overwrite FireConnect’s changes.
Browse and pick models
model list and status are read-only and work while Cursor is running. Commands that write to state.vscdb require Cursor to be quit first.
--mode include composer (default), cmd-k, background-composer, composer-ensemble, plan-execution, spec, deep-search, and quick-agent. Run fireconnect cursor status to see the current model for each mode.
What gets written
FireConnect writes Cursor’s BYOK OpenAI settings in the local SQLite state database atstate.vscdb:
| Setting | Location |
|---|---|
| API key | cursorAuth/openAIKey (plaintext) |
| Base URL | openAIBaseUrl on the applicationUser blob — https://api.fireworks.ai/inference/v1 |
| Custom models | aiSettings.userAddedModels |
| Per-mode model | aiSettings.modelConfig[<mode>] |
state.vscdb:
| Platform | Path |
|---|---|
| Linux | ~/.config/Cursor/User/globalStorage/state.vscdb |
| macOS | ~/Library/Application Support/Cursor/User/globalStorage/state.vscdb |
| Windows | %APPDATA%\Cursor\User\globalStorage\state.vscdb |
~/.fireconnect/cursor/ before the first change. Running fireconnect cursor off restores it.
Cursor feature coverage
FireConnect configures Cursor’s OpenAI BYOK path. Features that route through that path can use Fireworks models. Some Cursor features (for example, Composer, inline edit, and autocomplete) may still use Cursor’s own backend depending on your plan and Cursor version. Test the workflows you care about after enabling.Using Fire Pass
Use yourfpk_... key instead of a standard fw_... key:
glm-latest.
CLI reference
fireconnect cursor help for all options, including --db-path (explicit state.vscdb path) and --force (write even if Cursor appears to be running — not recommended).
Turn off Fireworks routing
Quit Cursor, then run:~/.fireconnect/cursor/. Quit and reopen Cursor for full effect.
Manual setup
You can also configure Cursor without FireConnect:- In Cursor settings, add a Custom Model with a Fireworks model ID (for example,
accounts/fireworks/models/glm-5p2or a short alias likeglm-latest). - Set Override OpenAI Base URL to
https://api.fireworks.ai/inference/v1. - Paste your Fireworks or Fire Pass API key.