Dev Tools · 1h ago
Fix Claude in Chrome on WSL2: CDP with a11y snapshots
Claude Code's Chrome extension fails on WSL2 because native messaging hosts can't cross the Windows-Linux boundary. A workaround uses Chrome DevTools Protocol with accessibility tree snapshots, cutting token costs from thousands per screenshot to hundreds. The setup requires a single Chrome instance on port 9222 with mirrored networking and two CDP clients sharing tabs.
Meridian48 take
The workaround is clever but highlights a persistent integration gap between WSL2 and Windows-native browser automation tools.
Read the full reporting
Claude in Chrome doesn't work on WSL2. Here's the fix: one logged-in Chrome, two drivers, cheap tokens →
DEV Community
wsl2chrome-devtools-protocol