skillfed

browserbase

The official Python library for the Browserbase API

browserbase v1.16.0 5.6M downloads/30d#2,068 on PyPI91
Permissive license Apache-2.0 Active released

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 browserbase

uv

uv add browserbase

poetry

poetry add browserbase

Installing 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

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

browserbase python api clientremote browser session managementplaywright integration libraryheadless browser api wrapperbrowser automation sdk python
browser-automationapi-clientasync-support

More Python Modules packages