[BUG] Persistent 401 Authentication Error
Open 💬 0 comments Opened Jul 4, 2026 by ioriandreaai-lab
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?
Bug Report: Persistent 401 Authentication Error
- Claude Code version: 2.1.80
- OS: macOS
- Email: iori.andrea.ai@gmail.com
- Subscription: Claude Max
Problem:
Every command returns:
API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"Invalid authentication credentials"}}
Steps tried (all failed):
claude logout→ 401claude auth login→ 401 persists immediately after- Deleted ~/.claude and ~/.credentials.json → same error
- Uninstalled npm version and installed native installer → same error
- Console shows Welcome correctly but tokens expire instantly
- No active sessions in console.anthropic.com/account to revoke
Additional info:
- claude.ai web works fine
- Not using VPN
- System clock is correct
This is blocking all work. Need immediate assistance.
What Should Happen?
s
Error Messages/Logs
Steps to Reproduce
s
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
x
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Warp
Additional Information
_No response_