{"name":"CLAUDE_CODE_HOST_AUTH_ENV_VAR","slug":"claude-code-host-auth-env-var","family":"env","title":"Environment variables","noun":"environment variable","description":"When Claude Code removes certain environment variables, it now keeps the one named by `CLAUDE_CODE_HOST_AUTH_ENV_VAR`","description_source":"entry","described_by":{"version":"2.1.290","anchor":"host-auth-env-var-is-exempted-from-the-environment-scrub"},"presence":{"first_seen":"2.1.145","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":143,"mined_builds":150,"first_cited":{"version":"2.1.290","released_at":"2026-10-05 18:12:44","spans":1}},"aliases":[],"entries":[{"version":"2.1.307","anchor":"launcher-host-sign-in-for-the-desktop-app-is-new-in-this-bui","heading":"Sessions started by the desktop app can use its claude.ai sign-in","line":"Claude Code can now use a claude.ai sign-in passed over by the launcher that started it, such as the desktop app, and drops it when conditions no longer hold","released_at":"2026-10-21 20:47:18","reason":"named in this entry, found in this entry's text"},{"version":"2.1.290","anchor":"host-auth-env-var-is-exempted-from-the-environment-scrub","heading":"Variable named by CLAUDE_CODE_HOST_AUTH_ENV_VAR is kept when the environment is cleaned","line":"When Claude Code removes certain environment variables, it now keeps the one named by `CLAUDE_CODE_HOST_AUTH_ENV_VAR`","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text, named in this entry"},{"version":"2.1.167","anchor":"finer-grained-managedbyhost-flag-tracking","heading":"Finer-grained managedByHost flag tracking","line":null,"released_at":"2026-06-06 01:18:42","reason":"found in this entry's text"}],"entries_total":3,"docs":[],"docs_total":0,"gates":[],"related":[{"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-env-var","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}