[BUG] Cannot paste auth code into "Paste code here if prompted >" during /login in Dev Container (v2.1.105)

Resolved 💬 57 comments Opened Apr 14, 2026 by kazuyuki-saka Closed Apr 14, 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?

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

  1. Run Claude Code v2.1.105 inside a Dev Container
  2. Run /login and select "Claude account with subscription"
  3. Complete OAuth authorization in the browser
  4. Copy the authorization code displayed in the browser
  5. Attempt to paste the code into "Paste code here if prompted >"
  6. 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_

View original on GitHub ↗

57 Comments

github-actions[bot] · 3 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/47669
  2. https://github.com/anthropics/claude-code/issues/47670

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

nikok6 · 3 months ago

same here, on macos as well

tzioup · 3 months ago

Same.

cientiros · 3 months ago

same, on PC. wtf

zeb1283 · 3 months ago

Same here as well. Also using WSL

CHANGJianshuo · 3 months ago

me,too WSL

amackiewicz · 3 months ago

same here with usual claude for cli

walk-around is just back to previous version

👇

curl -fsSL https://claude.ai/install.sh | bash -s 2.1.104
TomskDiver · 3 months ago

Same here. windows (cmd and powershell). Cannot paste auth code. Ctrl+V or Shift+Insert dont paste code.

jooneyp · 3 months ago

Can't believe I've struggled with this issue hopping btw multiple terminal apps and typing all the codes over 10 times

billiyagi · 3 months ago

same here. my mac & linux pc, using terminal and termius app

i9wa4 · 3 months ago

same here
Terminal in Dev Container (macOS VS Code)
Claude Code v2.1.105

keshavd · 3 months ago

Same issue on "Ubuntu 24.04.4 LTS"

thange-ship-it · 3 months ago

Exact same issue. PLEASE RESOLVE

SriramB-98 · 3 months ago

This may just be the final straw, wtaf

advaricorp · 3 months ago

this is CRAZY is all across the board

darkhut-au · 3 months ago

same here

DongyunZou · 3 months ago

same issue

antonichoudhuri · 3 months ago

same issue

JonaPlaz · 3 months ago

same issue

anotherGoogleFan · 3 months ago

Same here.

I'm using WSL on Windows 11 (25H2, x64).
Claude version: 2.1.107 (Claude Code)

Steps:

  1. Open Windows Terminal
  2. Run:

wsl
npm install -g @anthropic-ai/claude-code@latest
claude update
claude

  1. Start login flow

During the login process, when prompted:
"Paste code here if prompted >"

I'm unable to paste anything into the terminal.

  • Ctrl+V does not work
  • Ctrl+Shift+V does not work
  • Right-click paste does not work
  • Shift+Insert does not work

No input appears and nothing happens.

This makes it impossible to complete OAuth login in WSL.

nguyentruyen98 · 3 months ago

Lol, same with me, I can't paste the key to CMD
Claude v2.1.107

tangz7725 · 3 months ago

same in Mac(Using VS code remote)
Found a solution: use the command npm install -g @anthropic-ai/claude-code@2.1.101 to revert to the older version, which allows to paste the verification code.

chunkiang · 3 months ago

Same here,
Claude Version: 2.1.107
Ubuntu 20.04.3 LTS

You can type in the code manually but it doesn't work.

onaka-yurusugi · 3 months ago

same issue yeah
downgrade helped

tobyhede · 3 months ago

Same issue
Claude Code v2.1.107
OSX: 14.7

Chipsnet · 3 months ago

same here
using wsl

mickaeldanslenowhere · 3 months ago

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

fixerst · 3 months ago

same but the downgrade helped

JonaPlaz · 3 months ago

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.

dan-long-dev · 3 months ago

Same problem here. Rolled back to v2.1.89 for temp fix

DiklaTB · 3 months ago

Same here. On Windows PowerShell. Cannot paste auth code. Ctrl+V or Shift+Insert dont paste code.
Downgrading helped.

sandtreader · 3 months ago

Same (native Linux, Debian and Ubuntu).

Fix was to downgrade to stable (2.1.92)

$ claude install stable

hasanur-rahman079 · 3 months ago

same here, can't able to paste my wsl cli. tried more than 10 times lol

ofer · 3 months ago

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.

thomasboel · 3 months ago

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 🤷

Chipsnet · 3 months ago
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.

it works for me! thanks!

edeo · 3 months ago

Same issue using Claude code in GitHub code spaces

rsnascimento2018 · 3 months ago

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

ls -la ~/.local/share/claude/versions/

You should see something like:

2.1.104
2.1.105
2.1.107

If 2.1.104 isn't there, pick the highest version below 2.1.105 that you do have.

2. Check your current symlink

ls -la ~/.local/bin/claude

It should point to one of the versions in the folder above.

3. Kill any running Claude Code process

pkill -f claude

4. Repoint the symlink to 2.1.104

ln -sf ~/.local/share/claude/versions/2.1.104 ~/.local/bin/claude

5. Disable auto-updates (so it doesn't jump back to 2.1.107)

The old claude config set -g autoUpdates false no longer works. Use the env var instead:

echo 'export DISABLE_AUTOUPDATER=1' >> ~/.bashrc
source ~/.bashrc

(Use ~/.zshrc if you're on zsh.)

6. Verify

claude --version
claude doctor

You should see 2.1.104 and OAuth paste should work again.

Notes

  • Your ~/.claude/ folder (settings, projects, skills, MCP config) is untouched by this — only the executable symlink changes.
  • The stable channel 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).
  • Remove the DISABLE_AUTOUPDATER line from your shell rc file once Anthropic ships a fix.

Tested on Ubuntu 24.04, native install.

antonichoudhuri · 3 months ago

Still doesn't work in 2.1.107

pingtimeout · 3 months ago

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-workaround

2. 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:

tmux send-keys -t claude-code-workaround:0.0 "ABCDEFSjdLC2ynqjQrgqerghqebaa5526WICdAgfgcN123456#JkBI_TYDG94EM35pXA4X_7CP-wedrhgwrthwr6YyoGZzCcPQ" 

Done. Now you can exit claude-code, exit the tmux session and start using claude-code with your normal workflow.

msdrx · 3 months ago

Same here, windows 11 docker sandbox.
Version 2.1.107

bdytx5 · 3 months ago

painful

levfurtado · 3 months ago

do you guys even do code reviews? how do you mess this up?

nikitaeverywhere · 3 months ago

Same here. Please reopen this issue, it's still a bug.

Solved by pinning claude code's version in my devcontainer:

ARG CLAUDE_CODE_VERSION=2.1.104

RUN apt-get update && apt-get install -y --no-install-recommends \ ...
kazuyuki-saka · 3 months ago

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.​​​​​​​​​​​​​​​​

swaminator · 3 months ago

Same here.. Trying to run Claude in a sandbox and I'm not able to paste the code.

shiva16 · 3 months ago

same here, rolled back to 104 from 105 after losing a lot of work , 106 and 107 continues to have that issue

ashwin-ant collaborator · 3 months ago

This should be fixed in 2.1.108

Chiefy91 · 3 months ago

windows:uninstall 2.1.107 and run & ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 2.1.104 in powershell

huydx · 3 months ago

@ashwin-ant using 2.1.109 and nowhere close to being fixed

bdytx5 · 3 months ago

Just downgrade...

npm install -g @anthropic-ai/claude-code@2.1.104

dcook604 · 3 months ago

also having the same issue - downgrade works

2424004764 · 3 months ago
这里也一样,克劳德是负责 cli 的。 环顾四周只是恢复到之前的版本 👇 `` curl -fsSL https://claude.ai/install.sh | bash -s 2.1.104 ``

Solved, the rollback version can be pasted

alinmotogna · 2 months ago

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

Liquidmasl · 2 months ago

still broken, downgrade it is

edit: nvm, still doesnt work on the downgraded version 2.1.104

WicusPretorius · 2 months ago

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.

github-actions[bot] · 2 months 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.