Claude Code self-hosted runner OAuth tokens can now start with oat02-
From Claude Code 2.1.332, a self-hosted runner's `CLAUDE_CODE_OAUTH_TOKEN` can carry an `oat02-` prefix as well as `oat01-`. Proxy rules and log scrubbers that match only `oat01-` miss the new tokens.
What does this mean for me?
Action needed
Engineering leadership
Cost, risk, timeline, team impact Action neededIf you run Claude Code self-hosted runners, have security update secret scanners and proxy rules now: tokens starting oat02- can slip past rules written for oat01- and land unmasked in logs.
Engineer
What to change, what breaks, what to test Action neededUpdate proxy rules, log scrubbers and secret scanners that match CLAUDE_CODE_OAUTH_TOKEN by the oat01- prefix to also match oat02-, and mask the whole value rather than relying on the prefix.
General consumer
Using the Claude apps, not the API No impactNothing to do: this affects self-hosted Claude Code runners, not the Claude apps.
Claude Code 2.1.332 changes the format of CLAUDE_CODE_OAUTH_TOKEN for self-hosted runners: the prefix can now end in oat02- as well as oat01-.
Anything that recognises these tokens by prefix needs updating. A proxy rule that allows or routes requests by matching oat01- can refuse the new tokens, and a log scrubber or secret scanner that matches only oat01- can let a new token through into logs unmasked. The changelog’s advice is to update those rules and to mask the whole value rather than relying on the prefix.
The same release changes claude self-hosted-runner setup with no arguments on macOS and Linux to ask for the environment key in the terminal before Claude starts, hiding it as it is pasted.
The changelog does not date its versions; 2.1.332 appeared between November 24 and November 25, 2026, so the date is an estimate.
Topics: Coding tools