gateway
A Claude Code CLI flag, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Gateway-authenticated sessions now get the same rate-limit tracking and 429 handling as subscription ones.
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.225.
In the changelogs
18Releases whose published page names gateway.
-
v2.1.296
Setting forceLoginMethod to gateway now leads to the gateway login
With forceLoginMethod set to "gateway" and no forceLoginGatewayUrl, Claude Code now treats gateway login as required
found in this entry's text
-
v2.1.295
Gateway URL setting can now come from your own user settings
The gatewayUrl setting is now honoured from your user settings on a machine with no managed settings, not only from admin-managed ones
found in this entry's text
-
v2.1.285
Admins can limit which API providers Claude Code may use
The new managed setting
allowedProviderslists the API providers allowed, and Claude Code refuses to run on any otherfound in this entry's text
-
v2.1.281
Gateway: new lint warning for missing serve_to_desktop, and log sanitisation
The gateway's policy checker now warns when no desktop policy sets
serve_to_desktop, and gateway errors are cleaned before loggingfound in this entry's text
-
v2.1.280
Gateway base URL now resolved from stored gateway auth credentials
Base URL lookup for the gateway provider now returns the stored gateway auth URL instead of nothing
found in this entry's text
-
v2.1.267
Version-string classifier regex extended with more distribution-channel suffixes
Telemetry now recognizes engine, byoc, gateway, and ccs as version-string distribution tags
found in this entry's text
-
v2.1.266
CLAUDE_CODE_USE_GATEWAY no longer selects gateway auth mode directly
Setting CLAUDE_CODE_USE_GATEWAY alone no longer switches Claude Code into gateway auth mode
found in this entry's text
-
v2.1.265
Gateway-forced-login detection simplified/changed condition
The check for whether login is forced through a gateway was simplified
found in this entry's text
-
v2.1.265
Gateway login force-selection simplified when already in gateway mode
Login is now forced to gateway mode whenever the session is already in gateway auth mode, not just via managed settings
found in this entry's text
-
v2.1.251
Sessions authenticated through a gateway attach a pinned identity
Gateway-authenticated sessions now attach a pinned identity tying them to one gateway origin.
found in this entry's text
-
v2.1.248
More model providers recognised, each with its own auth-skip variable
More model providers are accepted, each with an environment variable to skip its auth step.
found in this entry's text
-
v2.1.247
Managed settings can force login through a gateway
Admins can force gateway login using forceLoginMethod or forceLoginGatewayUrl in managed settings.
found in this entry's text
-
v2.1.228
Gateway log lines escape control characters
Gateway log lines escape control characters so request text cannot forge fake log entries.
found in this entry's text
-
v2.1.228
Gateway can admit Claude Enterprise callers without its own login (customer-routed inference)
Your gateway can accept Enterprise callers with Anthropic-minted tokens and run without any identity provider.
named in this entry
-
v2.1.228
Gateway runs without an OIDC block, and names two more upstream failures
You can run claude gateway without any OIDC config; sign-in endpoints simply return 404.
named in this entry
-
v2.1.227
claude gatewaynow identifies itself as the gateway providerRunning
claude gatewaynow reports gateway as the provider regardless of credentials.named in this entry, found in this entry's text
-
v2.1.225
Unified rate-limit tracking now also applies on the gateway auth source
Gateway-authenticated sessions now get the same rate-limit tracking and 429 handling as subscription ones.
found in this entry's text
-
v2.1.218
Pricing Records:
canonicalModelandproviderFieldsfound in this entry's text
First cited
0No release's published evidence quotes this name. The ledger indexes the Evidence lines of every changelog on this site, so this says nobody here has ever quoted it; it says nothing about how old the name is.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the CLI flag does. All CLI flags.