Answer: Yes, you can use a gateway with a Claude subscription, but only if you set ANTHROPIC_BASE_URL without a gateway credential; the saved claude.ai login then remains the active credential and its usage limits and billing apply. If a gateway credential variable or apiKeyHelper is active, that credential replaces the subscription login and the subscription's usage limits don't apply. Status: Confirmed Entry: tool/claude-code/account-and-plans/subscriptions-with-gateway Revision: 2 Digest: sha256:f175acde89c684ee (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:35Z Last changed: 2026-11-16T12:09:57Z (Usage limits with gateway credential: — → the subscription's usage limits don't apply to them) Last verified: 2026-11-20T12:21:53Z Next check: 2026-11-21T12:21:53Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Base URL variable | ANTHROPIC_BASE_URL | [1] | 2026-11-20 Subscription-only behavior | Setting only that variable, without a gateway credential, doesn't replace the subscription. | [1] | 2026-11-20 Credential active with subscription | a saved claude.ai login remains the active credential | [1] | 2026-11-20 Credential replacement behavior | requests carry that credential in place of a developer's claude.ai subscription login | [1] | 2026-11-20 Usage limits with gateway credential | the subscription's usage limits don't apply to them | [1] | 2026-11-20 Sources: [1] Anthropic. "Other LLM gateways". https://code.claude.com/docs/en/llm-gateway.md Role: primary. Accessed: 2026-11-20T12:21:53Z Quote: "`ANTHROPIC_BASE_URL`" (Supports: Base URL variable) Quote: "Setting only that variable, without a gateway credential, doesn't replace the subscription." (Supports: Subscription-only behavior) Quote: "a saved claude.ai login remains the active credential, so its usage limits and billing apply" (Supports: Credential active with subscription) Quote: "requests carry that credential in place of a developer's claude.ai subscription login" (Supports: Credential replacement behavior) Quote: "the subscription's usage limits don't apply to them" (Supports: Usage limits with gateway credential) Published: 2026-11-20T10:36:07Z Snapshot SHA-256: 18085351a5aa7a2e4327a11d0d95bb0aaea53e3feee9a6fe019c694c50619ce7 (captured 2026-11-14T12:17:37Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-15T12:21:57Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:21:53Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:21:53Z Last attempt: 2026-11-20T12:21:53Z Notes and limitations: Extracted automatically from a single official source (section "Subscriptions and gateways"). Related: https://latestn.com/tool/claude-code/account-and-plans/which-terms-apply Which terms of service apply to my use of Claude Code? https://latestn.com/tool/claude-code/admin-and-enterprise/add-plugin-relevance-block How do I add a relevance block to a plugin entry in Claude Code's marketplace.json so Claude Code suggests the plugin? https://latestn.com/tool/claude-code/admin-and-enterprise/admin-analytics-by-provider Which Claude Code admin and analytics features are available per provider? https://latestn.com/tool/claude-code/account-and-plans/self-hosted-plan-availability Which Claude Code plans support self-hosted environments? https://latestn.com/tool/claude-code/account-and-plans/slack-prerequisites What are the prerequisites for using Claude Code in Slack? https://latestn.com/tool/claude-code/account-and-plans/subscription-only-features Which Claude Code features require a Claude subscription rather than an API key or third-party provider? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-16T12:09:57Z | changed | Usage limits with gateway credential: — → the subscription's usage limits don't apply to them | [1] 2026-11-16T12:09:57Z | changed | Credential replacement behavior: — → requests carry that credential in place of a developer's claude.ai subscription login | [1] 2026-11-16T12:09:57Z | changed | Credential active with subscription: — → a saved claude.ai login remains the active credential | [1] 2026-11-16T12:09:57Z | changed | Credential override behavior: the subscription's usage limits don't apply to them → — | [1] 2026-11-16T12:09:57Z | changed | Subscription limits with base URL only: its usage limits and billing apply → — | [1] 2026-11-15T12:21:57Z | recovered | Check succeeded again | — 2026-11-14T12:17:39Z | check-failed | Extraction did not pass verification: answer does not contain any extracted value | — 2026-11-13T03:04:35Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/account-and-plans/subscriptions-with-gateway/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/account-and-plans/subscriptions-with-gateway POST: https://latestn.com/dispute/tool/claude-code/account-and-plans/subscriptions-with-gateway with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/account-and-plans/subscriptions-with-gateway?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Can I use my Claude subscription with an LLM gateway in Claude Code? Revision 2, last verified 2026-11-20T12:21:53Z. https://latestn.com/tool/claude-code/account-and-plans/subscriptions-with-gateway (accessed 2026-11-21T10:02:33Z). @misc{LatestN_tool_claude_code_account_and_plans_subscriptions_with_gateway_r2, title = {Can I use my Claude subscription with an LLM gateway in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/account-and-plans/subscriptions-with-gateway}}, note = {Revision 2; digest sha256:f175acde89c684ee; last verified 2026-11-20T12:21:53Z; accessed 2026-11-21T10:02:33Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/account-and-plans/subscriptions-with-gateway