[Bug] OAuth token periodically becomes invalid requiring re-authentication

Status Open
Reported on v2.1.224
Maintainer reply None cached
Activity 0 comments · opened Aug 7, 2026

Bug Description
I had recieved a long lived oauth token by running "claude setup-token" and added it to CLAUDE_CODE_OAUTH_TOKEN and it works fine for me. but time to time when i workwith claude cli, then i get an API error. i force auth by running a ! command of claude -p "say ok", and then my previous messages goes on fine.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.224
  • Feedback ID: 366c492a-4d53-4aa7-a187-4bb73be789da

Errors

[]

View original on GitHub ↗