[BUG] login with pasting auth code doesn't work
Resolved 💬 47 comments Opened Apr 13, 2026 by shykwon Closed Apr 16, 2026
💡 Likely answer: A maintainer (ashwin-ant, collaborator)
responded on this thread — see the highlighted reply below.
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I am running claude in an SSH terminal, and I cannot paste the authentication code into the 'Paste code here' prompt. Ctrl+V (or Cmd+V) does not work. I have tried right-clicking, but it still fails.
What Should Happen?
I am running claude in an SSH terminal, and I cannot paste the authentication code into the 'Paste code here' prompt. Ctrl+V (or Cmd+V) does not work. I have tried right-clicking, but it still fails.
Error Messages/Logs
.
Steps to Reproduce
-> /login
-> copy code
-> paste it
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.105
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
PowerShell
Additional Information
_No response_
47 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I got around it by using this in a PowerShell window (replace
your-code-herewith the code from the browser, then quickly click back on the WSL terminal window):you are genius
I’m also hitting this on Claude Code 2.1.105, and in my case it is not only a paste problem.
The login prompt itself gets interrupted while I am entering the auth code.
What happens:
/loginLogin interrupted❯prompt instead of the login promptWhat I already tried:
SendKeyswith the full code at onceSendKeyscharacter-by-character with a short delay between characters{ENTER}separately after the code was enteredExample of what I tried in PowerShell:
Start-Sleep -Seconds 5; Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait("...code...")Add-Type -AssemblyName System.Windows.Forms$code = "...code..."Start-Sleep -Seconds 5foreach ($ch in $code.ToCharArray()) { [System.Windows.Forms.SendKeys]::SendWait($ch); Start-Sleep -Milliseconds 25 }[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")So on my side this is not just clipboard paste failing — the login input session itself is being terminated mid-input.
Seeing the same issue here too on MacOS. Able to type in the field but cannot paste.
Seeing the same issue here too on Ubuntu.
(Linux vbm 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux)
Able to type in the field but cannot paste.
Workaround for login if your are using tmux:
tmux send-keys -t vwt-ssd:5 'claude' C-m
... some operation and url pop-up ....
... use url get the auth code ...
tmux send-keys -t vwt-ssd:5 'the auth code' C-m
Hope this helps !
Solved by rolling back to an earlier version -
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.89thanks, that worked for me :)
Also running into this. Rollback suggested by @JoshFinlayAU worked for me!
Same issue on Raspberry PI OS - can't paste
Same issue on Ubuntu, unable to login
THANK YOU!
2.1.107, same problem. Rollback worked.
...but how did this ever rollout??
Same issue, it seems is globally
Why do I feel like this isn't a bug but more hostility from Anthropic against users?
I have two Pro accounts. I don't need Pro Max. Is this designed to force me to upgrade?
I tried many ideas found in the bug reports, but only this one worked for me: claude install 2.1.104
same both on MacOS, and in my debian based devcontainers. rollback is the only possible solution so far, tried every trick in the book no luck
I have Enterprise account, what exactly should I upgrade to? No, this is not hostility but a stupid bug.
The rollback to 2.1.89 solved it for me:
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.89
Fixed by rollback.
There should be a stable version that is a few days behind the bleeding edge version. I shouldn't have to waste time with this kind of thing. Wasted a lot of time on this.
Same issue for me, had to downgrade to 104
same issue here
If you’re running WSL, this workaround should get you sorted:
Execute these commands in your WSL terminal:
sudo apt update && sudo apt install -y wsluecho 'export BROWSER=wslview' >> ~/.bashrcsource ~/.bashrcclaude/loginNote: On legacy Ubuntu versions, you’ll need to run
sudo add-apt-repository ppa:wslutilities/wslubefore installing.Credits: JonaPlaz
same
Same, rolling back to 104 worked
same issue
same here
+1 same issue, seems to be cross-platform, can reproduce on macOS, WSL + Windows Terminal, and powershell. 2.1.89 works.
lol claude code is really becoming a joke at this point
what's even more amazing is that every time you logout you have to re-install the old version again because it automatically updates back to the broken version.
is this a bug or is this enshittification at play?
am on Arch linux and facing the same issue
Same issue here
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.101
last stable version
I also found an issue, that if you try to paste back the key manually, that if the key contains
n, it will immediately cancel the login (even typing a singlenin the prompt will cancel it)I was able to rollback using claude codes build in installer
Running Ubuntu 24.04 in a docker container. Pasting was broken. Rolling back to 2.1.101 fixed my problem.
Same issue here on MacOS
Same issues in wsl. Can't paste. Tyring to type the code, got interrupted.
Same issue in x86 linux
if you can confirm this, absolutely open a bug ticket for it, and not leave here as a comment cause they will never know about it.
I used this and it works
This is a ridiculous bug, but it seems (at least on Windows) I was able to get this to work by copying the code, going back to the HA window, clicking to focus, just to be sure, and then using ctrl+shift+v to paste
Try shift+insert instead of strg+v! worked for me
BTW: Claude Chat found the way: Echte Lösung: Der Login-Flow erzeugt eine URL. Du öffnest sie im Browser, bekommst den Code — und kannst ihn direkt per WSL-Clipboard reinschreiben:
bash# In WSL, wenn du beim Code-Prompt bist:
Einfach den Code in die WSL-Zwischenablage legen und mit Shift+Insert einfügen
Shift+Insert statt Ctrl+V — das ist der klassische Linux-Paste-Shortcut im Terminal. Hast du das schon probiert?
This is a duplicate of #47699, which was fixed as of version 2.1.108.
---
_Generated by Claude Code_
What? You’re closing it as a duplicate of itself?
<img width="1125" height="425" alt="Image" src="https://github.com/user-attachments/assets/74c2f16e-97c5-4c4b-91e1-1f38127389a5" />
@jmaddington This is #47669, that's #47699 😄
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.