Skip to main content

cdpfleet

Launch real remote browsers on cdpfleet and drive them with your own Playwright. No dependencies: bring your own playwright so you control the client version.

pip install cdpfleet playwright
export CDPFLEET_API_KEY=...

Sync

from playwright.sync_api import sync_playwright
from cdpfleet import Cdpfleet

fleet = Cdpfleet()  # api_key=..., or CDPFLEET_API_KEY
with sync_playwright() as p, fleet.launch("chrome", proxy="http://user:pass@host:port", headless=False) as session:
    browser = session.connect(p.chromium)
    page = browser.new_page()
    page.goto("https://example.com")
    print(page.title())
    print(session.live_link("view")["live_url"])

Async

import asyncio
from playwright.async_api import async_playwright
from cdpfleet import AsyncCdpfleet

async def main():
    fleet = AsyncCdpfleet()
    async with async_playwright() as p, fleet.launch("chromium", headless=True) as session:
        browser = await session.connect(p.chromium)
        page = await browser.new_page()
        await page.goto("https://example.com")
        print(await page.title())

asyncio.run(main())

keep_alive

A session launched with keep_alive=True survives a disconnect: call session.connect(...) again to re-attach to the same browser, pages included. session.close() (or leaving the with block) closes your connections and ends a keep_alive session; session.end() ends it without touching your connections.

Launch options are passed through as the JSON body (proxy, headless, cdp, keep_alive, record, proxy_rules, ...); 503 and 429 are retried for up to max_wait seconds. Errors raise CdpfleetError with status, code and body.

Docs: https://cdpfleet.com/docs/sdk

Metadata

Release files for cdpfleet 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cdpfleet 0.1.0
File Size Uploaded
cdpfleet-0.1.0.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cdpfleet 0.1.0
File Interpreter ABI Platform
cdpfleet-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / cdpfleet-0.1.0.tar.gz

Download URL cdpfleet-0.1.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
160936831e3f978726073c96cecfd8e249f44c2de7edce15a7a1d6b507b7d618
BLAKE2b-256 checksum
How to use checksums
33754e18ee6fa8ec9bb4ad4053a949fade8f73f470c69dd3f2e03a2a369e8f0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / cdpfleet-0.1.0-py3-none-any.whl

Download URL cdpfleet-0.1.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
827956d72d1f412bad588207d8c865cfba1888f946880f98da01c7e2502ac821
BLAKE2b-256 checksum
How to use checksums
7d7fe9beab93e420fe619a405dba05c4052333360f9a4bebd04db978552a1b4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page