Skip to content

Commit 65c74f7

Browse files
shrey150claude
andcommitted
docs(cli): update CDP instructions to use chrome://inspect method
Replace the `google-chrome --remote-debugging-port=9222` instructions with the newer chrome://inspect/#remote-debugging approach per reviewer feedback, since the flag doesn't work with the default data dir. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6661e98 commit 65c74f7

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

packages/cli/README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,16 +284,21 @@ browse --session personal open https://twitter.com
284284
285285
Connect to an existing Chrome instance:
286286
287-
```bash
288-
# Start Chrome with remote debugging
289-
google-chrome --remote-debugging-port=9222
287+
To make your Chrome discoverable:
290288
291-
# Option 1: Persistent session (recommended) — daemon stays attached
292-
browse env local 9222
289+
1. Open `chrome://inspect/#remote-debugging`
290+
2. Check the box **"Allow remote debugging for this browser instance"**
291+
3. Re-run the CLI and it will auto-connect!
292+
293+
For more information, see the [Chrome DevTools docs](https://developer.chrome.com/blog/chrome-devtools-mcp-debug-your-browser-session).
294+
295+
```bash
296+
# Auto-discover Chrome with remote debugging enabled
297+
browse env local
293298
browse open https://example.com
294299
295-
# Option 2: One-shot bypass (no daemon, per-command)
296-
browse --ws 9222 open https://example.com
300+
# Or target a specific port / WebSocket URL
301+
browse env local 9222
297302
browse --ws ws://localhost:9222/devtools/browser/... open https://example.com
298303
```
299304

0 commit comments

Comments
 (0)