[BUG] Chrome extension not connecting to Claude Code 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?
Description:
OS: Windows 11
Claude Code version: 2.1.123
Chrome extension version: 1.0.69
Both Claude Desktop and Claude Code installed
Issue: Running claude --chrome shows "Extension: Installed" but Status remains "Disabled". Reconnecting opens a tab that immediately closes. DevTools shows: WebSocket connection to 'wss://bridge.claudeusercontent.com/chrome/...' failed: WebSocket is closed before the connection is established.
Root cause suspected: The chrome-native-host.exe in AppData\Roaming\Claude\ChromeNativeHost\ appears to only support the Desktop app's cloud bridge. Claude Code on Windows has no separate native host binary, unlike macOS which has ~/.claude/chrome/chrome-native-host.
What Should Happen?
When running "claude --chrome" on Windows with the Claude in Chrome
extension installed (v1.0.69), Claude Code should successfully connect
to the Chrome extension and show Status: Connected. Browser tools like
navigate, screenshot, etc. should work from the Claude Code terminal.
Error Messages/Logs
Status shows "Disabled" even after selecting "Reconnect extension".
Reconnecting briefly opens a Chrome tab that immediately closes.
DevTools console shows: "WebSocket connection to
'wss://bridge.claudeusercontent.com/chrome/...' failed: WebSocket is
closed before the connection is established."
Steps to Reproduce
- Install Claude Desktop app on Windows
- Install Claude Code v2.1.123
- Install Claude in Chrome extension v1.0.69
- Run: claude --chrome in PowerShell
- Type /chrome inside the session
- Select "Reconnect extension"
- Observe tab opens and closes immediately
- Check DevTools service worker console for WebSocket error
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude Code: v2.1.123
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
Both Claude Desktop app and Claude Code are installed simultaneously.
The ~/.claude/chrome/ folder is never created on Windows (unlike macOS).
DevTools service worker console shows: "WebSocket connection to
'wss://bridge.claudeusercontent.com/chrome/...' failed: WebSocket is
closed before the connection is established." The chrome-native-host.exe
in AppData\Roaming\Claude\ChromeNativeHost\ appears to only support the
Desktop app cloud bridge, not Claude Code's local connection.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗