browserbase package is the easiest way
to connect to and control headless browsers running on Browserbase.
Installation
Basic usage
Here’s an example using the Browserbase Python SDK to create and connect to a session with Playwright:Session configuration
Pass configuration options when creating a session to customize browser behavior.All configuration options
Proxy configuration
Configure proxies as a boolean or a list for more control:Common configuration examples
Agents
Use the Browserbase Python SDK to create and manage Agents and runs. For a polling workflow, see Integrating Agents.Create an Agent and run
Methods
Use
AsyncBrowserbase for the same methods in asynchronous applications. Use the Stop a run REST endpoint to stop an in-progress run.
Examples
Quickstart examples using CAPTCHA solving, proxies, extensions, and more.
PyPI package
View the package on PyPI
SDK reference
View the complete SDK reference documentation