Browserbase is the best developer platform to reliably run, manage, and monitor headless browsers.
Get browsers' complete control and leverage Browserbase's Infrastructure, Stealth Mode, and Session Debugger to power your automation, test suites, and LLM data retrievals.
Get started in under one minute with Playwright.
pip install -r requirements.txt
Alternatively, we suggest using Poetry to manage your dependencies.
poetry install
cp .env.example .env
- Create an account or log in to Browserbase
- Copy your API Key and Project ID from your Settings page into the
.env
file
python main.py # or poetry run python main.py