Unclear What condition makes the check flag an apiKeyHelper credential.
What
apiKeyHelper is a setting that names your own command for producing the API credential Claude Code signs in with. Two things about it have changed:
- Claude Code now checks your organization's managed settings, which are policy settings an administrator controls, for
apiKeyHelperbefore anywhere else. When the helper comes from there, it runs from the top folder/with a cleaned-out set of environment variables, which are named values a program reads when it starts, rather than inheriting yours. Claude Code then reports the source of the key aspolicySettings. - When the credential comes from
apiKeyHelperand a new check flags it, Claude Code now rebuilds its connection to the API instead of carrying on with the old one. This happens in two places.
Why
An administrator can now make every user's Claude Code get its key from one approved command, and that command runs without the user's own environment. The rebuild looks like a way to pick up a fresh key when the current one is flagged, instead of carrying on with a stale one.
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.
* [`--bare`](https://code.claude.com/docs/en/headless#start-faster-with-bare-mode) skips your hooks, skills, plugins, MCP servers, and `CLAUDE.md` files from the repo and your home directory. It also doesn't use your claude.ai login: auth …best-practices see the edit
* **Provider settings**: the next time a signed-in developer starts Claude Code, your gateway replaces their own provider settings and `apiKeyHelper`third-party/claude-desktop/entra-broker see the edit
What condition makes the check flag an `apiKeyHelper` credential.
Anthropic's documentation has since written up apiKeyHelper, on Sign in through the OS identity broker.