Claude Code responding with 401 across multiple machines even though login flow (Max plan), desktop, web apps work.
Resolved 💬 13 comments Opened Jul 10, 2025 by adstastic Closed Jul 10, 2025
Bug Description
Getting the following error on multiple machines:
API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"Invalid
OAuth token. The provided token was not found or is malformed."}}
Persists after /logout & /login, deleting credential from macOS keychain and running /login, closing and restarting terminal. /doctor reports no issues, the npm package is up to date. I am still a Max plan subscriber and claude works fine in the Desktop and web app. Many others are reporting this issue on Twitter, Reddit, and Github.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.44
- Feedback ID: 4d1d806a-d832-4893-a49e-8db1735f85d2
Errors
{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}This issue has 13 comments on GitHub. Read the full discussion on GitHub ↗