{"version":"2.1.242","anchor":"cloud-headless-can-ask-its-host-to-refresh-the-oauth-token","canonical_anchor":"cloud-headless-can-ask-its-host-to-refresh-the-oauth-token","heading":"Cloud headless can ask its host to refresh the OAuth token","tier":"soon","area":"Auth","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.242\/e\/cloud-headless-can-ask-its-host-to-refresh-the-oauth-token","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.242","markdown":"### Cloud headless can ask its host to refresh the OAuth token\n\nA host program can take over refreshing your login token, off unless an env var is set.\n\n**What**\n\nInstead of refreshing the login token itself, the client can hand that job to the program embedding it. This is installed only when `CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH` is set and `CLAUDE_CODE_ENTRYPOINT` names one of a fixed set of entry points, so it is off by default.\n\n**Details**\n\n- Whether the bridge was installed is reported as `oauth_bridge` in the session-started event.\n\n**Evidence**\n\n`CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH`\n\n- Area: Auth\n- Names: `CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH`, `CLAUDE_CODE_ENTRYPOINT`\n- Tier: Nothing to try yet\n- Useful: 2\/5\n- Signal: 3\/5\n- Present in the build but not switched on"}