[BUG] Can't paste auth token into the CLI app, so can't auth.
Resolved 💬 18 comments Opened Apr 13, 2026 by hank Closed Apr 15, 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?
/login
copy url
paste in browser
Authorize
Get code to paste
Can't paste. Tried on 2 different machines, both of which were working before for this process.
Nothing occurs on screen when I try to paste. I can switch to another tmux pane and paste. I can paste in the CLI without running claude, and I can even paste into the claude normal prompt, just not the code I get from the SSO final page.
What Should Happen?
Pastes the code and lets me auth.
Error Messages/Logs
Steps to Reproduce
/login
copy url
paste in browser
Authorize
Get code to paste
Can't paste. Tried on 2 different machines, both of which were working before for this process.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.1.105
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
Using Gnome-Terminal and Tabby has the same behavior.
18 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
same here, on WSL
Same issue with WSL.
Same here!
Trick is to connect on a device that have the access to a browser and then copy credentials.json into the one that can't connect
You can even ask Claude to do it for you if you have access through ssh
same here in ubuntu
Same here, WSL + ubuntu. Overall paste works, but not for the token prompt after /login.
Same here with WSL2 + Ubuntu. This blocks the usage completely.
I had the same problem on Ubuntu's Gnome-Terminal and Ghostty with Claude Code version 2.1.107. I reverted to version 2.1.104 and I was able to paste my token normally.
Same WSL
claude install 2.1.104 - that worked for me. I'm back into Claude now. Thanks!
Also, ran into this. Debian Linux, bash, Claude Code 2.1.107. Cannot paste Auth code into the terminal window. Reverted back to 2.1.104 as mentioned above, and this was a valid work around.
Yes, going to 2.1.104 is a valid workaround.
Root cause isolation: bug is in ink's input layer, not in Docker/SSH/terminal/Node.js
I spent several hours systematically isolating this. Sharing the results since none of the duplicate issues have identified exactly where the bug lives.
Layer-by-layer test (inside
docker run -ti debian:latest)| Layer | Paste works? |
|---|---|
|
bash/read -rinside Docker | Yes ||
catinside Docker | Yes || Bracketed paste sequences (
\e[200~...\e[201~) through Docker PTY | Yes || Node.js
process.stdin.setRawMode(true)+on('data')inside Docker | Yes || Claude Code inside Docker | No |
| Claude Code on host (macOS) | N/A — browser auto-authenticates, paste not needed |
Node.js raw stdin proof
Pasting a 24-character string →
got 24 bytes. Node.js receives the paste data correctly through Docker's PTY. The data is lost somewhere betweenprocess.stdinand ink's input handler.What was ruled out
\e[200~...\e[201~(verified withprintf "\e[?2004h"; cat)xterm,xterm-256color,xterm-ghostty--detach-keys=""CLAUDE_CODE_NO_FLICKER— no effectdocker execbypassing everythingdocker run -it debian bashhandles paste fineMinimal Docker reproduction
Regression data from duplicate issues
Multiple reporters have narrowed the regression window:
Duplicate issues (all the same root cause)
about 12 hours ago all of my Claude Code sessions stopped working, so I gave up using it. A few hours later I found this thread and I was running 2.1.104 which fixed the issue, until recently when I opened a new shell and found it doesn't work.
Turns out Claude Code auto updated itself. So since Anthropic clearly doesn't test their code before they ship it I'm gonna make the call that its best to not update the Claude Code scripts. I was able to do this across all of my servers by running: DISABLE_AUTOUPDATER=1
looks like Anthropic is only making the problem worse now, neither v2.1.108 or v2.1.104 allow authentication. Nothing like paying $200 a month for a product that won't let you use it.
Duplicate of #47669 — same bug: paste into the
/login"Paste code here" prompt is silently rejected (likely bracketed-paste handling). Closing in favor of that issue; please subscribe there for updates.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.