[BUG] Can't get authentication working under WSL

Status Fixed / completed
Maintainer reply ✓ Yes — ant-kurt
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.

View original on GitHub ↗

5 Comments

krymer15 · 1 year ago

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+V then 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

elnur-ibr · 1 year ago

Same issue

ant-kurt collaborator · 1 year ago

Should be able to paste the code with a right-click after copying it - let me know if this isn't working for you.

elnur-ibr · 1 year ago

solved issue.

This was happening while running claude first time without mode. But running like claude --model claude-opus-4 worked for me.

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.