"[BUG] OAuth code input prompt silently drops paste - code not accepted in Replit shell"
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?
OAuth code input prompt is not accepting paste in Replit shell — paste works fine in the shell itself but nothing appears when pasting into Claude Code's auth prompt. Worked fine previously, broke today.
What Should Happen?
Pasting the OAuth code into the input prompt should work the same way it does in the shell itself — the code should appear (even if partially masked) and be accepted when Enter is pressed. Previously this worked correctly every day for over a year. As of today it has stopped working entirely — nothing appears when pasting, and the code is rejected.
Error Messages/Logs
OAuth error: Invalid code. Please make sure the full code was
copied
Steps to Reproduce
**1. Open Replit shell
- Type claude to start Claude Code
- Follow the login flow and select the OAuth/browser option
- Copy the URL shown in the terminal, paste into local browser
- Authenticate in browser and copy the resulting OAuth code
- Return to Replit shell where Claude Code is waiting for the code
- Attempt to paste the code into the input prompt
- Nothing appears — paste is silently swallowed by Claude Code's input prompt
- Pressing Enter returns "OAuth error: Invalid code"
Note: pasting works fine in the Replit shell itself (confirmed with echo test). The issue is specific to Claude Code's auth input prompt.**
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.107 (Claude Code)
Platform
Other
Operating System
macOS
Terminal/Shell
Other
Additional Information
_No response_
12 Comments
Same problem, thanks
I have the same issue on Windows 11 when I SSH via either cmd or WSL. The URL copies to the clipboard fine when 'c' is pressed but paste doesn't work Ctrl+V Ctrl+shift+V or "right click menu>paste" (keyboard button, right mouse menu seems to be disabled).
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 problem.
Just install a previous version and it works
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.89
Same problem here. Thanks L-earner, that tip about the previous version really helped me out!
@timfulker
Just ran this fix:
sudo curl -fsSL https://claude.ai/install.sh | bash -s -- 2.1.101
claude (to auth, paste worked for me on this version)
then sudo claude update
same here, its not possible to paste in the auth code any more. It used to work, now I cant paste anything into the prompt any more
Duplicate of https://github.com/anthropics/claude-code/issues/47699
2.1.104 works but 2.1.105+ breaks OAuth paste input in Replit's shell
This is a duplicate of #47699, which was fixed as of version 2.1.108.
---
_Generated by Claude Code_
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.