claude-code - 💡(How to fix) Fix Claude-in-Chrome extension not connecting to Claude Code (accounts match, handshake never completes) [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52559Fetched 2026-04-24 06:03:56
View on GitHub
Comments
2
Participants
2
Timeline
8
Reactions
0
Timeline (top)
labeled ×4commented ×2mentioned ×1subscribed ×1

The Claude-in-Chrome browser extension does not connect to Claude Code CLI despite accounts matching on both sides.

Root Cause

The Claude-in-Chrome browser extension does not connect to Claude Code CLI despite accounts matching on both sides.

RAW_BUFFERClick to expand / collapse

Description

The Claude-in-Chrome browser extension does not connect to Claude Code CLI despite accounts matching on both sides.

Environment

  • Platform: macOS (Darwin 25.4.0)
  • Claude Code model: claude-sonnet-4-6
  • Browser: Google Chrome
  • Extension status: Installed, enabled, beta acceptance completed

Steps to reproduce

  1. Install the Claude-in-Chrome extension from https://claude.ai/chrome
  2. Accept the beta terms when prompted
  3. Log into claude.ai in Chrome with the same Anthropic account used by Claude Code
  4. Open Claude Code CLI
  5. Run /mcp — MCP server reconnects successfully on the Claude Code side
  6. Attempt any mcp__claude-in-chrome__* tool call

Expected behavior

Browser extension connects and browser automation tools become available.

Actual behavior

Every call returns: "Browser extension is not connected. Please ensure the Claude browser extension is installed and running (https://claude.ai/chrome), and that you are logged into claude.ai with the same account as Claude Code."

Additional context

  • Chrome was fully restarted (Cmd+Q) multiple times
  • Extension is enabled in chrome://extensions
  • Extension IS working as a claude.ai sidebar (visible in browser) — it appears to connect to the claude.ai web interface but not to Claude Code CLI
  • Accounts on claude.ai and Claude Code are confirmed to match
  • /mcp reconnect on the Claude Code side completes successfully, but the browser handshake never follows

Contact

[email protected]

extent analysis

TL;DR

The issue may be resolved by verifying the authentication flow between the Claude-in-Chrome extension and the Claude Code CLI, ensuring that the extension is properly configured to connect to the CLI.

Guidance

  • Check the authentication tokens or cookies used by the Claude-in-Chrome extension to ensure they match the expected format and content required by the Claude Code CLI.
  • Verify that the extension is correctly configured to communicate with the Claude Code CLI, including any necessary ports, protocols, or API endpoints.
  • Investigate the handshake process between the extension and the CLI, as the successful /mcp reconnect on the CLI side suggests a potential issue with the subsequent browser handshake.
  • Review the extension's documentation and source code (if available) to understand its expected behavior and connection mechanism with the Claude Code CLI.

Example

No code snippet is provided due to the lack of specific technical details about the authentication or connection mechanisms used by the Claude-in-Chrome extension and the Claude Code CLI.

Notes

The issue may be related to a misconfiguration or an incompatibility between the extension and the CLI, rather than a straightforward technical problem. Further investigation into the authentication and connection mechanisms is necessary to determine the root cause.

Recommendation

Apply workaround: Verify the authentication flow and configuration of the Claude-in-Chrome extension to ensure it matches the expected requirements of the Claude Code CLI, as this is the most likely cause of the issue based on the provided information.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Browser extension connects and browser automation tools become available.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING