[BUG] Can't get authentication working under WSL
Status Fixed / completed
Maintainer reply ✓ Yes — ant-kurt
Workaround ✓ Mentioned in thread ↓
Activity 5 comments · opened Apr 25, 2025 · closed Jul 21, 2025
💡 Likely answer: A maintainer (ant-kurt, collaborator)
responded on this thread — see the highlighted reply below.
Environment
- WSL2 / Ubuntu 24
- 0.2.81 (Claude Code)
Bug Description
Browser can't be launch, so the CLI gives a URL. Navigate to the URL and copy the auth code to the terminal, after following error is shown:
OAuth error:
Press Enter to retry.
5 Comments
I had the same issue using Windows 10 and WSL / Ubuntu.
!Image
In the screen above, where the cursor is you need to hit
CTRL+Vthen right-click with the mouse where that cursor was () it disappeared for me after CTRL+V).Took me a while to figure this out. Not sure if this is how it's intended to work, or simply a workaround. Nonetheless it logged me in. It was the first time I was able
Same issue
Should be able to paste the code with a right-click after copying it - let me know if this isn't working for you.
solved issue.
This was happening while running
claudefirst time without mode. But running likeclaude --model claude-opus-4worked for me.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.