[BUG] API Error: 401 Invalid authentication credentials (Claude keeps logging out everyday on powershell)

Status Closed — not planned
Reported on v2.1.173
Maintainer reply None cached
Activity 1 comment · opened Jul 16, 2026 · closed Sep 4, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I use Claude CLI on powershell, It logs out everyday. I have to ask the manager to authorize the login everyday.

What Should Happen?

I dont know if this is a bug or i am doing something wrong.

Error Messages/Logs

Steps to Reproduce

claude
/a query
● Please run /login · API Error: 401 OAuth access token has been revoked.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.173 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗