[BUG] `claude auth login` hangs after opening browser, while plain `claude` prompts for pasted auth code
Resolved 💬 4 comments Opened Apr 16, 2026 by TriplEight Closed May 1, 2026
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?
Running claude auth login opened the browser auth URL but then hung in the terminal and never showed Paste code here if prompted.
What Should Happen?
Running plain claude instead opened a browser link and then correctly showed Paste code here if prompted, which allowed login to complete.
claude auth login should either:
- show
Paste code here if prompted, or - complete login automatically after browser approval
Error Messages/Logs
Steps to Reproduce
- Run
claude auth login - Open the provided browser URL on another machine
- Approve access
- Observe that the terminal hangs and never prompts for the auth code
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.111
Platform
Other
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
Environment
- OS: Arch Linux
- Shell/terminal: zsh/bash/fish
- Claude Code version: 2.1.111
- Auth method: Claude subscription login (no
ANTHROPIC_API_KEYset)
Note
This may affect remote/headless or cross-device login flows
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗