[BUG] Claude in Chrome extension rewrites Claude Code OAuth redirect_uri, causing login timeout on Windows
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?
The "Claude in Chrome (Beta)" Chrome extension rewrites claude.ai URLs to claude.com, which changes the OAuth redirect_uri from http://localhost:{port}/callback to https://platform.claude.com/oauth/code/callback. This prevents Claude Code from receiving the OAuth callback, resulting in a 15-second timeout.
What Should Happen?
Claude Code should complete OAuth login successfully regardless of whether the Claude in Chrome extension is enabled. The extension should not rewrite the OAuth authorization URL's redirect_uri parameter.
Error Messages/Logs
OAuth error: timeout of 15000ms exceeded
CLI displays URL with redirect_uri=http://localhost:6573/callback but browser opens with modified URL: redirect_uri=https://platform.claude.com/oauth/code/callback
Steps to Reproduce
- Have "Claude in Chrome (Beta)" extension enabled in Chrome (default browser)
- Run
claude /loginin PowerShell on Windows - CLI displays URL with
redirect_uri=http://localhost:6573/callback - Browser opens with modified URL:
redirect_uri=https://platform.claude.com/oauth/code/callback - Click Authorize → browser shows "You're all set up for Claude Code"
- CLI times out:
OAuth error: timeout of 15000ms exceeded
Root cause: The Claude in Chrome extension rewrites claude.ai → claude.com URLs, changing the redirect_uri parameter.
Workaround: Disable the "Claude in Chrome (Beta)" extension before running claude /login.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.92 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗