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 bundleforceLoginMethod
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.
Added since
A small documentation edit on Configure server-managed settings touched a line naming forceLoginMethod after this was published.
* **Gateway sign-in keys**: Claude Code never reads [`forceLoginGatewayUrl`](/docs/en/settings-reference#forcelogingatewayurl), [`gatewayInternalNetworks`](/docs/en/settings-reference#gatewayinternalnetworks), or the `"gateway"` value of […server-managed-settings see the edit
Confirmed since
Anthropic's documentation has since written up forceLoginMethod, on Claude apps gateway configuration.
Claude Code honors [`forceLoginGatewayUrl`](/docs/en/settings-reference#forcelogingatewayurl), [`gatewayInternalNetworks`](/docs/en/settings-reference#gatewayinternalnetworks), and the `"gateway"` value of [`forceLoginMethod`](/docs/en/set…claude-apps-gateway-config see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up forceLoginMethod, on Claude apps gateway configuration.