{"version":"2.1.333","anchor":"session-ingress-token-can-be-re-read-from-a-token-file-in-sh","canonical_anchor":"session-ingress-token-can-be-re-read-from-a-token-file-in-sh","heading":"Remote sessions can re-read their access token from a file","tier":"internal","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/session-ingress-token-can-be-re-read-from-a-token-file-in-sh","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Remote sessions can re-read their access token from a file\n\nClaude Code can re-read the session token from the file named in `CLAUDE_SESSION_INGRESS_TOKEN_FILE`, and the runner empties that file if writing it fails\n\n**What**\n\nClaude Code can now produce a small shell step that reads the session ingress token from a file. The session ingress token is a credential that remote sessions use. The file is the one named in `CLAUDE_SESSION_INGRESS_TOKEN_FILE`. The step only reads the file when all of these hold:\n\n- a particular variable is set\n\n- the path is an ordinary file\n\n- the path is not a symbolic link, which is a shortcut pointing at another file\n\nIt only accepts a token made of letters, digits, `.`, `_` and `-`. A separate step removes the variable from the environment.\n\nWhen writing the token file fails, the runner that hosts the session now empties the file. The log message says that git and gh may use an older token until the runner empties or next writes the file.\n\n**Why**\n\nThis lets a remote session pick up a fresh token while it runs, without handing the file's location on to the programs it starts.\n\n- Area: Sessions\n- Names: `CLAUDE_SESSION_INGRESS_TOKEN_FILE`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}