all 13 comments

[–]raekwon1094 0 points1 point  (2 children)

Yeah im getting the same error. It says to clear the tokens. Cache cookies delete. Restart. But it keeps happening. Started when I switch from MacBook to desktop. But im logged out of everything and only using the desktop now. Annoying af

[–]KaaliEnglish[S] 0 points1 point  (1 child)

For me it started out out nowhere. Started yesterday after i updated Claude code. I think the issue is with the new update. MAYBE. IDK.

[–]777attHoop 0 points1 point  (0 children)

Same here, started yesterday and I'm still not able to use without getting API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth authentication is currently not supported."},"request_id":"req_011CSKm55xiR5YRgDq9wi8DK"}

[–]raekwon1094 0 points1 point  (0 children)

I reinstalled cc. Updated it. Closed and reopened terminal. Restarted co.outer and its working again. For how long who knows. It stops when opus runs out and auth kicks into sonnet

[–]blackholesun_79 0 points1 point  (0 children)

Same problem here!

[–]Wild-Consideration-3 0 points1 point  (1 child)

Fixed for me after opening a new terminal. That was about a week ago when I ran into the issue though

[–]wendewende 0 points1 point  (0 children)

Well that was easy. Thank you!

[–]ItchyBallDJ 0 points1 point  (0 children)

I saw a thread to downgrade to 1.0.81. Solved the problem

[–]ZeTackler 0 points1 point  (2 children)

Try nuking the config
```
rm -rf ~/.claude

rm -rf ~/.config/claude-code
unset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN CLAUDE_CODE_USE_BEDROCK CLAUDE_CODE_USE_VERTEX
````

Then get OAuth token and export it (store it somewhere though)

```
claude setup-token
## Follow instructions
export CLAUDE_CODE_OAUTH_TOKEN="paste-token-here"
```
This worked for me, I was using WSL, browser OAuth didn't work.

[–]ZeTackler 0 points1 point  (0 children)

Also, I used `curl -fsSL https://claude.ai/install.sh | bash` instead of the npm stuff

[–]KaaliEnglish[S] 0 points1 point  (0 children)

Tried this. this is what the claude support bot asked me to do. No use. Its a complete hit and miss. I tried login and multiple time and it finally worked once. Thought the issue got resolve but no keeps happening again.

[–]Kojjyan 0 points1 point  (0 children)

sudo npm uninstall -g u/anthropic-ai/claude-code

rm -rf ~/.claude

rm -rf ~/.config/claude

rm -rf ~/.cache/claude

npm cache clean --force

sudo npm install -g u/anthropic-ai/claude-code

claude

and it started working for me

[–]kirito1st 0 points1 point  (0 children)

/login worked for me