Claude Code responding with 401 across multiple machines even though login flow (Max plan), desktop, web apps work.

Status Closed — duplicate
Maintainer reply None cached
Activity 13 comments · opened Jul 10, 2025 · 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.\"}}

View original on GitHub ↗

13 Comments

tviniciusas · 1 year ago

same issue here

linshuboy · 1 year ago

me too

Whale0928 · 1 year ago

same issue too

CLOUDoort · 1 year ago

me too

col000r · 1 year ago

and me too

johnfelixespinosa · 1 year ago

+1

bobbykoritala · 1 year ago

Same issue

thehe · 1 year ago

+1

ghost · 1 year ago

I've been having this issue starting today.

ellie-wiseai · 1 year ago

me too

mae-commits · 1 year ago

me toooo

nathancatania · 1 year ago

Rollback to version 1.0.43. This fixed it for me.

nathan@nebula ~ % claude install 1.0.43
github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.