Group of 4 You'll notice
Gateway login logic was simplified: looser URL validation and a more direct check for when login is forced through the gateway
What
- The
forceLoginGatewayUrlCLI option now accepts any non-empty string rather than requiring a syntactically valid URL. - The check for whether login is gateway-forced was simplified to: the login method is
"gateway", or a gateway URL is set — replacing a more convoluted prior condition. - The forced-login-method resolution for the login flow now short-circuits to
"gateway"whenever the session is already in gateway auth mode, rather than only special-casing an explicit managed-setting value. - The gateway auth backend's API key check now short-circuits to reporting the key as "missing" first when in gateway mode without the expected check passing, instead of falling through to the normal API-key-helper/environment-variable lookup.
Why These changes make gateway-forced login detection more consistent and predictable across the CLI, reducing edge cases where login mode or API key status could be determined by a stricter or more roundabout check than intended.
Names in the bundleforceLoginGatewayUrl
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up forceLoginGatewayUrl, on All settings.
* **[`forceLoginGatewayUrl`](#forcelogingatewayurl) and the `"gateway"` value of [`forceLoginMethod`](#forceloginmethod)**: Claude Code never reads either from server-managed settings, so a value there neither applies nor hides one set in …settings-reference see the edit
Added since
A small documentation edit on Deploy managed settings touched a line naming forceLoginGatewayUrl after this was published.
The [gateway login keys](#choose-a-delivery-mechanism), [`forceLoginGatewayUrl`](/docs/en/settings-reference#forcelogingatewayurl) and the `"gateway"` value of [`forceLoginMethod`](/docs/en/settings-reference#forceloginmethod), follow a se…managed-settings see the edit
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees
A small documentation edit on Deploy managed settings touched a line naming forceLoginGatewayUrl after this was published.
Anthropic's release notes agree
Changed machines with forceLoginGatewayUrl in managed settings to be Claude apps gateway sessions from startup, like forceLoginMethod…