[BUG] Claude in Chrome extension rewrites Claude Code OAuth redirect_uri, causing login timeout on Windows

Resolved 💬 2 comments Opened Apr 6, 2026 by yikeike-svg Closed May 17, 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?

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

  1. Have "Claude in Chrome (Beta)" extension enabled in Chrome (default browser)
  2. Run claude /login in PowerShell on Windows
  3. CLI displays URL with redirect_uri=http://localhost:6573/callback
  4. Browser opens with modified URL: redirect_uri=https://platform.claude.com/oauth/code/callback
  5. Click Authorize → browser shows "You're all set up for Claude Code"
  6. CLI times out: OAuth error: timeout of 15000ms exceeded

Root cause: The Claude in Chrome extension rewrites claude.aiclaude.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_

View original on GitHub ↗

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