Get started with a Selenium Node.js template
Clone this GitHub repo to start using Browserbase with Selenium in Node.
Get started with a Selenium Python template
Clone this GitHub repo to start using Browserbase with Selenium in Python.
1
Get your API Key
Your API key and Project ID are displayed in the Overview Dashboard:
Copy your API Key and Project ID from the input fields, then update your .env file by adding entries for

BROWSERBASE_API_KEY
and BROWSERBASE_PROJECT_ID
.Alternatively, you can temporarily set the environment variables for a single bash command by prefixing it with BROWSERBASE_API_KEY=<your_api_key> BROWSERBASE_PROJECT_ID=<your_project_id>
in your terminal.2
Install Selenium
3
Update your code or clone a template
Running your existing code with Browserbase only requires a few line changes:
Be sure to set your
BROWSERBASE_API_KEY
and BROWSERBASE_PROJECT_ID
environment variables to the values you copied from the Dashboard.4
Inspect the completed Session
You can find all the recent sessions on the Overview Dashboard, along with essential metrics:
Select your Session to inspect it with the Session Inspector.
