页面简介
Nexus Auto picks a Fireworks open model or an Anthropic or OpenAI model for each turn. Set it up in a coding harness, an LLM gateway, or an SDK.
正文摘录
Use the model ID auto. Easy turns go to a Fireworks open model. Harder turns can go to an Anthropic or OpenAI model on your own account if those models are available and enabled. Fireworks-hosted turns bill to Fireworks. Closed-model turns use your own subscription or the billing terms of your provider account. Nexus Auto was formerly FireRouter. The firerouter model ID no longer works; use auto instead. Which models auto can use With only your Fireworks key, auto uses Fireworks open models. It can also use closed models when your tool supplies a Claude or ChatGPT subscription sign-in, a supported API key, or an account-level Provider Key. See Provide Anthropic and OpenAI credentials to set this up. Use only open models To keep Nexus Auto on Fireworks-hosted models, follow the Desktop or CLI steps in Open Models. Set up Connect your tool Follow the Quickstart to connect with Nexus Desktop or Nexus CLI. Both set the model to auto. To restrict Auto, see the CLI steps in Open Models. LLM gateway Point your LLM gateway, such as LiteLLM or Portkey, at Fireworks with your Fireworks API key and the model auto. Clients behind the gateway use only their gateway key. API and SDK Point the OpenAI SDK at Fireworks and set the model to auto: from openai import OpenAI client = OpenAI( api_key="YOUR_FIREWORKS_API_KEY", base_url="https://api.fireworks.ai/inference/v1", ) response = client.chat.completions.create( model="auto", messages=[{"role": "user", "content": "Say pong in one word."}], ) print(response.model, response.choices[0].message.content) auto also works with the Anthropic SDK and the Responses API. Examples for both are in APIs and SDKs. Provide Anthropic and OpenAI credentials Use a Claude or ChatGPT subscription Sign in to the tool with your subscription, then connect the tool to Nexus. Nexus uses the sign-in the tool already has. You don’t need a Provider Key for Anthropic turns in Claude Code or OpenAI turns in Codex and the ChatGPT desktop app. Nexus Desktop: Open Connect and turn on Claude Code CLI, Codex CLI, or ChatGPT. Restart the tool, sign in to it if prompted, then select Nexus Auto. Nexus CLI: After signing in to Nexus, run the setup command for the tool you use: nexus claude on # Claude Code: run claude auth login if prompted nexus codex on # Codex: run codex login and choose ChatGPT if prompted nexus chatgpt on # ChatGPT desktop app: sign in to the app with your ChatGPT plan Start a new session or reopen the app, then select Nexus Auto. To use the other provider’s models in the same tool, connect a supported API key for that provider. Use an API key Provider Keys: An admin connects the key in Nexus web settings. The key applies to the entire account in both Desktop and CLI setups. You don’t add a shared Provider Key in Nexus Desktop or with nexus auto. Amazon Bedrock uses this account-level setup. Local keys: Run nexus auto --anthropic-api-key or nexus auto --openai-api-key and paste the key at the prompt. Rerun the harness command or turn the tool off and back on in Desktop to apply it. Local key support varies by tool. Direct API requests: Send x-anthropic-api-key or x-openai-api-key with each request. Without a credential for a provider, Nexus Auto uses the other models. Check which model served a turn The response model field names the model that served the turn, such as glm-5p3 or claude-opus-5-5. In Claude Code, the status line also shows it. Cost and effort Open models bill to your Fireworks account at serverless rates. Closed-model turns use your Claude or ChatGPT subscription allowance or bill to the provider account whose key served the turn. Nexus Usage shows a list-price estimate, not a subscription charge. Set effort in your tool. Higher effort asks for a more thorough attempt. Supported models FamilyModel IDsCredentialClaude Opus, Sonnet, Fableclaude-opus-5-5, claude-sonnet-5-5, claude-fable-5-1AnthropicGPT Sol, Astra, Lunagpt-6.1-sol, gpt-6-astra, gpt-6-lunaOpenAIKimi, GLM, DeepSeekkimi-k3, kimi-k3-fast, glm-5p3, glm-5p3-fast, glm-5p3-flash, deepseek-v4p1-flashFireworks Choose a specific model On Enterprise, follow Open Models to use one model instead of Auto. Web search Web search is built into Nexus. In Claude Code, Claude Desktop, Codex, and ChatGPT, the app’s native web search remains available. Fireworks runs the search server-side, so no search MCP server is required. Auto mode safety checks In Claude Code and Claude Desktop’s Code tab, auto mode 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. On Nexus accounts they run on auto limited to Fireworks open models and bill to your Fireworks account. See Auto mode safety checks. Troubleshooting Nexus Auto never uses an Anthropic or OpenAI model. Check that Auto isn’t limited to Fireworks and that your tool is signed in with a supported subscription or has access to an API key. Run nexus auto to check saved API keys and account-level Provider Keys. It doesn’t check your Claude or ChatGPT sign-in. Was this page helpful?YesNo⌘I