You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tools/browser.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,7 +244,9 @@ main model can read the screenshot directly.
244
244
<Accordiontitle="Ports and reachability">
245
245
246
246
- Control service binds to loopback on a port derived from `gateway.port` (default `18791` = gateway + 2). Overriding `gateway.port` or `OPENCLAW_GATEWAY_PORT` shifts the derived ports in the same family.
247
-
- Local `openclaw` profiles auto-assign `cdpPort`/`cdpUrl`; set those only for remote CDP. `cdpUrl` defaults to the managed local CDP port when unset.
247
+
- Local `openclaw` profiles auto-assign `cdpPort`/`cdpUrl`; set those only for
248
+
remote CDP profiles or existing-session endpoint attach. `cdpUrl` defaults to
249
+
the managed local CDP port when unset.
248
250
-`remoteCdpTimeoutMs` applies to remote and `attachOnly` CDP HTTP reachability
249
251
checks and tab-opening HTTP requests; `remoteCdpHandshakeTimeoutMs` applies to
250
252
their CDP WebSocket handshakes.
@@ -298,7 +300,7 @@ main model can read the screenshot directly.
298
300
-`color` (top-level and per-profile) tints the browser UI so you can see which profile is active.
299
301
- Default profile is `openclaw` (managed standalone). Use `defaultProfile: "user"` to opt into the signed-in user browser.
300
302
- Auto-detect order: system default browser if Chromium-based; otherwise Chrome → Brave → Edge → Chromium → Chrome Canary.
301
-
-`driver: "existing-session"` uses Chrome DevTools MCP instead of raw CDP. Do not set `cdpUrl` for that driver.
303
+
-`driver: "existing-session"` uses Chrome DevTools MCP instead of raw CDP. It can attach through Chrome MCP auto-connect, or through `cdpUrl`when you already have a DevTools endpoint for the running browser.
302
304
- Set `browser.profiles.<name>.userDataDir` when an existing-session profile should attach to a non-default Chromium user profile (Brave, Edge, etc.). This path also accepts `~` for your OS home directory.
303
305
304
306
</Accordion>
@@ -687,6 +689,9 @@ What to check if attach does not work:
687
689
- the target Chromium-based browser is version `144+`
688
690
- remote debugging is enabled in that browser's inspect page
689
691
- the browser showed and you accepted the attach consent prompt
692
+
- if Chrome was started with an explicit `--remote-debugging-port`, set
693
+
`browser.profiles.<name>.cdpUrl` to that DevTools endpoint instead of relying
694
+
on Chrome MCP auto-connect
690
695
-`openclaw doctor` migrates old extension-based browser config and checks that
691
696
Chrome is installed locally for default auto-connect profiles, but it cannot
0 commit comments