{"version":"2.1.327","anchor":"client-re-creates-itself-when-apikeyhelper-credential-is-fla","canonical_anchor":"client-re-creates-itself-when-apikeyhelper-credential-is-fla","heading":"apiKeyHelper can come from managed settings, and the client rebuilds when its key is flagged","tier":"notice","area":"Auth","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/client-re-creates-itself-when-apikeyhelper-credential-is-fla","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### apiKeyHelper can come from managed settings, and the client rebuilds when its key is flagged\n\napiKeyHelper can now be set by organization managed settings and runs in a restricted environment, and Claude Code rebuilds its client when that key is flagged\n\n**Unclear.** What condition makes the check flag an `apiKeyHelper` credential.\n\n**What**\n\n`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:\n\n- Claude Code now checks your organization's managed settings, which are policy settings an administrator controls, for `apiKeyHelper` before 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 as `policySettings`.\n\n- When the credential comes from `apiKeyHelper` and 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.\n\n**Why**\n\nAn 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.\n\n- Area: Auth\n- Names: `apiKeyHelper`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: no"}