Claude Code Max via AI Gateway, available now for Claude Code
Vercel's AI Gateway now supports the Claude Code Max subscription, letting developers route Claude Code CLI requests through the gateway for unified observability and usage tracking at no added cost.
now supports the Claude Code Max subscription for the Claude Code CLI. This allows developers to use their existing subscription on Anthropic models with no additional cost while getting unified observability, usage tracking, and monitoring through Vercel’s platform.AI Gateway Set up your environment variables in your shell configuration file ( or )~/.zshrc~/.bashrc Replace with your actual AI Gateway API key.your-ai-gateway-api-key If you're not already logged in, Claude Code will prompt you to authenticate. Choose and log in with your Anthropic account.Option 1 - Claude account with subscription If you encounter issues, try logging out with and logging in again.claude /logout Your Claude Code requests now route through AI Gateway, giving you full visibility into usage patterns and costs while using your Max subscription.
When you configure Claude Code to use AI Gateway, Claude Code continues to authenticate with Anthropic. It sends its header and AI Gateway acts as either a passthrough proxy to Anthropic or, when it needs to fall back, a router to other providers.Authorization Since the header is reserved for Claude subscription credentials, AI Gateway uses a separate header…