{"version":"2.1.290","anchor":"host-auth-env-var-is-exempted-from-the-environment-scrub","canonical_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","tier":"use","area":"Auth","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290\/e\/host-auth-env-var-is-exempted-from-the-environment-scrub","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290","markdown":"### Variable named by `CLAUDE_CODE_HOST_AUTH_ENV_VAR` is kept when the environment is cleaned\n\nWhen Claude Code removes certain environment variables, it now keeps the one named by `CLAUDE_CODE_HOST_AUTH_ENV_VAR`\n\n**Unclear.** Which variables this step removes and when it runs is not established.\n\n**What**\n\nEnvironment variables are named settings passed to a program when it starts. Claude Code has a step that removes certain variables from a blocked list. That step now also spares the variable whose name is given in `CLAUDE_CODE_HOST_AUTH_ENV_VAR`, alongside the one name it already spared. Names are compared without regard to upper or lower case.\n\n**Why**\n\nHosted or remote setups that pass a sign-in credential through that variable can keep it instead of having it removed.\n\n- Area: Auth\n- Names: `CLAUDE_CODE_HOST_AUTH_ENV_VAR`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: both\n- Heads-up: no"}