What
Managed settings are settings an organization sets centrally for everyone's Claude Code. Two changes affect signing in with Claude Console under those settings:
forceLoginMethodis now checked even whenforceLoginOrgUUIDis not set. Before, the check was skipped in that case. Messages for Console sign-ins now suggestclaude auth login --console, and checking the organization no longer retries after a timeout.- If a Console sign-in would save an API key but Claude Code is set up to use a gateway, workload identity or a sign-in profile, it now stops with: "This Console sign-in would save an API key, and Claude Code can't use one here. No API key was created." It suggests logging out first with
claude auth logoutorant auth logout, then runningclaude auth login --console.
Why
Admins who set only forceLoginMethod now have it enforced. Users on managed setups get a clear refusal and next steps instead of an API key being saved that Claude Code cannot use.
claude auth logout
Error reference modified, high confidence
* Run `claude auth logout` in your shell to try the save againsee the edit
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees
claude auth logout on Error reference
Anthropic's release notes agree
Added sign-in to organizations managed in Anthropic's Enterprise Admin Console: after claude auth login, Claude Code applies the…