{"version":"2.1.328","anchor":"remote-session-uuid-env-var-set-for-runner-sessions","canonical_anchor":"remote-session-uuid-env-var-set-for-runner-sessions","heading":"Runner sessions expose the session ID in two environment variables","tier":"use","area":"Self-Hosted Runner","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/remote-session-uuid-env-var-set-for-runner-sessions","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Runner sessions expose the session ID in two environment variables\n\nRunner sessions set `CLAUDE_RUNNER_SESSION_UUID` and `CLAUDE_CODE_REMOTE_SESSION_UUID` to the same session ID\n\n**Unclear.** It is not clear which sessions count as runner sessions.\n\n**What**\n\nEnvironment variables are named values that programs can read. For runner sessions, Claude Code now sets both of these to the same session ID:\n\n- `CLAUDE_RUNNER_SESSION_UUID`\n\n- `CLAUDE_CODE_REMOTE_SESSION_UUID`\n\nBefore, this step returned an error instead.\n\n**Why**\n\nPrograms started from the session, such as your scripts, can read the session ID from either variable.\n\n- Area: Self-Hosted Runner\n- Tier: Use it now\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}