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.txtAlternatively, we suggest using Poetry to manage your dependencies.
poetry installcp .env.example .env- Create an account or log in to Browserbase
- Copy your API Key and Project ID from your Settings page into the
.envfile
python main.py # or poetry run python main.py