{"version":"2.1.327","anchor":"runner-model-socket-and-launcher-run-api-key-helper-env-vars","canonical_anchor":"runner-model-socket-and-launcher-run-api-key-helper-env-vars","heading":"New environment variables for hosts that run Claude Code and supply its model access","tier":"use","area":"Host Integration","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/runner-model-socket-and-launcher-run-api-key-helper-env-vars","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### New environment variables for hosts that run Claude Code and supply its model access\n\nNew variables let a launching host supply model access and fetch the API key itself, and some settings then come only from managed settings\n\n**What**\n\nThree new environment variables (named values set in the shell or process that starts Claude Code) appear in code that handles Claude Code being launched by another program:\n\n- `CLAUDE_CODE_RUNNER_MODEL_SOCKET`: turns on a check of your settings for sign-in details, an `apiKeyHelper`, or provider settings. The check looks in settings files, token files, a stored sign-in and CI.\n\n- `CLAUDE_CODE_LAUNCHER_RUNS_API_KEY_HELPER`: means the launcher has asked Claude Code to fetch the gateway's token itself.\n\n- `CLAUDE_CODE_REMOTE_TOOLS_DESKTOP_APP_HOST`: added to the list of variables that are passed through.\n\nWhen the launcher runs the API key helper and the host also manages the provider, Claude Code ignores some variables if they come from non-managed settings, and shows a warning. Only managed settings (the settings an organization controls) or the launcher can set them. They include the plugin sync timeouts and `ANTHROPIC_CUSTOM_HEADERS`.\n\n**Why**\n\nThis looks like groundwork for a self-hosted runner that serves model requests to Claude Code. A normal install does not reach any of it.\n\n- Area: Host Integration\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 4\/5\n- Scope: org\n- Heads-up: no"}