Skip to content

Commit efa1204

Browse files
shrey150claude
authored andcommitted
docs: restore direct wss://connect.browserbase.com URL
Browserbase exposes a direct WebSocket connect endpoint that auto-creates a session, similar to how Browserless works. Simplified the section to use this static URL pattern instead of requiring manual session creation via the API. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 9a4610c commit efa1204

File tree

1 file changed

+7
-38
lines changed

1 file changed

+7
-38
lines changed

docs/tools/browser.md

Lines changed: 7 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,9 @@ Notes:
200200

201201
[Browserbase](https://www.browserbase.com) is a cloud platform for running
202202
headless browsers. It provides remote CDP endpoints with built-in CAPTCHA
203-
solving, anti-bot stealth mode, and residential proxies.
204-
205-
Unlike Browserless (which exposes a static CDP endpoint), Browserbase requires
206-
you to **create a session** first via their API — each session returns a unique
207-
`connectUrl` that you then set as the `cdpUrl` in your OpenClaw profile.
203+
solving, anti-bot stealth mode, and residential proxies. You can point an
204+
OpenClaw browser profile at Browserbase's connect endpoint and authenticate
205+
with your API key.
208206

209207
### Getting started
210208

@@ -213,26 +211,11 @@ you to **create a session** first via their API — each session returns a uniqu
213211
monthly usage.
214212
2. **Find your credentials** on the
215213
[Overview dashboard](https://www.browserbase.com/overview) — copy your
216-
**API Key** and **Project ID** from the right-hand panel.
217-
218-
### Creating a session
219-
220-
Create a session via the Browserbase API to get a CDP connect URL:
221-
222-
```bash
223-
curl --request POST \
224-
--url "https://api.browserbase.com/v1/sessions" \
225-
--header "Content-Type: application/json" \
226-
--header "x-bb-api-key: $BROWSERBASE_API_KEY" \
227-
--data '{ "projectId": "'$BROWSERBASE_PROJECT_ID'" }'
228-
```
229-
230-
The response includes a `connectUrl` field — a WebSocket CDP endpoint for that
231-
session. You must connect within **5 minutes** or the session will time out.
214+
**API Key** from the right-hand panel.
232215

233216
### Profile setup
234217

235-
Set the `connectUrl` from the session response as `cdpUrl` in your profile:
218+
Point a profile at Browserbase's connect endpoint with your API key:
236219

237220
```json5
238221
{
@@ -243,35 +226,21 @@ Set the `connectUrl` from the session response as `cdpUrl` in your profile:
243226
remoteCdpHandshakeTimeoutMs: 5000,
244227
profiles: {
245228
browserbase: {
246-
cdpUrl: "<CONNECT_URL_FROM_SESSION_RESPONSE>",
229+
cdpUrl: "wss://connect.browserbase.com?apiKey=<BROWSERBASE_API_KEY>",
247230
color: "#F97316",
248231
},
249232
},
250233
},
251234
}
252235
```
253236

254-
Since each session produces a new `connectUrl`, you will need to update the
255-
`cdpUrl` value each time you create a new session.
256-
257-
### Environment variables
258-
259-
Store your credentials in environment variables instead of committing them to
260-
config:
261-
262-
```bash
263-
export BROWSERBASE_API_KEY="your-api-key"
264-
export BROWSERBASE_PROJECT_ID="your-project-id"
265-
```
266-
267237
### Notes
268238

239+
- Replace `<BROWSERBASE_API_KEY>` with your real Browserbase API key.
269240
- The free tier allows one concurrent session and 60 minutes per month. Paid
270241
plans offer higher concurrency and usage limits.
271242
- Browserbase sessions include automatic CAPTCHA solving and anti-bot stealth
272243
by default — no extra configuration needed.
273-
- Sessions can be monitored live at
274-
`https://www.browserbase.com/sessions/<SESSION_ID>`.
275244
- See the [Browserbase docs](https://docs.browserbase.com) for full API
276245
reference, SDK guides, and integration examples.
277246

0 commit comments

Comments
 (0)