Claude Code + Gatewayz
Use Claude Code with Gatewayz: one API key and one credit balance.
Setup
- Create a Gatewayz API key from your dashboard.
- Set ANTHROPIC_BASE_URL to https://api.gatewayz.ai (no /v1 — Claude Code adds the path itself).
- Set ANTHROPIC_AUTH_TOKEN to your Gatewayz key.
- Run claude as usual. Requests now go through Gatewayz.
Environment configuration
export ANTHROPIC_BASE_URL="https://api.gatewayz.ai"
export ANTHROPIC_AUTH_TOKEN="YOUR_GATEWAYZ_KEY"
claudeFAQ
Does this change Claude Code's behavior?
No. Gatewayz is a drop-in proxy that speaks the same Anthropic-compatible API, so Claude Code works unmodified.
What do I get from routing through Gatewayz?
Unified billing across providers and usage analytics in one dashboard.
