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.
Was this page helpful?
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Fireworks AI Docs","description":"Official Fireworks AI documentation for inference, deployments, training, Fireworks Nexus, APIs, SDKs, and CLI tools.","colors":{"primary":"#9249e7","light":"#9249e7","dark":"#9249e7"},"logo":{"light":"https://mintcdn.com/fireworksai-docs/k8IlrNKHdagCbcj7/logo/logo.svg?fit=max\u0026auto=format\u0026n=k8IlrNKHdagCbcj7\u0026q=85\u0026s=aa60cf6047af1412adca3c341c1af7cf","dark":"https://mintcdn.com/fireworksai-docs/k8IlrNKHdagCbcj7/logo/logo.svg?fit=max\u0026auto=format\u0026n=k8IlrNKHdagCbcj7\u0026q=85\u0026s=aa60cf6047af1412adca3c341c1af7cf"},"favicon":"https://mintcdn.com/fireworksai-docs/Zmr1JwZl0XCOo6P5/favicon.ico?fit=max\u0026auto=format\u0026n=Zmr1JwZl0XCOo6P5\u0026q=85\u0026s=391f22495764acdbdfd5caf684bd1965","api":{"openapi":["openapi.yml","merged.openapi.yaml"],"playground":{"display":"interactive","proxy":false}},"navbar":{"links":[{"href":"https://discord.gg/fireworks-ai","label":"Community"},{"href":"https://status.fireworks.ai/","label":"Status"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.fireworks.ai/login"}},"footer":{"socials":{"x":"https://x.com/FireworksAI_HQ","discord":"https://discord.gg/fireworks-ai","github":"https://github.com/fw-ai","youtube":"https://www.youtube.com/@fireworksai","linkedin":"https://www.linkedin.com/company/fireworks-ai"},"links":[{"header":"Legal","items":[{"label":"Terms of Service","href":"https://fireworks.ai/terms-of-service"},{"label":"Privacy Policy","href":"https://fireworks.ai/privacy-policy"},{"label":"Licenses","href":"https://fireworks.ai/licenses"},{"label":"Trust","href":"https://trust.fireworks.ai/"}]},{"header":"Contact Us","items":[{"label":"Inquiry Form","href":"https://fireworks.ai/contact"}]},{"header":"Resources","items":[{"label":"Blog","href":"https://fireworks.ai/blog"},{"label":"Cookbook","href":"https://github.com/fw-ai/cookbook"},{"label":"Pricing","href":"https://fireworks.ai/pricing"}]}]},"integrations":{"ga4":{"measurementId":"G-2P32PRKZ57"},"koala":{"publicApiKey":"pk_59d6417e241a5b81e050226345f38b26d984"},"posthog":{"apiKey":"phc_OQKVIlbmI9arhxBb1xjo2Wz3zJG40X4RVNPTVHS1Gej","apiHost":"https://app.fireworks.ai/relay-1Gej"}},"contextual":{"options":["copy","view"],"display":"header"},"metadata":{"timestamp":false},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fireworksai-docs","hasAudioNarration":false,"actualSubdomain":"fireworksai-docs","customDomains":["fireworks.ai"],"gitSource":{"type":"github","owner":"fw-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae172aca726fe79c3ada3e5","collectionId":"6271848a-11eb-463c-b80c-a575c8c98dc5","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae172aca726fe79c3ada3e5"},"feedback":{"thumbs":true,"edits":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae18a52937c113a46a9df61","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"API \u0026 SDK Reference","count":123},{"language":"default","tag":"CLI Reference","count":114},{"language":"default","tag":"firectl CLI","count":114},{"language":"default","tag":"Documentation","count":94},{"language":"default","tag":"Deployments","count":50},{"language":"default","tag":"Training","count":37},{"language":"default","tag":"Resources","count":37},{"language":"default","tag":"FAQ","count":32},{"language":"default","tag":"Nexus","count":29},{"language":"default","tag":"Admin","count":23}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"@keyframes fw-skill-cta-in{0%{transform:translateY(14px);opacity:0}55%{transform:translateY(-5px);opacity:1}75%{transform:translateY(2px)}to{transform:translateY(0)}}#content-area.max-w-xl{max-width:48rem}p[data-component-part=step-title]{margin-bottom:16px}[data-component-part=step-content]>:first-child{margin-top:0}.fw-skill-cta{position:fixed;z-index:30;right:max(1rem,env(safe-area-inset-right));bottom:max(5rem,env(safe-area-inset-bottom));width:16.5rem;max-width:calc(100vw - 2rem);margin:0;padding:0;color:#1c1917;font:inherit;line-height:1.2}.fw-skill-cta.is-toc{right:auto;bottom:max(1.5rem,env(safe-area-inset-bottom))}.fw-skill-cta-bar{position:relative;display:flex;flex-direction:column;align-items:center;gap:.65rem;box-sizing:border-box;width:100%;padding:.9rem .85rem .85rem;border:1px solid rgba(146,73,231,.28);border-radius:1rem;background:#faf7ff;animation:fw-skill-cta-in .7s cubic-bezier(.2,.85,.3,1) both}.fw-skill-cta-title{margin:0;color:#171717;font-size:.95rem;font-weight:700;line-height:1.25;text-align:center;text-wrap:balance}.fw-skill-cta-badge,.fw-skill-cta-logos{display:flex;align-items:center;justify-content:center}.fw-skill-cta-logos{gap:1rem}.fw-skill-cta-badge{flex:none}.fw-skill-cta-logo{display:block;flex:none;height:1.2rem;width:auto}.fw-skill-cta-badge.is-claude .fw-skill-cta-logo{height:.9rem}.fw-skill-cta-copy{display:flex;align-items:center;justify-content:center;gap:.35rem;box-sizing:border-box;width:100%;min-height:0;padding:.32rem .65rem;border:0;border-radius:.5rem;background:#7c3aed;color:#fff;font:inherit;font-size:.78rem;font-weight:600;cursor:pointer;transition:background-color .15s ease}.fw-skill-cta-copy:hover{background:#6d28d9}.fw-skill-cta-copy.is-copied{background:#ede4ff;color:#5b21b6;cursor:default}.fw-skill-cta-action-icon{flex:none;width:.85rem;height:.85rem}.fw-skill-cta-dismiss{position:absolute;top:-.6rem;right:-.6rem;display:flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;padding:0;border:1px solid rgba(146,73,231,.28);border-radius:999px;background:#fff;color:#7c3aed;font:inherit;font-size:.9rem;line-height:1;cursor:pointer}.fw-skill-cta-dismiss:hover{background:#f3edff;color:#1c1917}html.dark .fw-skill-cta-dismiss,html[data-theme=dark] .fw-skill-cta-dismiss{background:#1c1917;border-color:rgba(167,139,250,.45);color:#c4b5fd}.fw-skill-cta-dismiss[hidden],.fw-skill-cta-prompt[hidden]{display:none}.fw-skill-cta-prompt{box-sizing:border-box;width:100%;padding:.45rem .6rem;border:1px solid rgba(146,73,231,.22);border-radius:.55rem;background:#fff}.fw-skill-cta-prompt-text{display:block;overflow-x:auto;color:#57534e;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.68rem;line-height:1.4;white-space:nowrap;scrollbar-width:none;-webkit-mask-image:linear-gradient(to right,#000 85%,transparent);mask-image:linear-gradient(to right,#000 85%,transparent)}.fw-skill-cta-prompt-text::-webkit-scrollbar{display:none}.fw-skill-cta-copy:focus-visible,.fw-skill-cta-dismiss:focus-visible,.fw-skill-cta-prompt:focus-visible{outline:2px solid #9249e7;outline-offset:2px}html.dark .fw-skill-cta-bar,html[data-theme=dark] .fw-skill-cta-bar{background:#1c1917;border-color:rgba(167,139,250,.45)}html.dark .fw-skill-cta-logo.is-mono,html[data-theme=dark] .fw-skill-cta-logo.is-mono{filter:invert(1)}html.dark .fw-skill-cta-title,html[data-theme=dark] .fw-skill-cta-title{color:#fafaf9}html.dark .fw-skill-cta-copy.is-copied,html[data-theme=dark] .fw-skill-cta-copy.is-copied{background:rgba(167,139,250,.18);color:#ddd6fe}html.dark .fw-skill-cta-prompt,html[data-theme=dark] .fw-skill-cta-prompt{background:#292524;border-color:rgba(167,139,250,.35)}html.dark .fw-skill-cta-prompt-text,html[data-theme=dark] .fw-skill-cta-prompt-text{color:#d6d3d1}@media (max-width:480px){.fw-skill-cta{left:max(1rem,env(safe-area-inset-left));width:auto}}@media (prefers-reduced-motion:reduce){.fw-skill-cta-bar{animation:none}}@media print{.fw-skill-cta{display:none}}"},{"filePath":"brand-v2/brand-v2.css","href":"/docs/_mintlify/custom/fireworksai-docs/f58986b31aae7bd4/brand-v2/brand-v2.css"}],"page":{"pagePath":"nexus/harnesses/vscode","slug":"/nexus/harnesses/vscode","pageMetadata":{"title":"VS Code","sidebarTitle":"VS Code","description":"Add Fireworks models and Nexus Auto to GitHub Copilot Chat in VS Code with the Nexus CLI or manual setup.","href":"/nexus/harnesses/vscode"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Add Fireworks models and Nexus Auto to GitHub Copilot Chat in VS Code with the Nexus CLI or manual setup.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,Badge,Check,CodeBlock,Frame,Heading,OptimizedImage,Step,Steps,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!Badge)_missingMdxReference(`Badge`,true);if(!Check)_missingMdxReference(`Check`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Nexus CLI adds a `,_jsx(_components.strong,{children:`Fireworks`}),` provider to GitHub Copilot Chat’s custom endpoints. This requires Copilot `,_jsx(_components.strong,{children:`Pro or Enterprise`}),`.`]}),`\n`,_jsx(Badge,{color:`yellow`,children:`Preview`}),`\n`,_jsx(Badge,{color:`orange`,children:`OpenAI Chat Completions`}),`\n`,_jsx(Badge,{color:`green`,children:`Nexus Auto`}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start`,children:`Quick start`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Install and sign in`,icon:`download`,children:[_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -fsSL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://nexus.fireworks.ai/install.sh`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` bash`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`You need Node.js 22 or later, `,_jsx(_components.code,{children:`git`}),`, and `,_jsx(_components.code,{children:`bash`}),`. On Windows, run the installer from Git Bash. PowerShell breaks the script’s line endings.`]}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`nexus`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Sign in with your browser, or paste a Fireworks API key (`,_jsx(_components.code,{children:`fw_...`}),`).`]}),_jsx(_components.p,{children:`Already set up? Skip to step 2.`})]}),_jsx(Step,{title:`Quit VS Code`,icon:`power-off`,children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Quit VS Code before you connect or run `,_jsx(_components.code,{children:`off`}),`.`]}),` A running VS Code overwrites the change from memory. If it’s open, Nexus CLI waits until you quit. `,_jsx(_components.code,{children:`--force`}),` writes anyway, which isn’t recommended.`]})}),_jsx(Step,{title:`Connect VS Code`,icon:`plug`,children:_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`nexus`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` vscode`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`nexus`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` vscode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` status`})]}),`\n`]})})})}),_jsxs(Step,{title:`Restart and pick a model`,icon:`sparkles`,children:[_jsxs(_components.p,{children:[`Restart VS Code, then pick a model under `,_jsx(_components.strong,{children:`Other Models → Fireworks`}),` in Copilot Chat. The default is `,_jsx(_components.code,{children:`auto`}),`. To change the default, run `,_jsx(_components.code,{children:`nexus vscode --model glm-latest`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`glm-latest`}),` and `,_jsx(_components.code,{children:`glm-fast-latest`}),` are text-only; `,_jsx(_components.code,{children:`glm-flash-latest`}),` supports images.`]}),_jsx(Frame,{caption:`VS Code Chat after Nexus CLI, with Auto selected under Fireworks`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/fireworksai-docs/wK7OMV3yh2TYEQdX/images/nexus/vscode-chat-model-picker.png?fit=max\u0026auto=format\u0026n=wK7OMV3yh2TYEQdX\u0026q=85\u0026s=daafc0f9cc914522e785ef6b97808b07`,alt:`VS Code Chat model picker showing the Fireworks provider with Auto selected and DeepSeek, GLM, and Kimi models`,\"data-og-width\":`2000`,width:`2000`,\"data-og-height\":`1096`,height:`1096`,\"data-path\":`images/nexus/vscode-chat-model-picker.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/fireworksai-docs/wK7OMV3yh2TYEQdX/images/nexus/vscode-chat-model-picker.png?w=280\u0026fit=max\u0026auto=format\u0026n=wK7OMV3yh2TYEQdX\u0026q=85\u0026s=d3626a9b0365da96ec31cb8438ca9660 280w, https://mintcdn.com/fireworksai-docs/wK7OMV3yh2TYEQdX/images/nexus/vscode-chat-model-picker.png?w=560\u0026fit=max\u0026auto=format\u0026n=wK7OMV3yh2TYEQdX\u0026q=85\u0026s=ce76e191dc471c4403893a2aa54e634b 560w, https://mintcdn.com/fireworksai-docs/wK7OMV3yh2TYEQdX/images/nexus/vscode-chat-model-picker.png?w=840\u0026fit=max\u0026auto=format\u0026n=wK7OMV3yh2TYEQdX\u0026q=85\u0026s=df46fedb454e666e084d95d5897dc855 840w, https://mintcdn.com/fireworksai-docs/wK7OMV3yh2TYEQdX/images/nexus/vscode-chat-model-picker.png?w=1100\u0026fit=max\u0026auto=format\u0026n=wK7OMV3yh2TYEQdX\u0026q=85\u0026s=491f16bbdecc665e5dd0220650832bd7 1100w, https://mintcdn.com/fireworksai-docs/wK7OMV3yh2TYEQdX/images/nexus/vscode-chat-model-picker.png?w=1650\u0026fit=max\u0026auto=format\u0026n=wK7OMV3yh2TYEQdX\u0026q=85\u0026s=a88d0c436733ebe2a789fa36f2241949 1650w, https://mintcdn.com/fireworksai-docs/wK7OMV3yh2TYEQdX/images/nexus/vscode-chat-model-picker.png?w=2500\u0026fit=max\u0026auto=format\u0026n=wK7OMV3yh2TYEQdX\u0026q=85\u0026s=719be4b07dd0bc1646d729c1239d2c8d 2500w`})}),_jsxs(Check,{children:[_jsx(_components.code,{children:`nexus vscode status`}),` shows the provider, where the key comes from, and the configured model.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`use-nexus-auto`,children:`Use Nexus Auto`}),`\n`,_jsxs(_components.p,{children:[`Nexus Auto (`,_jsx(_components.code,{children:`auto`}),`) is supported on the Chat Completions API.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Anthropic and OpenAI model turns:`}),` save a key with `,_jsx(_components.code,{children:`nexus auto --anthropic-api-key`}),` or `,_jsx(_components.code,{children:`--openai-api-key`}),` (each prompts for the key), then run `,_jsx(_components.code,{children:`nexus vscode`}),` again. Nexus CLI adds the saved key to the `,_jsx(_components.code,{children:`auto`}),` model’s `,_jsx(_components.code,{children:`requestHeaders`}),` only. Or connect a `,_jsx(_components.a,{href:`/nexus/provider-keys`,children:`Provider Key`}),`, which needs nothing saved locally.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Environment keys:`}),` Nexus CLI never sends `,_jsx(_components.code,{children:`ANTHROPIC_API_KEY`}),` or `,_jsx(_components.code,{children:`OPENAI_API_KEY`}),` from your environment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Manual setup:`}),` send `,_jsx(_components.code,{children:`x-anthropic-api-key`}),` and `,_jsx(_components.code,{children:`x-openai-api-key`}),` headers yourself. See `,_jsx(_components.a,{href:`#manual-setup-advanced`,children:`Manual setup (advanced)`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`mcp-and-tools`,children:`MCP and tools`}),`\n`,_jsx(_components.p,{children:`Nexus CLI doesn’t touch MCP. Set up servers in VS Code as usual.`}),`\n`,_jsxs(_components.p,{children:[`Nexus CLI does not add web search to VS Code. See `,_jsx(_components.a,{href:`/nexus/web-search`,children:`Web Search`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`microsoft-foundry`,children:`Microsoft Foundry`}),`\n`,_jsxs(_components.p,{children:[`Nexus CLI can connect VS Code to Fireworks models deployed in your Azure subscription. See `,_jsx(_components.a,{href:`/nexus/microsoft-foundry`,children:`Nexus for Microsoft Foundry`}),`. Nexus Auto is not available on Foundry.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`401 errors after you rotate your key:`}),` quit VS Code, then run `,_jsx(_components.code,{children:`nexus login`}),`. It saves the new key into every connected harness that keeps its own copy, including VS Code.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/nexus/auto#troubleshooting`,children:`Nexus Auto`}),` for issues that affect every harness.`]}),`\n`,_jsx(Heading,{level:`2`,id:`manual-setup-advanced`,children:`Manual setup (advanced)`}),`\n`,_jsxs(_components.p,{children:[`In Copilot Chat, open `,_jsx(_components.strong,{children:`Language Models`}),`, click `,_jsx(_components.strong,{children:`+ Add Models…`}),`, and choose `,_jsx(_components.strong,{children:`Custom Endpoint`}),`. Use `,_jsx(_components.code,{children:`https://api.fireworks.ai/inference/v1`}),`, your Fireworks key, and a model ID such as `,_jsx(_components.code,{children:`glm-latest`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Follow the step-by-step screenshots in `,_jsx(_components.a,{href:`/ecosystem/integrations/github-copilot`,children:`GitHub Copilot`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/nexus/manual-setup#what-changes-without-the-nexus-cli`,children:`what changes without the Nexus CLI`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-the-nexus-cli-writes`,children:`What the Nexus CLI writes`}),`\n`,_jsxs(Accordion,{title:`See what Nexus CLI writes`,id:`see-what-nexus-cli-writes`,children:[_jsx(CodeBlock,{filename:`chatLanguageModels.json`,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Fireworks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vendor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"customendpoint\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"apiType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chat-completions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"apiKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"${input:chat.lm.secret.fw-...}\"'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"models\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Auto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.fireworks.ai/inference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maxInputTokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1048575`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maxOutputTokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`131072`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"toolCalling\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requestHeaders\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"x-anthropic-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sk-ant-...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`x-anthropic-api-key`}),` and `,_jsx(_components.code,{children:`x-openai-api-key`}),` headers appear only on the `,_jsx(_components.code,{children:`auto`}),` row, and only for keys you saved with `,_jsx(_components.code,{children:`nexus auto`}),`. Nexus CLI also adds its own attribution headers to every row.`]}),_jsxs(_components.p,{children:[`The key is not in `,_jsx(_components.code,{children:`chatLanguageModels.json`}),`. It is stored in `,_jsx(_components.code,{children:`state.vscdb`}),` under a `,_jsx(_components.code,{children:`chat.lm.secret.fw-*`}),` ID, encrypted with Electron `,_jsx(_components.code,{children:`safeStorage`}),`. On Linux, encryption needs `,_jsx(_components.code,{children:`libsecret`}),`. Without it, VS Code only obfuscates the key and Nexus CLI warns you.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Platform`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`chatLanguageModels.json`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`state.vscdb`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Linux`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`~/.config/Code/User/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`~/.config/Code/User/globalStorage/`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`macOS`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`~/Library/Application Support/Code/User/`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`~/Library/Application Support/Code/User/globalStorage/`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Windows`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`%APPDATA%\\\\Code\\\\User\\\\`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`%APPDATA%\\\\Code\\\\User\\\\globalStorage\\\\`})})]})]})]}),_jsxs(_components.p,{children:[`If only VS Code Insiders is installed, Nexus CLI uses its `,_jsx(_components.code,{children:`Code - Insiders`}),` folder instead. `,_jsx(_components.code,{children:`off`}),` restores `,_jsx(_components.code,{children:`chatLanguageModels.json`}),` byte-for-byte and deletes the secret. Providers you set up yourself are untouched. Use `,_jsx(_components.code,{children:`--vscode-path`}),` for a non-default `,_jsx(_components.code,{children:`chatLanguageModels.json`}),`. Nexus CLI then uses the `,_jsx(_components.code,{children:`state.vscdb`}),` next to it.`]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"VS Code","sidebarTitle":"VS Code","description":"Add Fireworks models and Nexus Auto to GitHub Copilot Chat in VS Code with the Nexus CLI or manual setup.","href":"/nexus/harnesses/vscode"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Quick start","slug":"quick-start","depth":2,"children":[]},{"title":"Use Nexus Auto","slug":"use-nexus-auto","depth":2,"children":[]},{"title":"MCP and tools","slug":"mcp-and-tools","depth":2,"children":[]},{"title":"Microsoft Foundry","slug":"microsoft-foundry","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]},{"title":"Manual setup (advanced)","slug":"manual-setup-advanced","depth":2,"children":[]},{"title":"What the Nexus CLI writes","slug":"what-the-nexus-cli-writes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/fireworksai-docs/0fd851b923cc8880/training-skill-cta.js","/docs/_mintlify/custom/fireworksai-docs/4b5856b7e8267204/brand-v2/brand-v2.js"],"subdomain":"fireworksai-docs","siteName":"Fireworks AI Docs","title":"VS Code - Fireworks AI Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-23T03:48:23.733Z","originalFileLocation":"nexus/harnesses/vscode.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add Fireworks models and Nexus Auto to GitHub Copilot Chat in VS Code with the Nexus CLI or manual setup.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Fireworks AI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/fireworksai-docs/1wzeLeQ_X9KQpzOR/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/fireworksai-docs/1wzeLeQ_X9KQpzOR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/fireworksai-docs/1wzeLeQ_X9KQpzOR/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/fireworksai-docs/1wzeLeQ_X9KQpzOR/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/fireworksai-docs/1wzeLeQ_X9KQpzOR/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/fireworksai-docs/1wzeLeQ_X9KQpzOR/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/fireworksai-docs/1wzeLeQ_X9KQpzOR/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/fireworksai-docs/1wzeLeQ_X9KQpzOR/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/fireworksai-docs/1wzeLeQ_X9KQpzOR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"VS Code - Fireworks AI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add Fireworks models and Nexus Auto to GitHub Copilot Chat in VS Code with the Nexus CLI or manual setup.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Fireworks AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://fireworks.ai/docs/nexus/harnesses/vscode\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fireworksai-docs.mintlify.app/_mintlify/api/og/v2?division=Code\u0026amp;title=VS+Code\u0026amp;description=Add+Fireworks+models+and+Nexus+Auto+to+GitHub+Copilot+Chat+in+VS+Code+with+the+Nexus+CLI+or+manual+setup.\u0026amp;theme=e6fc9d8dc703196e3eb71e6d\u0026amp;signature=372a6f49c8b67e19966e5dc3ba7d68f850186ff44a3c4ea48fb28e8a7cf13b9f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"VS Code - Fireworks AI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add Fireworks models and Nexus Auto to GitHub Copilot Chat in VS Code with the Nexus CLI or manual setup.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fireworksai-docs.mintlify.app/_mintlify/api/og/v2?division=Code\u0026amp;title=VS+Code\u0026amp;description=Add+Fireworks+models+and+Nexus+Auto+to+GitHub+Copilot+Chat+in+VS+Code+with+the+Nexus+CLI+or+manual+setup.\u0026amp;theme=e6fc9d8dc703196e3eb71e6d\u0026amp;signature=372a6f49c8b67e19966e5dc3ba7d68f850186ff44a3c4ea48fb28e8a7cf13b9f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/fireworksai-docs/1wzeLeQ_X9KQpzOR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Fireworks AI Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9249e7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://fireworks.ai/docs/nexus/harnesses/vscode\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/nexus/harnesses/vscode.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://fireworks.ai/#organization\",\"name\":\"Fireworks AI Docs\",\"url\":\"https://fireworks.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/fireworksai-docs/k8IlrNKHdagCbcj7/logo/logo.svg?fit=max\u0026auto=format\u0026n=k8IlrNKHdagCbcj7\u0026q=85\u0026s=aa60cf6047af1412adca3c341c1af7cf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://fireworks.ai/docs#website\",\"name\":\"Fireworks AI Docs\",\"url\":\"https://fireworks.ai/docs\",\"publisher\":{\"@id\":\"https://fireworks.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://fireworks.ai/docs/nexus/harnesses/vscode#webpage\",\"url\":\"https://fireworks.ai/docs/nexus/harnesses/vscode\",\"name\":\"VS Code\",\"description\":\"Add Fireworks models and Nexus Auto to GitHub Copilot Chat in VS Code with the Nexus CLI or manual setup.\",\"dateModified\":\"2026-10-23T03:48:23.733Z\",\"isPartOf\":{\"@id\":\"https://fireworks.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://fireworks.ai/docs/nexus/harnesses/vscode#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://fireworks.ai/docs/nexus/harnesses/vscode#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Harness Support\",\"item\":\"https://fireworks.ai/docs/nexus/harnesses\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Code\",\"item\":\"https://fireworks.ai/docs/nexus/harnesses/claude-code\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"VS Code\",\"item\":\"https://fireworks.ai/docs/nexus/harnesses/vscode\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://fireworks.ai/docs/nexus/harnesses/vscode#article\",\"headline\":\"VS Code\",\"name\":\"VS Code\",\"description\":\"Add Fireworks models and Nexus Auto to GitHub Copilot Chat in VS Code with the Nexus CLI or manual setup.\",\"url\":\"https://fireworks.ai/docs/nexus/harnesses/vscode\",\"mainEntityOfPage\":{\"@id\":\"https://fireworks.ai/docs/nexus/harnesses/vscode#webpage\"},\"dateModified\":\"2026-10-23T03:48:23.733Z\",\"publisher\":{\"@id\":\"https://fireworks.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://fireworks.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Fireworks AI Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Fireworks AI Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"tab":"Nexus","groups":[{"group":"Get started","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/nexus"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/nexus/quickstart"}]},{"group":"Nexus CLI","pages":[{"title":"Nexus CLI","sidebarTitle":"CLI Setup","href":"/nexus/cli"},{"title":"Manual setup (advanced)","href":"/nexus/manual-setup"},{"title":"CLI Reference","sidebarTitle":"CLI Reference","href":"/nexus/cli-reference"},{"title":"Release Notes","sidebarTitle":"Release Notes","href":"/nexus/release-notes"}]},{"group":"Model Orchestration","pages":[{"title":"Nexus Auto","sidebarTitle":"Nexus Auto","href":"/nexus/auto"},{"title":"Open Models","sidebarTitle":"Open Models","href":"/nexus/open-models"}]},{"group":"Harness Support","pages":[{"title":"Coding Harnesses","sidebarTitle":"Coding Harnesses","href":"/nexus/harnesses"},{"group":"Code","pages":[{"title":"Claude Code","sidebarTitle":"Claude Code","href":"/nexus/harnesses/claude-code"},{"title":"Codex","sidebarTitle":"Codex","href":"/nexus/harnesses/codex"},{"title":"OpenCode","sidebarTitle":"OpenCode","href":"/nexus/harnesses/opencode"},{"title":"Pi","sidebarTitle":"Pi","href":"/nexus/harnesses/pi"},{"title":"DeepSeek Harness","sidebarTitle":"DeepSeek Harness","href":"/nexus/harnesses/deepseek"},{"title":"Cursor IDE","sidebarTitle":"Cursor IDE","description":"Connect Cursor IDE to Fireworks models and Nexus Auto with the Nexus CLI or manual setup.","href":"/nexus/harnesses/cursor"},{"title":"VS Code","sidebarTitle":"VS Code","href":"/nexus/harnesses/vscode"},{"title":"Copilot App","sidebarTitle":"Copilot App","description":"Add Fireworks models and Nexus Auto to the GitHub Copilot desktop app with the Nexus CLI or manual setup.","href":"/nexus/harnesses/copilot-app"},{"title":"Copilot CLI","sidebarTitle":"Copilot CLI","href":"/nexus/harnesses/copilot-cli"}]},{"group":"Cowork","pages":[{"title":"ChatGPT desktop app","sidebarTitle":"ChatGPT Desktop","href":"/nexus/harnesses/chatgpt"},{"title":"Claude Desktop","sidebarTitle":"Claude Desktop","href":"/nexus/harnesses/claude-desktop"}]}]},{"group":"Nexus settings","pages":[{"group":"Model Providers","pages":[{"title":"Provider Keys","sidebarTitle":"Connect Providers","href":"/nexus/provider-keys"},{"title":"Amazon Bedrock Setup","sidebarTitle":"Amazon Bedrock Setup","href":"/nexus/provider-keys/bedrock"}]},{"title":"Spend Limits","sidebarTitle":"Spend Limits","href":"/nexus/usage-limits"}]},{"group":"More","pages":[{"title":"APIs and SDKs","sidebarTitle":"APIs and SDKs","href":"/nexus/apis-and-sdks"},{"title":"LLM Gateways","sidebarTitle":"LLM Gateways","href":"/nexus/llm-gateways"},{"title":"Nexus for Microsoft Foundry","sidebarTitle":"Nexus for Foundry","href":"/nexus/microsoft-foundry"},{"title":"Usage and Cost","sidebarTitle":"Usage and Cost","href":"/nexus/metrics"},{"title":"Effort","sidebarTitle":"Effort","href":"/nexus/orchestration-preferences"},{"title":"Estimated Savings","sidebarTitle":"Estimated Savings","href":"/nexus/estimated-savings"}]}]},{"tab":"API \u0026 SDK Reference","pages":[{"title":"API \u0026 SDK Reference","href":"/api-reference/introduction"}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/tools-sdks/firectl/firectl"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/updates/changelog"}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/tools-sdks/openai-compatibility"}]}]},"title":"VS Code - Fireworks AI Docs","buildId":"dpl_3rfzHPCtRhDFBbetXZ3oLkN5tjmA","deploymentId":"dpl_3rfzHPCtRhDFBbetXZ3oLkN5tjmA","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-Dit-D9cD.js","DynamicMarkdown-B3juXLG8.js","zoom-image-lightbox-D2y4WbiL.js","lightbox-handle-r17bVUz3.js"]}