{"name":"CLAUDE_CODE_HOST_NARROWS_SERVED_SETTINGS","slug":"claude-code-host-narrows-served-settings","family":"env","title":"Environment variables","noun":"environment variable","description":"A new environment variable, set by the app that launches Claude Code, turns on a settings check that only applies in remote cloud sessions","description_source":"entry","described_by":{"version":"2.1.334","anchor":"new-host-managed-env-var-claude-code-host-narrows-served-set"},"presence":{"first_seen":"2.1.334","removed_in":null,"in_current_build":true,"newest_mined":"2.1.336","builds":3,"mined_builds":175,"first_cited":{"version":"2.1.334","released_at":"2026-12-01 18:55:49","spans":1}},"aliases":[],"entries":[{"version":"2.1.334","anchor":"new-host-managed-env-var-claude-code-host-narrows-served-set","heading":"Host apps get a variable that narrows the settings Claude Code is served","line":"A new environment variable, set by the app that launches Claude Code, turns on a settings check that only applies in remote cloud sessions","released_at":"2026-12-01 18:55:49","reason":"named in this entry, found in this entry's text"},{"version":"2.1.334","anchor":"two-new-hosthook-env-vars-registered-in-env-passthrough-lis","heading":"Two more environment variables for programs that host Claude Code","line":"Claude Code now recognises `CLAUDE_CODE_EMIT_STOP_HOOK_EVENTS` and `CLAUDE_CODE_HOST_NARROWS_SERVED_SETTINGS`","released_at":"2026-12-01 18:55:49","reason":"found in this entry's text"}],"entries_total":2,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_HOST_ALLOW_RESETS_DENIAL_STREAK","slug":"claude-code-host-allow-resets-denial-streak","description":"`CLAUDE_CODE_HOST_ALLOW_RESETS_DENIAL_STREAK` is a new host-only environment variable that only acts when set to `true`"},{"name":"CLAUDE_CODE_HOST_ARTIFACT_TYPE_COMMANDS","slug":"claude-code-host-artifact-type-commands","description":"The new `CLAUDE_CODE_HOST_ARTIFACT_TYPE_COMMANDS` variable lets an app hosting Claude Code list artifact commands, including Motion and Whiteboard"},{"name":"CLAUDE_CODE_HOST_AUTH_ASK_AT_START","slug":"claude-code-host-auth-ask-at-start","description":"A new `CLAUDE_CODE_HOST_AUTH_ASK_AT_START` variable lets an app embedding Claude Code hand over credentials when a session starts"},{"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."},{"name":"CLAUDE_CODE_HOST_CHECKED_FOLDER","slug":"claude-code-host-checked-folder","description":"FORCE_AUTOUPDATE_PLUGINS, CLAUDE_CODE_CCR_AFFINITY_KEY and CLAUDE_CODE_HOST_CHECKED_FOLDER now appear in Claude Code's lists of environment variables"},{"name":"CLAUDE_CODE_HOST_CREDS_FILE","slug":"claude-code-host-creds-file","description":"A trailing slash in your host credentials file path no longer changes whether the rule matches."},{"name":"CLAUDE_CODE_HOST_FIRST_TURN_PLUGIN_FETCH_TIMEOUT_MS","slug":"claude-code-host-first-turn-plugin-fetch-timeout-ms","description":"Setting `CLAUDE_CODE_HOST_FIRST_TURN_PLUGIN_FETCH_TIMEOUT_MS` puts a time limit on the check for removed plugins at the start of a headless session"},{"name":"CLAUDE_CODE_HOST_GATEWAY_LINEAGE","slug":"claude-code-host-gateway-lineage","description":"New CLAUDE_CODE_HOST_GATEWAY_LINEAGE variable keeps child processes of a Desktop-hosted gateway session treated as host-managed"},{"name":"CLAUDE_CODE_HOST_GUARDS_ARTIFACTS_MCP","slug":"claude-code-host-guards-artifacts-mcp","description":"A remote tool host can now be released after an idle time set remotely, and Claude Code reads status updates from it during a session"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-host-narrows-served-settings","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}