Manual setup (GitHub Copilot)
Step-by-step UI walkthrough with screenshots — add a Fireworks custom endpoint without the FireConnect CLI
Prerequisites
- Visual Studio Code with the GitHub Copilot extension
- GitHub Copilot Pro or Enterprise (the free tier only supports the Auto model)
- A Fireworks API key (
fw_...) or a Fire Pass key (fpk_...) - The FireConnect CLI (see Install)
VS Code supports direct Fireworks routing only. Fireworks on Microsoft Foundry is not available for Copilot custom endpoints.
Enable Fireworks routing
VS Code stores custom-endpoint API keys (encrypted) instate.vscdb. Quit VS Code before running on or off — FireConnect hard-errors if VS Code is still running unless you pass --force.
Browse and add models
model list, model add, model select, and model reset only edit chatLanguageModels.json. VS Code hot-reloads that file — no restart needed for model changes.
What gets written
FireConnect merges a Fireworks custom endpoint into VS Code’s language-model config and stores the API key in VS Code’s secret storage:| What | Where |
|---|---|
| Provider + models | chatLanguageModels.json |
| Encrypted API key | state.vscdb (ItemTable, key secret://chat.lm.secret.fw-...) |
| Platform | chatLanguageModels.json | state.vscdb |
|---|---|---|
| Linux | ~/.config/Code/User/chatLanguageModels.json | ~/.config/Code/User/globalStorage/state.vscdb |
| macOS | ~/Library/Application Support/Code/User/chatLanguageModels.json | ~/Library/Application Support/Code/User/globalStorage/state.vscdb |
| Windows | %APPDATA%\Code\User\chatLanguageModels.json | %APPDATA%\Code\User\globalStorage\state.vscdb |
https://api.fireworks.ai/inference (VS Code appends /v1/chat/completions). FireConnect snapshots the original chatLanguageModels.json under ~/.fireconnect/vscode/ before the first change. Running fireconnect vscode off restores it and removes the encrypted key from state.vscdb.
CLI reference
fireconnect vscode help for all options, including --vscode-path (explicit chatLanguageModels.json path) and --force.
Turn off Fireworks routing
Quit VS Code, then run:chatLanguageModels.json from the backup in ~/.fireconnect/vscode/ and removes the FireConnect secret from state.vscdb. Restart VS Code for the change to take effect.
Related
- GitHub Copilot integration guide — manual custom-endpoint setup with screenshots
- Cursor — use Fireworks models in Cursor IDE