{"name":"CLAUDE_BG_SOCKET_TOKENS_PATH","slug":"claude-bg-socket-tokens-path","family":"env","title":"Environment variables","noun":"environment variable","description":"Set internally by the background-session daemon on the processes it spawns (a session's PTY host, warm spares) to the path of a JSON file holding their socket auth tokens (`rvAuth`, `ptyAuth`, `claimAuth`). It is passed instead of the direct `CLAUDE_BG_RV_AUTH`, `CLAUDE_BG_PTY_AUTH` and `CLAUDE_BG_CLAIM_AUTH` variables. Each reader takes its token from the file, falls back to the matching direct variable when the file lacks it, and then removes the variable and deletes the file (the PTY host does that only when `CLAUDE_PTY_HOST_EXEC` is `1`).","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.169","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":122,"mined_builds":150,"first_cited":null},"aliases":[],"entries":[],"entries_total":0,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_BG_AUTH_SNAPSHOT_PATH","slug":"claude-bg-auth-snapshot-path","description":"Bridge-spawned child sessions no longer inherit your credential environment variables."},{"name":"CLAUDE_BG_AUTO_MEMORY_OFF","slug":"claude-bg-auto-memory-off","description":"Claude Code now tracks auto-memory being off for a session and adds a notice that memory is still paused from earlier"},{"name":"CLAUDE_BG_BACKEND","slug":"claude-bg-backend","description":"With the daemon background backend, the display survives stdout disappearing instead of dying."},{"name":"CLAUDE_BG_CARRIED_PROMPTS_SHA256","slug":"claude-bg-carried-prompts-sha256","description":"Claude Code now passes `CLAUDE_BG_CARRIED_PROMPTS_SHA256` to background sessions alongside `CLAUDE_BG_WORKSPACE_TRUSTED`"},{"name":"CLAUDE_BG_CLAIM_AUTH","slug":"claude-bg-claim-auth","description":"Claude Code adds seven environment variable names for background sessions and terminal hosts to a list it keeps of such names"},{"name":"CLAUDE_BG_DISPATCHER_RATE_LIMIT_TIER","slug":"claude-bg-dispatcher-rate-limit-tier","description":"Two env vars let background dispatchers inherit your plan and rate tier without an API call."},{"name":"CLAUDE_BG_DISPATCHER_SUBSCRIPTION_TYPE","slug":"claude-bg-dispatcher-subscription-type","description":"Two env vars let background dispatchers inherit your plan and rate tier without an API call."},{"name":"CLAUDE_BG_GATEWAY_WITHHELD","slug":"claude-bg-gateway-withheld","description":"`CLAUDE_BG_GATEWAY_WITHHELD` is now removed along with other background-session variables, so it does not carry into sessions started from there"},{"name":"CLAUDE_BG_ISOLATION","slug":"claude-bg-isolation","description":"Background worktree isolation now reads CLAUDE_BG_ISOLATION from a captured environment copy."},{"name":"CLAUDE_BG_MEMORY_TOGGLED_OFF","slug":"claude-bg-memory-toggled-off","description":"Background sessions now start from a cleaned environment, with login variables added back and some internal variables left out"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-bg-socket-tokens-path","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}