Claude Code Docs Flag Gateway Risks
Anthropic’s Claude Code documentation explains that third-party gateways can inspect prompts containing source code, shift billing from subscriptions to per-token credentials, and lose compatibility with new capabilities. Anthropic does not endorse routing Claude Code to non-Claude models through gateways. [Documentation](https://code.claude.com/docs/en/llm-gateway)
Gateways offer useful enterprise controls, but they turn trust, billing, and feature compatibility into infrastructure concerns developers must actively manage.
- –Gateway operators may access prompts, source code, credentials, and audit logs.
- –Gateway credentials replace a claude.ai subscription for those requests, so subscription limits no longer apply and usage is billed to the forwarded account.
- –Setting only `ANTHROPIC_BASE_URL` does not change subscription billing.
- –Provider switching works only when the gateway preserves Claude Code’s expected API format and capabilities.
- –Teams should vet retention, logging, access controls, billing ownership, and feature pass-through before deploying a gateway.
DISCOVERED
1h ago
2026-10-13
PUBLISHED
1h ago
2026-10-13
RELEVANCE
AUTHOR
DIY Smart Code
