AI Gateway support for Claude Code
Claude Code can now route requests through Vercel's AI Gateway using an Anthropic-compatible API endpoint, enabling centralized usage tracking, spend management, observability tracing, and automatic failover between providers.
You can now use Claude Code through via its Anthropic-compatible API endpoint.Vercel AI Gateway
Route Claude Code requests through AI Gateway to centralize usage and spend, view traces in observability, and benefit from failover between providers for your model of choice.
Log out if you're already logged in, then set these environment variables to configure Claude Code to use AI Gateway:
Setting to an empty string is required. Claude Code checks this variable first, and if it's set to a non-empty value, it will use that instead of .ANTHROPIC_API_KEYANTHROPIC_AUTH_TOKEN
Start Claude Code. Requests will route through AI Gateway:
See the for details.Claude Code documentation
Source: original entry ↗
More from Vercel
Follow Vercel to get its new changes in your feed and email digest.
Updates to Hobby and Pro Terms of Service
Vercel is updating Terms of Service for Hobby and Pro customers effective October 19, 2026, clarifying credit policies, managed accounts, auto-renewal practices, and adding statutory cancellation and refund rights for UK and EU consumers, including protections for service changes with negative impact.
Mercury 3 now available on AI Gateway
Inception's Mercury 3 model is now available on Vercel's AI Gateway with 50% launch pricing and generation speeds exceeding 1,000 tokens per second. The model enables parallel text refinement with a 1M-token context window, ideal for real-time applications like browser agents and customer support.
MiniMax M3.1 Flash now available on AI Gateway for free
MiniMax M3.1 Flash, an open-weight multimodal model with 1M-token context window for coding and agentic work, is now available on Vercel's AI Gateway at no cost through October 20. The model excels at complex agent tasks, coding applications, and cybersecurity work, and can be used through multiple APIs and coding agents.