{"name":"CLAUDE_CODE_HOST_SCHEDULED_RUN","slug":"claude-code-host-scheduled-run","family":"env","title":"Environment variables","noun":"environment variable","description":"Scheduled-run tasks can now report why they fired, but only if the host explicitly opts in via CLAUDE_CODE_HOST_SCHEDULED_RUN=1","description_source":"entry","described_by":{"version":"2.1.280","anchor":"new-claude-code-host-scheduled-run-env-var-gates-a-local-hos"},"presence":{"first_seen":"2.1.280","removed_in":null,"in_current_build":true,"newest_mined":"2.1.283","builds":4,"mined_builds":126,"first_cited":{"version":"2.1.280","released_at":"2026-09-22 15:44:39","spans":4}},"aliases":[],"entries":[{"version":"2.1.280","anchor":"new-claude-code-host-scheduled-run-env-var-gates-a-local-hos","heading":"New CLAUDE_CODE_HOST_SCHEDULED_RUN env var gates a local host's scheduled-run claims","line":"Scheduled-run tasks can now report why they fired, but only if the host explicitly opts in via CLAUDE_CODE_HOST_SCHEDULED_RUN=1","released_at":"2026-09-22 15:44:39","reason":"found in this entry's text, named in this entry"},{"version":"2.1.280","anchor":"new-env-derived-telemetry-flag-claude-code-host-scheduled-r","heading":"New env-derived telemetry flag: CLAUDE_CODE_HOST_SCHEDULED_RUN","line":"Session telemetry now records whether a run was started by a host via a new CLAUDE_CODE_HOST_SCHEDULED_RUN environment variable","released_at":"2026-09-22 15:44:39","reason":"found in this entry's text, named in this entry"}],"entries_total":2,"docs":[{"source":"claude-code","path":"agent-sdk\/typescript","title":"Agent SDK reference - TypeScript","documented":false}],"docs_total":1,"gates":[],"related":[{"name":"CLAUDE_CODE_HOST_AUTH_ENV_VAR","slug":"claude-code-host-auth-env-var","description":null},{"name":"CLAUDE_CODE_HOST_AUTH_REFRESH_TIMEOUT_MS","slug":"claude-code-host-auth-refresh-timeout-ms","description":null},{"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_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_PLATFORM","slug":"claude-code-host-platform","description":null},{"name":"CLAUDE_CODE_HOST_SESSION_ID","slug":"claude-code-host-session-id","description":"Claude Code now recognizes a CLAUDE_CODE_HOST_SESSION_ID environment variable"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-host-scheduled-run","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}