页面简介
Configure the Blackbox AI CLI to use AI Gateway for code generation and debugging. Set your API key and model and monitor request usage and spending.
正文摘录
Copy pageCopy pageBlackbox AI with AI GatewayCopy pageCopy pageYou can use the Blackbox AI CLI for AI-powered code generation, debugging, and project automation. Configure it to use AI Gateway for unified model access and spend monitoring. Configuring Blackbox AI Create an API keyGo to the AI Gateway section in the Vercel dashboard sidebar and click API keys to create a new API key.Install Blackbox CLIInstall the Blackbox CLI for your platform:macOS/LinuxWindowsTerminalcurl -fsSL https://blackbox.ai/install.sh | bashPowerShellInvoke-WebRequest -Uri "https://blackbox.ai/install.ps1" -OutFile "install.ps1"; .\install.ps1Configure Blackbox CLIRun the configure command to set up AI Gateway:Terminalblackbox configureWhen prompted: Select Configuration: Choose Configure Providers Choose Model Provider: Select Vercel AI Gateway Enter API Key: Paste your AI Gateway API key from the previous step You can run blackbox configure at any time to update your configuration.Start Blackbox CLIRun the CLI to start using it:TerminalblackboxYour requests will now be routed through AI Gateway. You can verify this by checking your AI Gateway Overview in the Vercel dashboard. Monitor usage and spend View your usage, spend, and request activity in the AI Gateway section in the Vercel dashboard sidebar. See the observability documentation for more details.Last updated September 13, 2026PreviousAmpNextChatboxWas this helpful?