Remote browser automation for AI agents - Python SDK
pip install bctrl==0.2.0 Copy PIP instructions
The current generated public API is available from bctrl.api, including an async client:
import os from bctrl.api import Bctrl, AsyncBctrl client = Bctrl(token=os.environ["BCTRL_API_KEY"]) spaces = client.spaces.list() The root entrypoint below retains the previous helper API for existing callers.
pip install bctrl Quick Start from bctrl import Bctrl bctrl = Bctrl(api_key="bctrl_...") with bctrl.runtimes.started_browser(name="checkout") as browser: print(browser.cdp_url) conversation = bctrl.conversations.create( runtime_id=browser.runtime_id, ) bctrl.conversations.messages.create( conversation["id"], text="Extract the invoice number and total.", ) for event in bctrl.conversations.stream(conversation["id"]): print(event) Python methods use snake_case; the SDK sends the API's camelCase fields on the wire. For example, runtime_path becomes runtimePath.
Views are the supported way to share live progress and recordings. The bearer URL is returned only when the view is created:
view = bctrl.views.create( scope={"runtime_id": "runtime_..."}, components={ "live": {"control": "none"}, "recordings": {}, }, expires_in_seconds=3600, ) print(view["url"]) Set the chrome=none query parameter before the URL fragment when embedding the complete white-label view in your own application. Organization branding is managed with bctrl.account.get() and bctrl.account.update(...). Signed event delivery is managed through bctrl.webhooks, including secret rotation, delivery inspection, and redelivery.
ai automation browser playwright puppeteer scraping selenium web
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.




