[BUG] Claude in Chrome silently drives a browser on another computer when it's the only one connected
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude Code ran Claude in Chrome actions in a Chrome browser on a different computer, without any prompt or notice.
Setup:
- Claude Code on a Mac.
- The Claude in Chrome extension signed in to the same Claude account in Chrome on that Mac and in Chrome on a separate Windows PC.
What happened:
- When a browser task started, only the Windows PC's Chrome was connected. The Mac's Chrome connected about 3 minutes later.
- For about 13 minutes, Claude navigated, ran JavaScript and read pages in the Windows PC's Chrome, including pages where that browser was signed in to my accounts.
- Claude Code showed nothing to say the browser was on another computer.
- The only sign was Chrome's "Claude started debugging this browser" banner on the Windows PC, which nobody was looking at. I found out only because no tabs appeared on the Mac.
What list_connected_browsers returned afterwards:
- Browser 1: macOS,
isLocal: true - Browser 2: Windows,
isLocal: false,inUse: true
Contributing problems:
- No prompt with one connected browser. The picker appears only when more than one browser is connected and none is selected. A single connected browser is used silently, wherever it runs.
isLocalis unreliable. The tool's own description calls it "its OS matches this computer's, a weak hint". It was right here only because the two computers run different operating systems. A second Mac would show as local. A comment on #91620 reportsisLocal: truefor a browser on another computer.- The docs don't mention other computers. https://code.claude.com/docs/en/chrome says the extension must be signed in to the same account and that you choose when several browsers are connected. It never says a connected browser can be on a different computer, so most users won't know this is possible.
- No local-only option. In 2.1.322 the bridge URL is
wss://bridge.claudeusercontent.com. It isws://localhost:8765only when the developer flagsLOCAL_BRIDGE/USE_LOCAL_OAUTHare set. All control goes through the cloud bridge, and a user can't limit it to browsers on the same computer.
Why it matters: any Claude Code session on the account, on any computer, can act in every connected Chrome with that browser's signed-in sessions. The user isn't watching that screen and gets no notice. The same applies to a session steered by prompt injection.
What Should Happen?
- Before the first action in a browser that isn't on this computer, Claude Code asks for confirmation. It decides this with a reliable check, not an OS match. For example, it could check whether that browser's native host is on this computer.
list_connected_browsersand/chrome→ "Select browser…" show which computer each browser is on, by device name or hostname.- Claude Code shows a visible notice while browser actions run on another computer.
- A setting limits Chrome control to browsers on the same computer.
- The Chrome docs state that any Chrome signed in to the extension with your account, on any computer, can be controlled. They also explain how to stop that: sign out of the extension on that computer.
Error Messages/Logs
None. Claude Code showed no error or warning.
Steps to Reproduce
- Install Claude in Chrome on two computers, A and B, and sign in to the same Claude account on both.
- Make sure only B's Chrome is connected: Chrome closed on A, or started after B.
- On A, start Claude Code with Chrome integration and ask for any browser action, such as opening a web page.
- The action runs in B's Chrome. Claude Code on A shows no prompt or notice.
- Optional: with both computers on the same OS, call
list_connected_browsers. Both browsers showisLocal: true.
Claude Model
Opus
Is this a regression?
I don't know
Claude Code Version
2.1.322 (Claude Code)
Platform
Anthropic API
Operating System
macOS (macOS 27.0.1). The other computer runs Windows.
Terminal/Shell
Other
Additional Information
Related:
- #88057: browser selection is account-wide, so one session moves other sessions.
- #91620: connected browsers can't be told apart. One comment covers
isLocaland other computers. - #63300: closed docs issue about browser selection.
I encountered the same issue with Claude Code on two computers. Browser actions ran on the wrong machine.
The likely cause is account-level routing through the cloud bridge and @ant/claude-for-chrome-mcp, although this needs maintainer confirmation.
Suggested fixes:
- Make
select_browsersession-specific (#88057). - Fail closed instead of silently switching computers.
- Add an enforced
CLAUDE_CHROME_LOCAL_ONLYoption. - Use verified machine identity rather than
isLocal. - Show the target computer in
/chromeand require consent for remote access. - Detect duplicate
bridgeDeviceIdregistrations (#103129).
A PreToolUse hook could temporarily block browser tools unless the expected device is verified. However, it cannot guarantee the final destination if bridge routing remains account-wide.
The permanent fix should be session-scoped, fail-closed routing.
Same fault here, with two additions.
1. It also happens when the local browser IS connected and flagged. Two Macs, one Claude account, Claude in Chrome connected on both. From a Claude Code session in the desktop app on Mac A, list_connected_browsers returns (ids shortened):
[{"deviceId":"4002…","name":"Browser 1","osPlatform":"macOS","isLocal":true,"inUse":true},
{"deviceId":"672f…","name":"Browser 2","osPlatform":"macOS","isLocal":true,"onThisComputer":true}]
followed by: 2 browsers are connected; "Browser 1" … is the one in use for this session. No question is needed unless the user wants a different browser.
So the entry carrying onThisComputer: true is not the default; the session is pointed at the browser on Mac B and told not to ask. Reproduced twice, about 30 minutes apart, on 19 Nov 2026. The names "Browser 1" / "Browser 2" swapped between the two calls.
2. It happens in Cowork as well as Claude Code. Three times in five days a Cowork chat (desktop app on Mac A) built shopping carts or opened tabs in Chrome on Mac B and reported them as done "in Chrome". In two of those the Mac B browser was the only one listed, with no onThisComputer field at all.
Expected: when an entry has onThisComputer: true, default to it. When none does, do not drive a remote browser without telling the user which computer it is on.
Extension 1.0.107 on Mac A, 1.0.93 on Mac B, Chrome 157.0.8103.79 on both, macOS.