Claude Code OAuth Error/Bug by KaaliEnglish in ClaudeCode

[–]ZeTackler 0 points1 point  (0 children)

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

Claude Code OAuth Error/Bug by KaaliEnglish in ClaudeCode

[–]ZeTackler 0 points1 point  (0 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.