1
Get your Browserbase API Key and Project ID
Your API key and Project ID are displayed in the Overview Dashboard:
Then copy your API Key directly from the input and update your

.env
by adding the BROWSERBASE_API_KEY
and BROWSERBASE_PROJECT_ID
entries.2
Get your OpenAI/Anthropic API Key
You can get your OpenAI/Anthropic API Key from the OpenAI Dashboard or Anthropic Dashboard.
3
Install Stagehand
4
Update your code or clone a template
Integrating Stagehand into your existing code is straightforward:
Be sure to set your
BROWSERBASE_API_KEY
, BROWSERBASE_PROJECT_ID
, and OPENAI_API_KEY
environment variables to the values you copied.5
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.
