Windows OAuth authentication completes in browser but never returns code to terminal

Resolved 💬 3 comments Opened Jan 16, 2026 by Brasus Closed Jan 20, 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?

OAuth flow completes successfully in browser (shows "You're all set up for Claude Code") but no authorization code is displayed or returned to the terminal. Terminal remains stuck at "Paste code here if prompted >" indefinitely. Tried both "Claude account with subscription" and "Anthropic Console account" login methods — same result with both.

What Should Happen?

After clicking "Authorize" in the browser, one of the following should happen:

The terminal should automatically detect the successful authorization and proceed to the Claude Code prompt, OR
The browser should display an authorization code that the user can copy and paste into the terminal

Either way, the user should end up at an interactive Claude Code session ready to use.
Error Messages/Logs:
No error messages displayed. Terminal simply hangs at "Paste code here if prompted >" after browser shows success message.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce:

Open PowerShell or VS Code terminal on Windows
Run claude
Select "1. Claude account with subscription"
Browser opens to authorization page
Click "Authorize"
Browser shows "Build something great - You're all set up for Claude Code"
Return to terminal — still stuck at "Paste code here if prompted >"
No code was ever displayed in browser to copy

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Claude Code Version: 2.1.9

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

Using Max subscription ($100/month)
Cleared ~/.claude and ~/.claude.json, same issue persists
Tried multiple browsers (Edge, Chrome)
Home network, no corporate firewall/proxy

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗