{"name":"CLAUDE_CODE_HOST_AUTH_ASK_AT_START","slug":"claude-code-host-auth-ask-at-start","family":"env","title":"Environment variables","noun":"environment variable","description":"A new `CLAUDE_CODE_HOST_AUTH_ASK_AT_START` variable lets an app embedding Claude Code hand over credentials when a session starts","description_source":"entry","described_by":{"version":"2.1.327","anchor":"new-host-auth-env-var-claude-code-host-auth-ask-at-start-let"},"presence":{"first_seen":"2.1.327","removed_in":null,"in_current_build":true,"newest_mined":"2.1.330","builds":4,"mined_builds":169,"first_cited":{"version":"2.1.327","released_at":"2026-11-17 20:33:19","spans":2}},"aliases":[],"entries":[{"version":"2.1.328","anchor":"host-auth-seed-with-claude-code-host-auth-ask-at-start-now-t","heading":"Empty credential variables no longer count as set unless you opt in","line":"With `CLAUDE_CODE_HOST_AUTH_ASK_AT_START` off, an empty credential variable passed at launch is now treated as not set","released_at":"2026-11-18 23:09:39","reason":"named in this entry, found in this entry's text"},{"version":"2.1.327","anchor":"new-host-auth-env-var-claude-code-host-auth-ask-at-start-let","heading":"Apps that embed Claude Code can supply sign-in details at startup","line":"A new `CLAUDE_CODE_HOST_AUTH_ASK_AT_START` variable lets an app embedding Claude Code hand over credentials when a session starts","released_at":"2026-11-17 20:33:19","reason":"found in this entry's text, named in this entry"},{"version":"2.1.327","anchor":"host-auth-token-can-be-requested-at-start-up","heading":"Apps that embed Claude Code can supply a sign-in token at start-up","line":"A host app can now be asked for a sign-in token as Claude Code starts, which is then written into the environment variable the host chose","released_at":"2026-11-17 20:33:19","reason":"found in this entry's text"},{"version":"2.1.327","anchor":"new-env-var-claude-code-mcp-serve-machine-plugins-added-to-a","heading":"Three new environment variables recognised for host apps","line":"Claude Code now recognises `CLAUDE_CODE_MCP_SERVE_MACHINE_PLUGINS`, `CLAUDE_CODE_REMOTE_TOOLS_DESKTOP_APP_HOST` and `CLAUDE_CODE_HOST_AUTH_ASK_AT_START`","released_at":"2026-11-17 20:33:19","reason":"found in this entry's text"},{"version":"2.1.327","anchor":"launcher-run-apikeyhelper-from-managed-settings","heading":"A launcher can ask Claude Code to run the managed apiKeyHelper","line":"On Linux, a launcher can ask Claude Code to run the `apiKeyHelper` from managed settings for an https gateway, under strict conditions","released_at":"2026-11-17 20:33:19","reason":"found in this entry's text"}],"entries_total":5,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_HOST_AUTH_ENV_VAR","slug":"claude-code-host-auth-env-var","description":"When Claude Code removes certain environment variables, it now keeps the one named by `CLAUDE_CODE_HOST_AUTH_ENV_VAR`"},{"name":"CLAUDE_CODE_HOST_AUTH_REFRESH_TIMEOUT_MS","slug":"claude-code-host-auth-refresh-timeout-ms","description":"Milliseconds Claude Code waits for the SDK host to answer a `host_auth_token_refresh` control request, used by the refresh hook registered when `CLAUDE_CODE_SDK_HAS_HOST_AUTH_REFRESH` is set. Default `30000`; an unset, empty, `0` or non-numeric value uses the default."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-host-auth-ask-at-start","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}