Connect the Claude Code CLI to Fireworks with the Nexus CLI or manual setup, and use Nexus Auto with your Claude login.
Connect the Claude Code CLI to Fireworks models and Nexus Auto. Your Claude login stays signed in for Anthropic model turns.Generally availableAnthropic MessagesNexus AutoNative web search
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.
Connect Claude Code
nexus claudenexus claude status
Nexus CLI selects Nexus Auto by default. To choose another model, pass --model:
nexus claude --model glm-5p3-flash
--model sets the default model for new sessions and adds it to /model. /model also lists the Fireworks catalog and an Auto row for Nexus Auto (auto). Your own picker rows are not changed. Set effort in that same picker.To send one Anthropic model tier or your subagents to a specific model, pin that slot:
nexus claude --sonnet deepseek-flash-latest --subagent deepseek-flash-latest
Tier flags are --opus, --sonnet, --haiku, --fable, and --subagent. Unpinned slots stay on Claude Code’s defaults. Running nexus claude again keeps your pins. Pass native, such as --sonnet native, to release a slot.
Restart and pick a model
Start a new session, or exit and run claude --resume <id>. Open /model:
Fireworks models in the Claude Code model picker
nexus claude status shows the provider, where the key comes from, and the configured model.
The Fireworks catalog in /model needs Claude Code 2.1.242 or later. On an older version, nexus claude says so. Run claude update, then nexus claude again.
Nexus Auto (auto) is supported on the Messages API.
Anthropic model turns: your Claude login (OAuth), or an exported ANTHROPIC_API_KEY.
OpenAI model turns: connect an OpenAI Provider Key, or save your own key with nexus auto --openai-api-key (it prompts for the key) and run nexus claude again. Nexus CLI adds the saved key to ANTHROPIC_CUSTOM_HEADERS.
Nexus CLI never sends an Anthropic key you saved with nexus auto to Claude Code. Your Claude login covers Anthropic model turns.
Your MCP servers stay in ~/.claude.json. Nexus CLI sets ENABLE_TOOL_SEARCH so MCP tool search stays on.Add a server with claude mcp add <name> -- <command>, and confirm it’s configured:
claude mcp list# docs: npx -y your-mcp-server - ✔ Connected
Native web search and web fetch keep working while connected through Nexus CLI. Fireworks runs the search server-side and returns the results. You don’t need an MCP server or a search service.
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.
/model doesn’t list the Fireworks catalog: update Claude Code to 2.1.242 or later with claude update, then run nexus claude again.
Auto mode says classifier requests are billed: this notice is expected. It appears once per session, and auto mode keeps working. The safety checks run on your Sonnet slot, so they bill to Anthropic. To bill them at Fireworks rates, pin Sonnet with nexus claude --sonnet <id>.
ENABLE_TOOL_SEARCH keeps MCP tool search on. Claude Code turns it off when ANTHROPIC_BASE_URL points anywhere other than Anthropic.Or set them for one shell:
ANTHROPIC_AUTH_TOKEN sends the key as an Authorization: Bearer header. ANTHROPIC_API_KEY sends it as an x-api-key header, so Claude Code asks you to approve it.
Start a session
Run claude. Claude Code may ask once whether to use the API key; approve it.
The first reply comes from the Fireworks model you set.
Optional: use Nexus Auto
Set "model": "auto". For Anthropic model turns, connect an Anthropic Provider Key, or add x-anthropic-api-key to ANTHROPIC_CUSTOM_HEADERS.
Claude Code’s /model picker does not list Fireworks models you set by hand. Change models in settings.json or with claude --model <id>. Claude Code may log unrecognized_model for Fireworks IDs; requests still succeed.See what changes without the Nexus CLI.
The Fireworks key goes in a custom header, so your Claude login stays available for Anthropic model turns. The same header names the client (X-Title, HTTP-Referer).
An OpenAI key saved with nexus auto --openai-api-key adds an x-openai-api-key line to that header.
[1m] marks 1M-context models.
A pinned tier adds ANTHROPIC_DEFAULT_<TIER>_MODEL to env, such as ANTHROPIC_DEFAULT_SONNET_MODEL. A pinned subagent adds CLAUDE_CODE_SUBAGENT_MODEL.
The status line shows the estimated session cost and, on auto, the model that served the latest turn. Nexus CLI adds it only if you don’t already have one.
The other env values turn off adaptive thinking, keep MCP tool search on, and let the Explore agent inherit the session model. Exploration then stays on Fireworks rates.
Nexus CLI leaves Claude Code telemetry and auto-updates as you have them. An upgrade removes the telemetry and auto-update settings that earlier versions wrote.
~/.claude.json: if you export ANTHROPIC_API_KEY, Nexus CLI pre-approves it so Claude Code doesn’t prompt. Nexus CLI also removes its retired fireworks-websearch server from this file.
PreviewAnthropic MessagesThe Claude Agent SDK can reuse the Claude Code settings above. Connect Claude Code first, with Nexus CLI or manually:
nexus claude --model auto
In the SDK query options, include settingSources: ["user"]. The SDK then reads the Fireworks endpoint, model, and credentials from ~/.claude/settings.json.Nexus CLI doesn’t touch MCP for the SDK. MCP follows the setting sources your application loads.nexus claude does not configure Claude Desktop. See Claude Desktop.
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/claude-code","slug":"/nexus/harnesses/claude-code","pageMetadata":{"title":"Claude Code","sidebarTitle":"Claude Code","description":"Connect the Claude Code CLI to Fireworks with the Nexus CLI or manual setup, and use Nexus Auto with your Claude login.","href":"/nexus/harnesses/claude-code"},"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: \"Connect the Claude Code CLI to Fireworks with the Nexus CLI or manual setup, and use Nexus Auto with your Claude login.\"\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`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,Badge,Check,CodeBlock,Frame,Heading,OptimizedImage,Step,Steps,Tree}=_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(!Tree)_missingMdxReference(`Tree`,true);if(!Tree.File)_missingMdxReference(`Tree.File`,true);if(!Tree.Folder)_missingMdxReference(`Tree.Folder`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Connect the Claude Code CLI to Fireworks models and Nexus Auto. Your Claude login stays signed in for Anthropic model turns.`}),`\n`,_jsx(Badge,{color:`green`,children:`Generally available`}),`\n`,_jsx(Badge,{color:`blue`,children:`Anthropic Messages`}),`\n`,_jsx(Badge,{color:`green`,children:`Nexus Auto`}),`\n`,_jsx(Badge,{color:`green`,children:`Native web search`}),`\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.`})]}),_jsxs(Step,{title:`Connect Claude 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:` claude`})]}),`\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:` claude`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` status`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Nexus CLI selects Nexus Auto by default. To choose another model, pass `,_jsx(_components.code,{children:`--model`}),`:`]}),_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:` claude`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --model`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` glm-5p3-flash`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--model`}),` sets the default model for new sessions and adds it to `,_jsx(_components.code,{children:`/model`}),`. `,_jsx(_components.code,{children:`/model`}),` also lists the Fireworks catalog and an `,_jsx(_components.strong,{children:`Auto`}),` row for Nexus Auto (`,_jsx(_components.code,{children:`auto`}),`). Your own picker rows are not changed. Set `,_jsx(_components.a,{href:`/nexus/orchestration-preferences`,children:`effort`}),` in that same picker.`]}),_jsx(_components.p,{children:`To send one Anthropic model tier or your subagents to a specific model, pin that slot:`}),_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:` claude`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --sonnet`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deepseek-flash-latest`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --subagent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deepseek-flash-latest`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Tier flags are `,_jsx(_components.code,{children:`--opus`}),`, `,_jsx(_components.code,{children:`--sonnet`}),`, `,_jsx(_components.code,{children:`--haiku`}),`, `,_jsx(_components.code,{children:`--fable`}),`, and `,_jsx(_components.code,{children:`--subagent`}),`. Unpinned slots stay on Claude Code’s defaults. Running `,_jsx(_components.code,{children:`nexus claude`}),` again keeps your pins. Pass `,_jsx(_components.code,{children:`native`}),`, such as `,_jsx(_components.code,{children:`--sonnet native`}),`, to release a slot.`]})]}),_jsxs(Step,{title:`Restart and pick a model`,icon:`sparkles`,children:[_jsxs(_components.p,{children:[`Start a new session, or exit and run `,_jsx(_components.code,{children:`claude --resume \u003cid>`}),`. Open `,_jsx(_components.code,{children:`/model`}),`:`]}),_jsx(Frame,{caption:`Fireworks models in the Claude Code model picker`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/fireworksai-docs/VYpNGusqwFX7L4nT/images/nexus/claude-code-model-picker.png?fit=max\u0026auto=format\u0026n=VYpNGusqwFX7L4nT\u0026q=85\u0026s=55bed252910247155af6cecaac030c39`,alt:`Claude Code model picker showing Auto, DeepSeek, Ember, and GLM Fireworks serverless models`,\"data-og-width\":`1075`,width:`1075`,\"data-og-height\":`214`,height:`214`,\"data-path\":`images/nexus/claude-code-model-picker.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/fireworksai-docs/VYpNGusqwFX7L4nT/images/nexus/claude-code-model-picker.png?w=280\u0026fit=max\u0026auto=format\u0026n=VYpNGusqwFX7L4nT\u0026q=85\u0026s=094344711fba338984505b12e688f165 280w, https://mintcdn.com/fireworksai-docs/VYpNGusqwFX7L4nT/images/nexus/claude-code-model-picker.png?w=560\u0026fit=max\u0026auto=format\u0026n=VYpNGusqwFX7L4nT\u0026q=85\u0026s=890c06745f09c2337dd8cf36dd72c6d2 560w, https://mintcdn.com/fireworksai-docs/VYpNGusqwFX7L4nT/images/nexus/claude-code-model-picker.png?w=840\u0026fit=max\u0026auto=format\u0026n=VYpNGusqwFX7L4nT\u0026q=85\u0026s=8026de1ede3ae0314951c9a3838200b3 840w, https://mintcdn.com/fireworksai-docs/VYpNGusqwFX7L4nT/images/nexus/claude-code-model-picker.png?w=1100\u0026fit=max\u0026auto=format\u0026n=VYpNGusqwFX7L4nT\u0026q=85\u0026s=ea7aaa972ebb47313d141c1d6d6edbea 1100w, https://mintcdn.com/fireworksai-docs/VYpNGusqwFX7L4nT/images/nexus/claude-code-model-picker.png?w=1650\u0026fit=max\u0026auto=format\u0026n=VYpNGusqwFX7L4nT\u0026q=85\u0026s=abd46a773bbbd9ef0c64a8bf25d4e414 1650w, https://mintcdn.com/fireworksai-docs/VYpNGusqwFX7L4nT/images/nexus/claude-code-model-picker.png?w=2500\u0026fit=max\u0026auto=format\u0026n=VYpNGusqwFX7L4nT\u0026q=85\u0026s=182b6e4e52648b4ca7c7588c34ea94fb 2500w`})}),_jsxs(Check,{children:[_jsx(_components.code,{children:`nexus claude status`}),` shows the provider, where the key comes from, and the configured model.`]}),_jsxs(_components.p,{children:[`The Fireworks catalog in `,_jsx(_components.code,{children:`/model`}),` needs Claude Code 2.1.242 or later. On an older version, `,_jsx(_components.code,{children:`nexus claude`}),` says so. Run `,_jsx(_components.code,{children:`claude update`}),`, then `,_jsx(_components.code,{children:`nexus claude`}),` again.`]})]})]}),`\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 Messages API.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Anthropic model turns:`}),` your Claude login (OAuth), or an exported `,_jsx(_components.code,{children:`ANTHROPIC_API_KEY`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`OpenAI model turns:`}),` connect an OpenAI `,_jsx(_components.a,{href:`/nexus/provider-keys`,children:`Provider Key`}),`, or save your own key with `,_jsx(_components.code,{children:`nexus auto --openai-api-key`}),` (it prompts for the key) and run `,_jsx(_components.code,{children:`nexus claude`}),` again. Nexus CLI adds the saved key to `,_jsx(_components.code,{children:`ANTHROPIC_CUSTOM_HEADERS`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Nexus CLI never sends an Anthropic key you saved with `,_jsx(_components.code,{children:`nexus auto`}),` to Claude Code. Your Claude login covers Anthropic model turns.`]}),`\n`,_jsxs(_components.li,{children:[`See `,_jsxs(_components.a,{href:`/nexus/auto#which-models-auto-can-use`,children:[`which models `,_jsx(_components.code,{children:`auto`}),` can use`]}),`.`]}),`\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`,_jsxs(_components.p,{children:[`Your MCP servers stay in `,_jsx(_components.code,{children:`~/.claude.json`}),`. Nexus CLI sets `,_jsx(_components.code,{children:`ENABLE_TOOL_SEARCH`}),` so MCP tool search stays on.`]}),`\n`,_jsxs(_components.p,{children:[`Add a server with `,_jsx(_components.code,{children:`claude mcp add \u003cname> -- \u003ccommand>`}),`, and confirm it’s configured:`]}),`\n`,_jsx(CodeBlock,{filename:``,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:`claude`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# docs: npx -y your-mcp-server - ✔ Connected`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Native web search and web fetch keep working while connected through Nexus CLI. Fireworks runs the search server-side and returns the results. You don’t need an MCP server or a search service.`}),`\n`,_jsx(Heading,{level:`2`,id:`usage-and-cost`,children:`Usage and cost`}),`\n`,_jsxs(_components.p,{children:[`For the session cost status line, `,_jsx(_components.code,{children:`nexus claude usage`}),`, and how its estimate differs from Claude Code’s own cost, see `,_jsx(_components.a,{href:`/nexus/metrics`,children:`Usage and Cost`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Upgrading from an earlier version? See `,_jsx(_components.a,{href:`/nexus/cli#upgrading-from-earlier-versions`,children:`Upgrading from earlier versions`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Text-only models fail on pasted images. Use `,_jsx(_components.code,{children:`/rewind`}),`, or switch to a vision model such as `,_jsx(_components.code,{children:`glm-5p3-flash`}),`.`]}),`\n`,_jsx(_components.li,{children:`Resume or restart the session after changing models.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`/model`}),` doesn’t list the Fireworks catalog: update Claude Code to 2.1.242 or later with `,_jsx(_components.code,{children:`claude update`}),`, then run `,_jsx(_components.code,{children:`nexus claude`}),` again.`]}),`\n`,_jsxs(_components.li,{children:[`Auto mode says classifier requests are billed: this notice is expected. It appears once per session, and auto mode keeps working. The safety checks run on your Sonnet slot, so they bill to Anthropic. To bill them at Fireworks rates, pin Sonnet with `,_jsx(_components.code,{children:`nexus claude --sonnet \u003cid>`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`manual-setup-advanced`,children:`Manual setup (advanced)`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Point Claude Code at Fireworks`,icon:`file-pen`,children:[_jsxs(_components.p,{children:[`Add these values to `,_jsx(_components.code,{children:`~/.claude/settings.json`}),`:`]}),_jsx(CodeBlock,{filename:`~/.claude/settings.json`,numberOfLines:`8`,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:`8`,children:[_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:` \"env\"`}),_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:` \"ANTHROPIC_BASE_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:` \"ANTHROPIC_AUTH_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fw_YOUR_FIREWORKS_API_KEY\"`}),_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:` \"ENABLE_TOOL_SEARCH\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"true\"`})]}),`\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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"glm-latest\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ENABLE_TOOL_SEARCH`}),` keeps MCP tool search on. Claude Code turns it off when `,_jsx(_components.code,{children:`ANTHROPIC_BASE_URL`}),` points anywhere other than Anthropic.`]}),_jsx(_components.p,{children:`Or set them for one shell:`}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ANTHROPIC_BASE_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.fireworks.ai/inference\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ANTHROPIC_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$FIREWORKS_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`claude`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --model`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` glm-latest`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ANTHROPIC_AUTH_TOKEN`}),` sends the key as an `,_jsx(_components.code,{children:`Authorization: Bearer`}),` header. `,_jsx(_components.code,{children:`ANTHROPIC_API_KEY`}),` sends it as an `,_jsx(_components.code,{children:`x-api-key`}),` header, so Claude Code asks you to approve it.`]})]}),_jsx(Step,{title:`Start a session`,icon:`play`,children:_jsxs(_components.p,{children:[`Run `,_jsx(_components.code,{children:`claude`}),`. Claude Code may ask once whether to use the API key; approve it.\n`,_jsx(Check,{children:`The first reply comes from the Fireworks model you set.`})]})}),_jsx(Step,{title:`Optional: use Nexus Auto`,icon:`shuffle`,children:_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`\"model\": \"auto\"`}),`. For Anthropic model turns, connect an Anthropic `,_jsx(_components.a,{href:`/nexus/provider-keys`,children:`Provider Key`}),`, or add `,_jsx(_components.code,{children:`x-anthropic-api-key`}),` to `,_jsx(_components.code,{children:`ANTHROPIC_CUSTOM_HEADERS`}),`.`]})})]}),`\n`,_jsxs(_components.p,{children:[`Claude Code’s `,_jsx(_components.code,{children:`/model`}),` picker does not list Fireworks models you set by hand. Change models in `,_jsx(_components.code,{children:`settings.json`}),` or with `,_jsx(_components.code,{children:`claude --model \u003cid>`}),`. Claude Code may log `,_jsx(_components.code,{children:`unrecognized_model`}),` for Fireworks IDs; requests still succeed.`]}),`\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`,_jsx(Tree,{children:_jsxs(Tree.Folder,{name:`~`,defaultOpen:true,children:[_jsx(Tree.Folder,{name:`.claude`,defaultOpen:true,children:_jsx(Tree.File,{name:`settings.json`})}),_jsx(Tree.File,{name:`.claude.json`}),_jsx(Tree.Folder,{name:`.nexus`,children:_jsx(Tree.File,{name:`backup for off`})})]})}),`\n`,_jsxs(Accordion,{title:`See what Nexus CLI writes`,id:`see-what-nexus-cli-writes`,children:[_jsx(CodeBlock,{filename:`~/.claude/settings.json`,numberOfLines:`16`,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:`16`,children:[_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:` \"env\"`}),_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:` \"ANTHROPIC_BASE_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:` \"ANTHROPIC_CUSTOM_HEADERS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"X-Fireworks-Api-Key: fw_...`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`X-Title: Claude Code`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`HTTP-Referer: nexus/v\u003cversion>\"`}),_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:` \"CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1\"`}),_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:` \"ENABLE_TOOL_SEARCH\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:` \"CLAUDE_CODE_DISABLE_EXPLORE_INHERIT_CAP\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1\"`})]}),`\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:` \"modelPicker\"`}),_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:` \"options\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auto[1m]\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"label\"`}),_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`,_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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auto[1m]\"`}),_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:` \"statusLine\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"command\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"command\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"... claude-statusline.mjs\"`}),_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.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The Fireworks key goes in a custom header, so your Claude login stays available for Anthropic model turns. The same header names the client (`,_jsx(_components.code,{children:`X-Title`}),`, `,_jsx(_components.code,{children:`HTTP-Referer`}),`).`]}),`\n`,_jsxs(_components.li,{children:[`An OpenAI key saved with `,_jsx(_components.code,{children:`nexus auto --openai-api-key`}),` adds an `,_jsx(_components.code,{children:`x-openai-api-key`}),` line to that header.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`[1m]`}),` marks 1M-context models.`]}),`\n`,_jsxs(_components.li,{children:[`A pinned tier adds `,_jsx(_components.code,{children:`ANTHROPIC_DEFAULT_\u003cTIER>_MODEL`}),` to `,_jsx(_components.code,{children:`env`}),`, such as `,_jsx(_components.code,{children:`ANTHROPIC_DEFAULT_SONNET_MODEL`}),`. A pinned subagent adds `,_jsx(_components.code,{children:`CLAUDE_CODE_SUBAGENT_MODEL`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`The status line shows the estimated session cost and, on `,_jsx(_components.code,{children:`auto`}),`, the model that served the latest turn. Nexus CLI adds it only if you don’t already have one.`]}),`\n`,_jsxs(_components.li,{children:[`The other `,_jsx(_components.code,{children:`env`}),` values turn off adaptive thinking, keep MCP tool search on, and let the Explore agent inherit the session model. Exploration then stays on Fireworks rates.`]}),`\n`,_jsx(_components.li,{children:`Nexus CLI leaves Claude Code telemetry and auto-updates as you have them. An upgrade removes the telemetry and auto-update settings that earlier versions wrote.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`~/.claude.json`}),`: if you export `,_jsx(_components.code,{children:`ANTHROPIC_API_KEY`}),`, Nexus CLI pre-approves it so Claude Code doesn’t prompt. Nexus CLI also removes its retired `,_jsx(_components.code,{children:`fireworks-websearch`}),` server from this file.`]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`claude-agent-sdk`,children:`Claude Agent SDK`}),`\n`,_jsx(Badge,{color:`yellow`,children:`Preview`}),`\n`,_jsx(Badge,{color:`blue`,children:`Anthropic Messages`}),`\n`,_jsx(_components.p,{children:`The Claude Agent SDK can reuse the Claude Code settings above. Connect Claude Code first, with Nexus CLI or manually:`}),`\n`,_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:` claude`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --model`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auto`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`In the SDK query options, include `,_jsx(_components.code,{children:`settingSources: [\"user\"]`}),`. The SDK then reads the Fireworks endpoint, model, and credentials from `,_jsx(_components.code,{children:`~/.claude/settings.json`}),`.`]}),`\n`,_jsx(_components.p,{children:`Nexus CLI doesn’t touch MCP for the SDK. MCP follows the setting sources your application loads.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`nexus claude`}),` does not configure Claude Desktop. See `,_jsx(_components.a,{href:`/nexus/harnesses/claude-desktop`,children:`Claude Desktop`}),`.`]})]})}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":"Claude Code","sidebarTitle":"Claude Code","description":"Connect the Claude Code CLI to Fireworks with the Nexus CLI or manual setup, and use Nexus Auto with your Claude login.","href":"/nexus/harnesses/claude-code"}}},"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":"Usage and cost","slug":"usage-and-cost","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":[]},{"title":"Claude Agent SDK","slug":"claude-agent-sdk","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":"Claude Code - Fireworks AI Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-23T03:48:23.734Z","originalFileLocation":"nexus/harnesses/claude-code.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=\"Connect the Claude Code CLI to Fireworks with the Nexus CLI or manual setup, and use Nexus Auto with your Claude login.\">\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=\"Claude Code - Fireworks AI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect the Claude Code CLI to Fireworks with the Nexus CLI or manual setup, and use Nexus Auto with your Claude login.\">\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/claude-code\">\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=Claude+Code\u0026amp;description=Connect+the+Claude+Code+CLI+to+Fireworks+with+the+Nexus+CLI+or+manual+setup%2C+and+use+Nexus+Auto+with+your+Claude+login.\u0026amp;theme=e6fc9d8dc703196e3eb71e6d\u0026amp;signature=f03468aab659998c2b7f38f764217d6a12db0a15416ba084015a784df6efe95c\">\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=\"Claude Code - Fireworks AI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect the Claude Code CLI to Fireworks with the Nexus CLI or manual setup, and use Nexus Auto with your Claude login.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fireworksai-docs.mintlify.app/_mintlify/api/og/v2?division=Code\u0026amp;title=Claude+Code\u0026amp;description=Connect+the+Claude+Code+CLI+to+Fireworks+with+the+Nexus+CLI+or+manual+setup%2C+and+use+Nexus+Auto+with+your+Claude+login.\u0026amp;theme=e6fc9d8dc703196e3eb71e6d\u0026amp;signature=f03468aab659998c2b7f38f764217d6a12db0a15416ba084015a784df6efe95c\">\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/claude-code\">\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/claude-code.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/claude-code#webpage\",\"url\":\"https://fireworks.ai/docs/nexus/harnesses/claude-code\",\"name\":\"Claude Code\",\"description\":\"Connect the Claude Code CLI to Fireworks with the Nexus CLI or manual setup, and use Nexus Auto with your Claude login.\",\"dateModified\":\"2026-10-23T03:48:23.734Z\",\"isPartOf\":{\"@id\":\"https://fireworks.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://fireworks.ai/docs/nexus/harnesses/claude-code#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://fireworks.ai/docs/nexus/harnesses/claude-code#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Harness Support\",\"item\":\"https://fireworks.ai/docs/nexus/harnesses\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Claude Code\",\"item\":\"https://fireworks.ai/docs/nexus/harnesses/claude-code\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://fireworks.ai/docs/nexus/harnesses/claude-code#article\",\"headline\":\"Claude Code\",\"name\":\"Claude Code\",\"description\":\"Connect the Claude Code CLI to Fireworks with the Nexus CLI or manual setup, and use Nexus Auto with your Claude login.\",\"url\":\"https://fireworks.ai/docs/nexus/harnesses/claude-code\",\"mainEntityOfPage\":{\"@id\":\"https://fireworks.ai/docs/nexus/harnesses/claude-code#webpage\"},\"dateModified\":\"2026-10-23T03:48:23.734Z\",\"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","description":"Connect Claude Code, Claude Agent SDK, Claude Desktop, Codex CLI, ChatGPT, OpenCode, Pi, Cursor IDE, VS Code, Copilot, or DeepSeek Harness to Fireworks.","href":"/nexus/harnesses"},{"group":"Code","pages":[{"title":"Claude Code","sidebarTitle":"Claude Code","href":"/nexus/harnesses/claude-code"},{"title":"Codex","sidebarTitle":"Codex","description":"Connect the Codex CLI to Fireworks with the Nexus CLI or manual setup, and see who pays for OpenAI model turns with Nexus Auto.","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","href":"/nexus/harnesses/cursor"},{"title":"VS Code","sidebarTitle":"VS Code","href":"/nexus/harnesses/vscode"},{"title":"Copilot App","sidebarTitle":"Copilot App","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":"Claude 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"]}