{"version":"2.1.327","anchor":"launcher-run-apikeyhelper-from-managed-settings","canonical_anchor":"launcher-run-apikeyhelper-from-managed-settings","heading":"A launcher can ask Claude Code to run the managed apiKeyHelper","tier":"internal","area":"Auth","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/launcher-run-apikeyhelper-from-managed-settings","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### A launcher can ask Claude Code to run the managed `apiKeyHelper`\n\nOn Linux, a launcher can ask Claude Code to run the `apiKeyHelper` from managed settings for an https gateway, under strict conditions\n\n**What**\n\n`apiKeyHelper` is a setting that names your own command for producing the API credential. A launcher, the program that starts Claude Code for you, can now ask Claude Code to run the `apiKeyHelper` from managed settings, which are settings set by an organisation. It does this through two environment variables, named values handed to Claude Code when it starts:\n\n- `CLAUDE_CODE_LAUNCHER_RUNS_API_KEY_HELPER`\n\n- `CLAUDE_CODE_HOST_AUTH_ASK_AT_START`\n\nThe helper is run only when all of these hold:\n\n- Claude Code is on Linux.\n\n- The session is non-interactive, meaning no one is typing into it.\n\n- The gateway Claude Code talks to uses https.\n\n- No token or API key is already set.\n\nIf any of these fails, Claude Code prints a warning saying why the helper was not run, even though the launcher asked for it.\n\n**Why**\n\nThis gives organisations that send Claude Code through a gateway a new way for the host machine to supply credentials.\n\n- Area: Auth\n- Names: `apiKeyHelper`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: no"}