Answer: The environment variables related to Claude Code self-hosted session identity are CLAUDE_RUNNER_ACCOUNT_EMAIL and CLAUDE_RUNNER_ACCOUNT_ID (in the spawn-runner hook on the orchestrator) and CCR_SESSION_ACCOUNT_EMAIL (in wrapper scripts inside the session). For independent cryptographic proof, CLAUDE_CODE_SESSION_ACCESS_TOKEN is used. Status: Confirmed Entry: tool/claude-code/settings/session-identity-env-vars Revision: 1 Digest: sha256:5e1aa48fb16e3098 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:41Z Last changed: 2026-11-13T03:05:41Z Last verified: 2026-11-20T12:24:59Z Next check: 2026-11-21T12:24:59Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of spawn-runner hook variable (email) | CLAUDE_RUNNER_ACCOUNT_EMAIL | [1] | 2026-11-20 spawn-runner hook variable (ID) | CLAUDE_RUNNER_ACCOUNT_ID | [1] | 2026-11-20 wrapper script variable | CCR_SESSION_ACCOUNT_EMAIL | [1] | 2026-11-20 cryptographic proof variable | CLAUDE_CODE_SESSION_ACCESS_TOKEN | [1] | 2026-11-20 Sources: [1] Anthropic. "Verify session identity in self-hosted environments". https://code.claude.com/docs/en/self-hosted-environments-identity.md Role: primary. Accessed: 2026-11-20T12:24:59Z Quote: "receives the creator identity in variables such as `CLAUDE_RUNNER_ACCOUNT_EMAIL` and `CLAUDE_RUNNER_ACCOUNT_ID`" (Supports: spawn-runner hook variable (email), spawn-runner hook variable (ID)) Quote: "wrappers receive `CCR_SESSION_ACCOUNT_EMAIL`, the creator's email pre-extracted from the token without signature verification" (Supports: wrapper script variable) Quote: "Use `CLAUDE_CODE_SESSION_ACCESS_TOKEN` when a downstream service needs independent cryptographic proof" (Supports: cryptographic proof variable) Published: 2026-11-20T03:48:50Z Snapshot SHA-256: cdc61ddd74e52d57db4485537975dbcd8ad08dc6efbd981680b2bdbe110022df (captured 2026-11-13T03:05:40Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:05:41Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:24:59Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:24:59Z Last attempt: 2026-11-20T12:24:59Z Notes and limitations: Extracted automatically from a single official source (section "Related environment variables"). Related: https://latestn.com/tool/claude-code/settings/set-cloud-environment-variables How do I set environment variables for a Claude Code cloud environment? https://latestn.com/tool/claude-code/settings/set-environment-variables How do I set environment variables for Claude Code in my shell or in a settings file? https://latestn.com/tool/claude-code/settings/set-environment-variables-sdk How do I set environment variables for a Claude Code Agent SDK session? https://latestn.com/tool/claude-code/settings/region-configuration How do I configure the region for Claude Code on Google Cloud's Agent Platform? https://latestn.com/tool/claude-code/settings/reserved-marketplace-names What are the reserved marketplace names in Claude Code? https://latestn.com/tool/claude-code/settings/self-hosted-env-var-only-settings Which settings for Claude Code self-hosted environments can only be configured via environment variables? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:05:41Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/session-identity-env-vars/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/settings/session-identity-env-vars POST: https://latestn.com/dispute/tool/claude-code/settings/session-identity-env-vars with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/session-identity-env-vars?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Which environment variables are related to Claude Code self-hosted session identity verification? Revision 1, last verified 2026-11-20T12:24:59Z. https://latestn.com/tool/claude-code/settings/session-identity-env-vars (accessed 2026-11-21T10:00:01Z). @misc{LatestN_tool_claude_code_settings_session_identity_env_vars_r1, title = {Which environment variables are related to Claude Code self-hosted session identity verification?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/session-identity-env-vars}}, note = {Revision 1; digest sha256:5e1aa48fb16e3098; last verified 2026-11-20T12:24:59Z; accessed 2026-11-21T10:00:01Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/settings/session-identity-env-vars