[BUG]

Resolved 💬 3 comments Opened May 21, 2026 by HaithamMaya Closed Jun 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Version 2.1.146 introduced a new issue, where using forceLoginMethod of console with an apiKeyHelper in managed-settings.json triggers this error on Claude launch:

This machine's managed settings require a first-party login, but a
non-OAuth authentication method is active (third-party provider,
API key, auth token, or apiKeyHelper).

Remove the non-OAuth configuration and run: claude auth login

Stable versions on 2.1.140 do not have this issue.

What Should Happen?

forceLoginMethod of console should support the apiKeyHelper method or have a dedicated login method type.

Error Messages/Logs

Steps to Reproduce

Create a managed-settings.json with

  • forceLoginMethod: console
  • apiKeyHelper: foo.sh

On Claude Code launch, get the managed settings error. Removing the forceLoginMethod parameter does not introduce this error

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.146

Platform

Other

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗