Search the documentation
4 pages for claude_code_remote_session_id.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…cript URL on claude.ai, and the session can read its own ID from the `CLAUDE_CODE_REMOTE_SESSION_ID` environment variable. Use this to put a traceable link in PR bodies, commit messages, Slack posts,…
Environment variables
Claude Code CLI · in the page
env-vars
…or later. In [cloud sessions](/docs/en/claude-code-on-the-web), read `CLAUDE_CODE_REMOTE_SESSION_ID` instead…
Customize sessions in self-hosted environments
Claude Code CLI · in the page
self-hosted-environments-configuration
…| | `CLAUDE_CODE_REMOTE_SESSION_ID` | Session ID in the tagged `cse_...` form. This is the same session the [lifecycle hooks](#life…
Test self-hosted environments end to end
Claude Code CLI · in the page
self-hosted-environments-testing
…. [ -n "${E2E_REPLY_DIR:-}" ] && [ -d "$E2E_REPLY_DIR" ] || exit 0 # CLAUDE_CODE_REMOTE_SESSION_ID is exported in cse_... form; the session # id the dispatch CLI prints is in session_... form. Same i…