- Sessions cost money while they run.
sessions.createstarts a cloud browser billed by the minute; it runs until itstimeout, or untilsessions.updatesetsstatus: "REQUEST_RELEASE". Both aredestructive. Connect over CDP with the session’sconnectUrl, or opensessions.debugfor live view URLs. - Logins and state.
contexts.*keep cookies and storage between sessions;secrets.*hold credentials the browser fills in (encrypt them withsecrets.keypairfirst);navigationPolicies.*limit where a session can go. - Recordings.
sessions.replays.getlists a session’s pages;sessions.recordingDownloads.createasks for MP4s, thensessions.recordingDownloads.listshows their status and download links. - Functions and agents.
functions.invokeruns a deployed Function andagents.runs.createstarts an agent run; both spend compute and aredestructive. - Fetch and search.
fetch.pagereturns a page’s content without a full session andsearch.websearches the web; both are metered reads. - Webhooks.
webhooks.createregisters an endpoint and returns its signing secret once. Browserbase signs deliveries with Standard Webhooks (webhook-id,webhook-timestamp,webhook-signature); the plugin verifies them with that secret for the Function invocation and build events.
- 76 typed API operations
- 7 incoming webhook event types
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Browserbase API key before the first call: More: API Key
pnpm corsair setup --plugin=browserbase --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
List browser sessionsWebhooks
This plugin registers 7 webhook event types. Configure the provider to POST to your Corsair HTTP handler, then usewebhookHooks on the plugin factory.
See Webhooks for every event path and payload shape, and Webhooks concept for routing.
What’s next
API reference
Every
browserbase.api.* operation with input and output types.Webhooks
Event paths, payloads, and
webhookHooks examples.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.