WSL2 Blocks Claude in Chrome: Developer Shares CDP Workaround to Cut Token Costs
Claude Code's native Chrome integration does not work on WSL2 because the tool explicitly checks for a WSL environment and refuses to proceed, rather than failing due to a misconfiguration. The root cause is a filesystem mismatch: Claude Code installs its native messaging host as a Linux binary in the Linux filesystem, while Windows Chrome looks for hosts only in the Windows registry. A contradictory changelog entry claiming WSL support was fixed in version 2.1.0 has caused ongoing confusion, with an unresolved documentation issue on the official repository. A developer found that the Chrome DevTools Protocol serves as a functional fallback, but warns that screenshot-based navigation is token-expensive, costing thousands of tokens per page. Using the accessibility tree instead of screenshots significantly reduces token usage, and reusing an already-authenticated browser session avoids repeated login overhead during automated tasks.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in