{"version":"2.1.335","anchor":"claude-code-oauth-token-is-now-pushed-to-the-tool-server-alo","canonical_anchor":"claude-code-oauth-token-is-now-pushed-to-the-tool-server-alo","heading":"Self-hosted runners can use the session token for inference in nested calls","tier":"notice","area":"Self-Hosted Runner","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/claude-code-oauth-token-is-now-pushed-to-the-tool-server-alo","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Self-hosted runners can use the session token for inference in nested calls\n\nOn self-hosted runners, a qualifying session token now stands in for the model token and is also passed to child processes as CLAUDE_CODE_OAUTH_TOKEN\n\n**What**\n\nA self-hosted runner is a machine you run yourself that picks up Claude Code sessions. When it starts Claude Code again inside a session (a nested call), it hands that copy a token, a credential that proves who is asking. Two things change about which token it hands over:\n\n- Model token: when both the inference token and the session token pass a check, the runner now uses the session token as the model token. The token refresh path makes the same substitution, and one token-file helper is skipped when the session token passes the check. Before, the current inference token was used directly. Requests sent through the agent proxy are now flagged with `sendsThroughAgentProxy`.\n\n- `CLAUDE_CODE_OAUTH_TOKEN`: when the token passes the check, the runner now also writes it to the child process as `CLAUDE_CODE_OAUTH_TOKEN`, labelled `inference_token`. Before, it wrote only `CLAUDE_CODE_SESSION_ACCESS_TOKEN`.\n\n**Why**\n\nThis changes which credential nested Claude Code calls use on self-hosted runners. In practice, child processes started by the runner can now make model requests with the token the runner issued.\n\n- Area: Self-Hosted Runner\n- Names: `CLAUDE_CODE_OAUTH_TOKEN`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: no"}