页面简介
Connect the Claude Code CLI to Fireworks with the Nexus CLI or manual setup, and use Nexus Auto with your Claude login.
正文摘录
Claude Code keeps your Claude login for Anthropic model turns. Claude Code on the web and other cloud sessions aren’t supported. Quick start Install and sign incurl -fsSL https://nexus.fireworks.ai/install.sh | bash You need Node.js 22 or later and bash. You don’t need git or a GitHub account. On Windows, run the installer from Git Bash. PowerShell breaks the script’s line endings.nexus login Choose your Nexus or Fireworks Platform account, then sign in with your browser.If the Nexus CLI is already installed and signed in, skip to step 2.Connect Claude Codenexus claude Nexus Auto is the default model. To pick another one, run nexus claude --model <id>.Restart and pick Nexus AutoStart a new session, then pick Nexus Auto in /model. To restore your original settings, run nexus claude off. Use Nexus Auto Anthropic model turns use your Claude login. OpenAI model turns need an OpenAI Provider Key from your admin. MCP and tools Nexus CLI doesn’t change your MCP servers. claude.ai connectors remain available when Claude Code is signed in with your claude.ai subscription. Native web search and web fetch are supported. Fireworks runs the search server-side, so no search MCP server is required. Nexus CLI adds a session cost status line if Claude Code doesn’t already have a status line. The status line also shows the latest call’s generated tokens per second (TPS) and warns when your browser sign-in key has less than a day left. Auto mode safety checks In auto mode, Claude Code checks risky actions, such as shell commands, before they run. Through Fireworks, these checks run server-side at Fireworks, separately from the model that answers your turn. Independent check: a separate classifier reviews each tool call, even when your session uses a smaller open model. No billing notice: Claude Code doesn’t show the “this session isn’t eligible” notice. /status shows Auto mode server: Enabled. Billed to Fireworks: checks bill to your Fireworks account at Fireworks rates. On Nexus accounts they run on Fireworks open models, so the usage dashboard can list a model, such as Kimi or GLM, that your session didn’t use. Not in the session meter: the status line and nexus claude usage don’t include checks. Claude Desktop too: the Code tab in Claude Desktop gets the same checks. Troubleshooting A pasted image fails: the model is text-only. Use /rewind, or switch to a vision model such as glm-5p3-flash. /model doesn’t list Fireworks models: run claude update, then nexus claude again. Auto mode says classifier requests are billed: server-side checks aren’t reaching the session. Run claude update and nexus update, then start a new session. See Auto mode safety checks. Usage shows Kimi or GLM charges you didn’t expect: they may come from auto mode safety checks. See Auto mode safety checks. Manual setup (advanced) Add these values to ~/.claude/settings.json, then run claude: ~/.claude/settings.json{ "env": { "ANTHROPIC_BASE_URL": "https://api.fireworks.ai/inference", "ANTHROPIC_AUTH_TOKEN": "fw_YOUR_FIREWORKS_API_KEY", "ENABLE_TOOL_SEARCH": "true" }, "model": "glm-latest" } To use Nexus Auto, set "model": "auto" and connect an Anthropic Provider Key. Without the Nexus CLI, you take over the tasks it otherwise performs, such as undo and updates. Claude Agent SDK Connect Claude Code first, then include settingSources: ["user"] in the SDK query options. The SDK reads the Fireworks endpoint, model, and credentials from ~/.claude/settings.json. Was this page helpful?YesNo⌘I