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
docs(browser): document browse env local auto-discovery
Update SKILL.md and REFERENCE.md to reflect new browse env local
behavior: auto-discovers existing Chrome with remote debugging,
--isolated flag, and explicit CDP target (port or URL).
Sister PR to browserbase/stagehand#1886.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Show or switch the browser environment. Without arguments, prints the current environment. With an argument, stops the running daemon and restarts in the specified environment. The switch is sticky — subsequent commands stay in the chosen environment until you switch again or run `browse stop`.
278
278
279
+
`browse env local` auto-discovers an already-running Chrome with remote debugging enabled (scans `DevToolsActivePort` files and probes common ports like 9222). Falls back to launching an isolated browser if no debuggable Chrome is found.
280
+
279
281
```bash
280
282
browse env # print current environment
281
-
browse env local # switch to local Chrome
283
+
browse env local # auto-discover local Chrome, fallback to isolated
284
+
browse env local --isolated # force clean isolated browser (skip discovery)
285
+
browse env local 9222 # attach to CDP target on port 9222
286
+
browse env local ws://host:port/path # attach to explicit CDP WebSocket URL
282
287
browse env remote # switch to Browserbase (requires API keys)
283
288
```
284
289
290
+
`browse status` reports `localStrategy`, `localSource`, `resolvedCdpUrl`, and `fallbackReason` when inlocal mode.
browse status # Check daemon status (includes env)
97
+
browse status # Check daemon status (includes env and local strategy)
96
98
browse env # Show current environment (local or remote)
97
-
browse env local# Switch to local Chrome
99
+
browse env local# Auto-discover local Chrome, fallback to isolated
100
+
browse env local --isolated # Force clean isolated browser (skip auto-discovery)
101
+
browse env local<port|url># Attach to specific CDP target
98
102
browse env remote # Switch to Browserbase (requires API keys)
99
103
browse pages # List all open tabs
100
104
browse tab_switch <index># Switch to tab by index
@@ -154,10 +158,14 @@ Don't switch for simple sites (docs, wikis, public APIs, localhost).
154
158
155
159
```bash
156
160
browse env remote # switch to Browserbase
157
-
browse env local# switch back to local Chrome
161
+
browse env local# switch back to local (auto-discovers existing Chrome)
162
+
browse env local --isolated # force a clean isolated browser
163
+
browse env local 9222 # attach to Chrome on specific port
158
164
```
159
165
160
166
The switch is sticky until you run `browse stop` or switch again.
161
167
168
+
`browse env local` auto-discovers a running Chrome with remote debugging enabled (via `DevToolsActivePort` files and common port probing). If no debuggable Chrome is found, it falls back to launching an isolated browser. Use `--isolated` to skip auto-discovery and always get a clean browser.
169
+
162
170
For detailed examples, see [EXAMPLES.md](EXAMPLES.md).
163
171
For API reference, see [REFERENCE.md](REFERENCE.md).
0 commit comments