browserbase
The official Python library for the Browserbase API
What it is and what it does
Browserbase is the official Python SDK for the Browserbase API, a service for managing remote browser sessions. It wraps the REST API with full type hints and provides both sync and async clients powered by httpx. The library is generated with Stainless and includes TypedDict request parameters and Pydantic response models, enabling IDE autocomplete and type checking.
Typical usage involves creating a client with an API key, then creating or managing browser sessions that can be controlled via Playwright. The library handles connection errors, rate limiting, and timeouts automatically, with configurable retries and timeout behavior. It supports file uploads, nested parameters, and detailed error handling with specific exception types for different HTTP status codes.
Use it for:
- Automate web scraping or testing by creating remote browser sessions and controlling them via Playwright.
- Build browser automation workflows that integrate with Browserbase's managed infrastructure instead of local browsers.
- Implement asynchronous browser control in concurrent applications using the AsyncBrowserbase client.
- Handle certificate management and browser settings configuration through the API.
- Integrate browser session management into CI/CD pipelines or cloud-based testing frameworks.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Browserbase is a Python client library for the Browserbase REST API, providing typed access to remote browser session management and control with both synchronous and asynchronous interfaces.
Yes, if you need to control remote browser sessions via the Browserbase service. The package is actively maintained, has low install friction, carries a permissive license, and provides full type coverage. Install with caution if you are unsure whether you have valid Browserbase credentials and project setup, as the library requires API keys and project IDs to function.
Install
browserbase on PyPI
pip
pip install browserbaseuv
uv add browserbasepoetry
poetry add browserbaseInstalling browserbase
Before you install
Low install friction with a pure-Python wheel and six common dependencies (anyio, distro, httpx, pydantic, sniffio, typing-extensions). The package is actively maintained with a release 2 days old and 91 repository stars.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install --pre browserbase
import os
from browserbase import Browserbase
client = Browserbase(api_key=os.environ.get("BROWSERBASE_API_KEY"))
session = client.sessions.create(project_id=os.environ.get("BROWSERBASE_PROJECT_ID"))
Requires BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID environment variables; Python 3.9 or later.
Verify before relying
- Whether the '--pre' flag in the installation example indicates the package is still in pre-release or if stable releases are available.
- Actual performance characteristics when using aiohttp backend versus default httpx.
- Whether Playwright is a required dependency or only needed for specific use cases shown in examples.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — anyio, distro, httpx, pydantic, sniffio, typing-extensions |
| Maintenance | actively maintained — 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,583,660/month — #2,068 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: browserbase-1.16.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
hyperbrowserPython SDK for controlling remote browser…
permissive · top 15,000 on PyPI
stagehandStagehand is a Python SDK for building browser…
permissive · top 5,000 on PyPI
playwrightAutomate Chromium, Firefox, and WebKit browsers…
permissive · top 1,000 on PyPI
agentex-clientProvides a typed Python REST client for the…
permissive · top 15,000 on PyPI
seleniumbaseSeleniumBase is a browser automation framework…
permissive · top 5,000 on PyPI
steel-sdkProvides a typed Python client for the Steel…
permissive · top 15,000 on PyPI
kernelProvides a Python client library for the Kernel…
permissive · top 15,000 on PyPI
robotframework-browserBrowser automation library for Robot Framework…
permissive · top 5,000 on PyPI
robocorp-browserA wrapper around Playwright that automates…
permissive · top 15,000 on PyPI
pytest-playwrightA pytest plugin that integrates Playwright…
permissive · top 5,000 on PyPI