Problem
I followed the guide for setting up Claude Code Max via AI Gateway (changelog link) to use my Claude Max subscription with pass-through.
Steps to Reproduce
- Set up my
.zshrcwithANTHROPIC_BASE_URLandANTHROPIC_CUSTOM_HEADERSexactly as documented - Made sure
ANTHROPIC_API_KEYwas not set - Ran
claude /logout - Sourced my environment (
source ~/.zshrc) - Re-authenticated in Claude Code using Option 1 (Claude account with subscription)
- Started prompting
Current Behavior
Within an hour, I got 403 errors for insufficient funds. Checked my dashboard and discovered my $15 in AI Gateway credits were completely drained. The pass-through to my Claude Max subscription didn’t work — requests were billed against my AI Gateway balance instead.
Expected Behavior
Requests should route through my Claude Max subscription without consuming AI Gateway credits.
(fyi, I am on the Hobby plan)