browserbase
The official Python library for the Browserbase API
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID environment variables; Python 3.9 or later.
- 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 · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.
last release 2026-08-12 (2 days) · last repo commit 2026-08-12 · 91 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,583,660 downloads/mo, #2,068 on PyPI
Alternatives
Verify before relying
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"))- 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.
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 on it.
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
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.
Requires BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID environment variables; Python 3.9 or later.
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"))
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 packagesanyiodistrohttpxpydanticsniffiotyping-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 |
| Classifiers | 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 |
Evidence: browserbase-1.16.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “browserbase python api client”
- browserbaseBrowserbase is a Python client library for the Browserbase REST API,…
- stagehandStagehand is a Python SDK for building browser agents with…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also hyperbrowser · stagehand · playwright · agentex-client · seleniumbase · steel-sdk · kernel · robotframework-browser · robocorp-browser · pytest-playwright