At a glance
- Availability: Experimental (how to enable).
- Auth: API key.
- Connection: The key from
BROWSERBASE_API_KEYis sent as theX-BB-API-Keyheader. - Docs: https://docs.browserbase.com/reference/api/create-a-session
Credentials
Set these per environment. See Connect an integration.Setup
- Create a Browserbase account: Sign up at https://www.browserbase.com - the free plan includes browser hours for testing.
- Copy your API key and project ID: In the dashboard, open Settings to find your API key (bb_…) and your default project ID. Each key belongs to a project.
- Store the key: Add it to your .env file as BROWSERBASE_API_KEY=bb_… - requests authenticate with the X-BB-API-Key header.
- Verify access: Run the List Projects tool, then List Sessions. Create Session can omit projectId - it is inferred from the API key.
- Sessions are billed by browser minutes - release sessions you are done with via the Release Session tool
- Driving the browser (navigation, clicks) happens over the session’s CDP connectUrl with Playwright/Puppeteer/Stagehand, not through this REST API
- keepAlive sessions are only available on paid plans
Tools
Example prompts
- List my Browserbase sessions that are currently RUNNING and release any I no longer need.
- Create a new Browserbase session and give me its ID and connection details.