Repository navigation
v0.12.1: Claude Code OAuth token
One fix. A headless run authenticated with a Claude Code OAuth token no longer dies with "Not logged in".
The Claude Code OAuth token reaches the attempt (#105)
The claude-code harness runs each attempt under a stripped HOME, so the CLI sees no keychain entry and no credentials file. ANTHROPIC_API_KEY and OPENAI_API_KEY were forwarded into that environment, but CLAUDE_CODE_OAUTH_TOKEN, the token claude setup-token mints and the documented way to authenticate a headless run, was not. Every attempt failed with "Not logged in" whatever the caller exported, and the diagnosis blamed the credential store.
The token is now declared as passthrough on the harness (ADR 0020), so it survives the stripped HOME and sits outside the API-key guard by construction. That guard stops an unfunded key from overriding valid OAuth; this token is that OAuth.