Get started with a Playwright Node.js template
Get started with Browserbase and Playwright in Node.js.
Get started with a Playwright Python template
Get started with Browserbase and Playwright in Python.
Get your API key
Your API key and Project ID are displayed in the Dashboard Navigation row:
Copy your API key and update your

.env by adding the BROWSERBASE_API_KEY entry.Alternatively, you can temporarily set the environment variable for a single bash command by prefixing it with BROWSERBASE_API_KEY=<your_api_key> in your terminal.Update your code or clone a template
Running your existing code with Browserbase only requires a few line changes:
- Node.js
- Python
Set your
BROWSERBASE_API_KEY in the environment variables.Inspect the completed session
Find your recent sessions on the overview dashboard:
Select a session to inspect it with the Session Inspector.

Start building
Using browser sessions
Learn how to connect to and interact with browser sessions effectively.
Managing sessions
Understand how to properly end sessions and manage their lifecycle.