[BUG] Cannot paste auth code into "Paste code here if prompted >" during /login in Dev Container (v2.1.105)
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?
After upgrading Claude Code to v2.1.105, the "Paste code here if prompted >" input during /login no longer accepts pasted text. Since I'm running Claude Code inside a Dev Container (where the OAuth callback can't reach the container directly), the manual code-paste flow is the only authentication method available.
This issue has been reproduced across multiple environments. Has anyone else encountered this, or is there an existing bug report?
Environment:
Platform: Dev Container (VS Code)
Auth method: OAuth (Claude subscription) — manual code paste
What Should Happen?
When pasting an OAuth authorization code into the "Paste code here if prompted >" input during /login, the pasted text should be accepted and the authentication flow should complete successfully — as it did in previous versions (confirmed working in v2.1.92 and earlier).
Error Messages/Logs
Steps to Reproduce
- Run Claude Code v2.1.105 inside a Dev Container
- Run /login and select "Claude account with subscription"
- Complete OAuth authorization in the browser
- Copy the authorization code displayed in the browser
- Attempt to paste the code into "Paste code here if prompted >"
- Paste is not accepted / nothing happens
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.101
Claude Code Version
2.1.105
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
57 Comments
Found 2 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
same here, on macos as well
Same.
same, on PC. wtf
Same here as well. Also using WSL
me,too WSL
same here with usual claude for cli
walk-around is just back to previous version
👇
Same here. windows (cmd and powershell). Cannot paste auth code. Ctrl+V or Shift+Insert dont paste code.
Can't believe I've struggled with this issue hopping btw multiple terminal apps and typing all the codes over 10 times
same here. my mac & linux pc, using terminal and termius app
same here
Terminal in Dev Container (macOS VS Code)
Claude Code v2.1.105
Same issue on "Ubuntu 24.04.4 LTS"
Exact same issue. PLEASE RESOLVE
This may just be the final straw, wtaf
this is CRAZY is all across the board
same here
same issue
same issue
same issue
Same here.
I'm using WSL on Windows 11 (25H2, x64).
Claude version: 2.1.107 (Claude Code)
Steps:
wsl
npm install -g @anthropic-ai/claude-code@latest
claude update
claude
During the login process, when prompted:
"Paste code here if prompted >"
I'm unable to paste anything into the terminal.
No input appears and nothing happens.
This makes it impossible to complete OAuth login in WSL.
Lol, same with me, I can't paste the key to CMD
Claude v2.1.107
same in Mac(Using VS code remote)
Found a solution: use the command
npm install -g @anthropic-ai/claude-code@2.1.101to revert to the older version, which allows to paste the verification code.Same here,
Claude Version: 2.1.107
Ubuntu 20.04.3 LTS
You can type in the code manually but it doesn't work.
same issue yeah
downgrade helped
Same issue
Claude Code v2.1.107
OSX: 14.7
same here
using wsl
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 but the downgrade helped
I have a solution that works for me.
WSL workaround when paste is broken during /login
If you're on WSL, have no browser, and can't paste the token, install wslu so WSL can open your Windows browser for
the OAuth flow:
Run these commands in your WSL terminal:
sudo apt update && sudo apt install -y wslu
echo 'export BROWSER=wslview' >> ~/.bashrc
source ~/.bashrc
claude
/login
(On older Ubuntu: sudo add-apt-repository ppa:wslutilities/wslu first.)
The browser will open automatically and the login will complete automatically. Tested on Windows 11 + WSL2 Ubuntu.
Same problem here. Rolled back to v2.1.89 for temp fix
Same here. On Windows PowerShell. Cannot paste auth code. Ctrl+V or Shift+Insert dont paste code.
Downgrading helped.
Same (native Linux, Debian and Ubuntu).
Fix was to downgrade to stable (2.1.92)
$ claude install stable
same here, can't able to paste my wsl cli. tried more than 10 times lol
I want to run in a sandbox and have no way to set which version to install, using sbx which allows you to create a claude sandbox without specifying a version.
If you're running claude in a docker sandbox and experiencing this issue, find an old digest locally if you have one:
docker image ls --digests docker/sandbox-templates.Then use that as the template when creating the sandbox by passing the --template flag:
docker sandbox create ... --template docker/sandbox-templates:claude-code@sha256:[DIGEST] ...I at least cannot find any digests other than latest on the Docker Hub, so here is one I had locally:
ae38f99d258131cd6d4b31a94f297578802104a3d6cbee45436e0bfdef31972d🤷it works for me! thanks!
Same issue using Claude code in GitHub code spaces
Workaround: Downgrade native install to 2.1.104 (OAuth paste broken on 2.1.105+)
Claude Code versions 2.1.105 and above have a bug that prevents pasting the OAuth code from the browser during login. If you're on the native installer, here's how to roll back to 2.1.104 without reinstalling — the native installer keeps previous versions cached locally.
1. Check which versions you have cached
You should see something like:
If 2.1.104 isn't there, pick the highest version below 2.1.105 that you do have.
2. Check your current symlink
It should point to one of the versions in the folder above.
3. Kill any running Claude Code process
4. Repoint the symlink to 2.1.104
5. Disable auto-updates (so it doesn't jump back to 2.1.107)
The old
claude config set -g autoUpdates falseno longer works. Use the env var instead:(Use
~/.zshrcif you're on zsh.)6. Verify
You should see
2.1.104and OAuth paste should work again.Notes
~/.claude/folder (settings, projects, skills, MCP config) is untouched by this — only the executable symlink changes.stablechannel is currently at 2.1.92, which also works if you'd rather use that:claude config set autoUpdaterChannel stable(syntax may vary by version).DISABLE_AUTOUPDATERline from your shell rc file once Anthropic ships a fix.Tested on Ubuntu 24.04, native install.
Still doesn't work in 2.1.107
Workaround: Use tmux for the authentication phase
1. Start a named tmux session
In the workspace of your choice, start a tmux session with
tmux new-session -s claude-code-workaround2. Start claude-code
Go to the OAuth step and copy the OAuth code to your clipboard
3. Enter OAuth code via tmux
In a separate terminal, use tmux to send each character of the OAuth code to your claude-code process as if you typed each character individually:
Done. Now you can exit
claude-code, exit thetmuxsession and start usingclaude-codewith your normal workflow.Same here, windows 11 docker sandbox.
Version 2.1.107
painful
do you guys even do code reviews? how do you mess this up?
Same here. Please reopen this issue, it's still a bug.
Solved by pinning claude code's version in my devcontainer:
This issue has been closed as it was a duplicate of #47669. It seems an Anthropic engineer has been assigned to this problem, so it should be fixed eventually, but please help keep #47669 active to convey the severity of this matter.
Same here.. Trying to run Claude in a sandbox and I'm not able to paste the code.
same here, rolled back to 104 from 105 after losing a lot of work , 106 and 107 continues to have that issue
This should be fixed in 2.1.108
windows:uninstall 2.1.107 and run
& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 2.1.104in powershell@ashwin-ant using 2.1.109 and nowhere close to being fixed
Just downgrade...
npm install -g @anthropic-ai/claude-code@2.1.104
also having the same issue - downgrade works
Solved, the rollback version can be pasted
Copy the authentication code from the website, paste it in a separate terminal (mine is Ubuntu inside WSL), then copy it from there and paste in the "Paste code here if prompted >"
I assume that by pasting into a WSL terminal first and re-copying from there, the text ends up in WSL terminal's own clipboard buffer that's accessible to Claude TUI
still broken, downgrade it is
edit: nvm, still doesnt work on the downgraded version 2.1.104
Hit this same regression. Downgrading to 2.1.104 fixed it (was using brew, so had to uninstall and reinstall via npm: npm install -g @anthropic-ai/claude-code@2.1.104).
Also had to disable the auto-updater to stay on 2.1.104, by adding the following to ~/.claude/settings.json:
{
"env": {
"DISABLE_AUTOUPDATER": "1"
}
}
Context: running on WSL2 Linux, pasting inside Neovim's terminal (sidekick.nvim). Paste works fine in standalone terminals — only broken inside nvim terminal.
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.