{"name":"CLAUDE_CODE_REMOTE_SESSION_ID","slug":"claude-code-remote-session-id","family":"env","title":"Environment variables","noun":"environment variable","description":"Commands blocked in cloud sessions now tell you the exact local command to run instead.","description_source":"entry","described_by":{"version":"2.1.223","anchor":"slash-commands-unavailable-in-a-cloud-session-explain-how-to"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":{"version":"2.1.178","released_at":"2026-06-15 19:03:37","spans":1}},"aliases":[],"entries":[{"version":"2.1.302","anchor":"explore-agent-can-now-run-on-haiku-inside-remote-sessions","heading":"The exploring subagent can now use Haiku in remote sessions","line":"A built-in exploring agent can now run on the smaller Haiku model in remote sessions, not just in the situations it could before","released_at":"2026-10-16 16:48:28","reason":"found in this entry's text"},{"version":"2.1.301","anchor":"remote-session-attachments-in-user-data-path-env-gated-and","heading":"New CLAUDE_CODE_ATTACHMENTS_IN_USER_DATA setting for remote session attachments","line":"Remote sessions can keep attachments in a user-data folder when `CLAUDE_CODE_ATTACHMENTS_IN_USER_DATA` is set, unless data retention rules apply","released_at":"2026-10-15 14:34:23","reason":"found in this entry's text, named in this entry"},{"version":"2.1.301","anchor":"attachments-in-user-data-probe-for-remote-sessions-behind-cl","heading":"Cloud sessions check whether attachments could be stored with user data","line":"Remote sessions with CLAUDE_CODE_ATTACHMENTS_IN_USER_DATA set now check at startup whether attachments could be kept with user data","released_at":"2026-10-15 14:34:23","reason":"found in this entry's text, named in this entry"},{"version":"2.1.296","anchor":"remote-environment-classifier-and-ccr-artifacts-endpoints","heading":"Claude Code can tell which kind of remote environment it runs in","line":"Claude Code gains a check for which kind of remote environment it is in, plus addresses for an artifacts service","released_at":"2026-10-09 16:58:10","reason":"found in this entry's text"},{"version":"2.1.293","anchor":"remote-transport-persistenceredaction-checks-and-a-settings","heading":"Stricter checks on what remote sessions can save","line":"Remote sessions now save data only when CLAUDE_CODE_REMOTE_SESSION_ID is set and the session came from an allowed remote entry point","released_at":"2026-10-07 17:18:04","reason":"found in this entry's text"},{"version":"2.1.293","anchor":"staging-errors-marked-permanent-subagent-type-and-continue","heading":"Remote session setup stops retrying two failures that cannot recover","line":"Two remote session setup failures are now marked permanent so they are not retried, and a broken credential check is fixed","released_at":"2026-10-07 17:18:04","reason":"found in this entry's text"},{"version":"2.1.292","anchor":"claude-code-host-skill-catalog-new-env-var-restricting-host","heading":"New CLAUDE_CODE_HOST_SKILL_CATALOG variable limits which skills load","line":"In remote sessions, `CLAUDE_CODE_HOST_SKILL_CATALOG` can list the skills allowed to load, and invalid values are ignored with a warning","released_at":"2026-10-06 17:10:31","reason":"found in this entry's text, named in this entry"},{"version":"2.1.292","anchor":"telemetry-now-records-whether-a-session-has-a-remote-session","heading":"Usage data now notes whether a session runs remotely or in a container","line":"Claude Code now records yes or no for whether a remote session ID or container ID is set","released_at":"2026-10-06 17:10:31","reason":"found in this entry's text"},{"version":"2.1.286","anchor":"chrome-tab-group-key-passed-only-for-remote-sessions-and-the","heading":"CLAUDE_CHROME_TAB_GROUP_KEY is used only in remote sessions and then cleared","line":"Claude Code now keeps `CLAUDE_CHROME_TAB_GROUP_KEY` only in remote sessions and removes it so programs it starts do not inherit it","released_at":"2026-09-30 17:14:38","reason":"found in this entry's text, named in this entry"},{"version":"2.1.284","anchor":"session-link-attribution-also-applies-when-a-session-id-come","heading":"Session links on commits and pull requests are added in more cases","line":"The Claude session link on commits and pull requests is now added whenever a session id is found, not only in remote mode","released_at":"2026-09-28 17:11:59","reason":"found in this entry's text, named in this entry"}],"entries_total":32,"docs":[{"source":"claude-code","path":"cloud-environments","title":"Configure cloud environments","documented":false},{"source":"claude-code","path":"env-vars","title":"Environment variables","documented":false},{"source":"claude-code","path":"monitoring-usage","title":"Monitoring","documented":false},{"source":"claude-code","path":"self-hosted-environments-configuration","title":"Customize sessions in self-hosted environments","documented":false},{"source":"claude-code","path":"self-hosted-environments-testing","title":"Test self-hosted environments end to end","documented":false}],"docs_total":5,"gates":[],"related":[{"name":"CLAUDE_CODE_REMOTE_SESSION_ORIGIN","slug":"claude-code-remote-session-origin","description":"Remote sessions started from review can skip writing some state to disk."},{"name":"CLAUDE_CODE_REMOTE_SESSION_UUID","slug":"claude-code-remote-session-uuid","description":"Runner hooks now get CLAUDE_RUNNER_SESSION_UUID and CLAUDE_CODE_REMOTE_SESSION_UUID so your scripts can key on the session."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-remote-session-id","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}