页面简介
Configure the Crush terminal coding agent with AI Gateway. Set up provider credentials and models and monitor request usage and spending.
正文摘录
Copy pageCopy pageCrush with AI GatewayCopy pageCopy pageCrush is a terminal-based AI coding agent by Charmbracelet. It supports multiple LLM providers, LSP integration, MCP servers, and session-based context management. You can configure it to use AI Gateway for unified model access and spend monitoring. Set up with the Vercel CLI Run the Vercel CLI setup command for Crush: terminalnpx vercel@latest ai-gateway setup --agent crush The command provisions or reuses a key and adds a native vercel provider to ~/.config/crush/crush.json. Configuring Crush If you can't use the Vercel CLI, configure Crush manually: 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 CrushChoose your preferred installation method:HomebrewnpmGoTerminalbrew install charmbracelet/tap/crushTerminalnpm install -g @charmland/crushTerminalgo install github.com/charmbracelet/crush@latestSee the Crush installation guide for additional installation options including Windows, Debian/Ubuntu, and Fedora/RHEL.Configure AI GatewayStart Crush:TerminalcrushWhen prompted: Select Provider: Choose Vercel AI Gateway Select Model: Pick from AI Gateway's model library Enter API Key: Paste your AI Gateway API Key when prompted Crush saves your API Key to ~/.local/share/crush/crush.json, so you only need to enter it once.Your 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 October 16, 2026PreviousContinue CLINextCursorWas this helpful?