Add Fireworks models and Nexus Auto to GitHub Copilot Chat in VS Code with the Nexus CLI or manual setup.
Nexus CLI adds a Fireworks provider to GitHub Copilot Chat’s custom endpoints. This requires Copilot Pro or Enterprise.PreviewOpenAI Chat CompletionsNexus Auto
You need Node.js 22 or later, git, and bash. On Windows, run the installer from Git Bash. PowerShell breaks the script’s line endings.
nexus login
Sign in with your browser, or paste a Fireworks API key (fw_...).Already set up? Skip to step 2.
Quit VS Code
Quit VS Code before you connect or run off. A running VS Code overwrites the change from memory. If it’s open, Nexus CLI waits until you quit. --force writes anyway, which isn’t recommended.
Connect VS Code
nexus vscodenexus vscode status
Restart and pick a model
Restart VS Code, then pick a model under Other Models → Fireworks in Copilot Chat. The default is auto. To change the default, run nexus vscode --model glm-latest.glm-latest and glm-fast-latest are text-only; glm-flash-latest supports images.
VS Code Chat after Nexus CLI, with Auto selected under Fireworks
nexus vscode status shows the provider, where the key comes from, and the configured model.
Nexus Auto (auto) is supported on the Chat Completions API.
Anthropic and OpenAI model turns: save a key with nexus auto --anthropic-api-key or --openai-api-key (each prompts for the key), then run nexus vscode again. Nexus CLI adds the saved key to the auto model’s requestHeaders only. Or connect a Provider Key, which needs nothing saved locally.
Environment keys: Nexus CLI never sends ANTHROPIC_API_KEY or OPENAI_API_KEY from your environment.
Manual setup: send x-anthropic-api-key and x-openai-api-key headers yourself. See Manual setup (advanced).
Nexus CLI can connect VS Code to Fireworks models deployed in your Azure subscription. See Nexus for Microsoft Foundry. Nexus Auto is not available on Foundry.
401 errors after you rotate your key: quit VS Code, then run nexus login. It saves the new key into every connected harness that keeps its own copy, including VS Code.
See Nexus Auto for issues that affect every harness.
In Copilot Chat, open Language Models, click + Add Models…, and choose Custom Endpoint. Use https://api.fireworks.ai/inference/v1, your Fireworks key, and a model ID such as glm-latest.Follow the step-by-step screenshots in GitHub Copilot.See what changes without the Nexus CLI.
The x-anthropic-api-key and x-openai-api-key headers appear only on the auto row, and only for keys you saved with nexus auto. Nexus CLI also adds its own attribution headers to every row.The key is not in chatLanguageModels.json. It is stored in state.vscdb under a chat.lm.secret.fw-* ID, encrypted with Electron safeStorage. On Linux, encryption needs libsecret. Without it, VS Code only obfuscates the key and Nexus CLI warns you.
If only VS Code Insiders is installed, Nexus CLI uses its Code - Insiders folder instead. off restores chatLanguageModels.json byte-for-byte and deletes the secret. Providers you set up yourself are untouched. Use --vscode-path for a non-default chatLanguageModels.json. Nexus CLI then uses the state.vscdb next to it.