cdpfleet Docs GitHub Dashboard

SDKs

Small libraries for Node.js, Python, Java, C# and Go that wrap the cdpfleet API: launch a browser (retrying when the fleet is busy, as the API asks), connect your own Playwright to it, and close it — plus keep_alive reconnects, live links, proxy swaps, recordings and your usage. You don't need them: every example on this site also works with plain Playwright and one HTTP call. They just remove the boilerplate.

// npm install cdpfleet [email protected]
// Browsers run on cdpfleet, so no `npx playwright install` is needed.
import { chromium } from 'playwright';
import { Cdpfleet } from 'cdpfleet';

const fleet = new Cdpfleet(); // reads CDPFLEET_API_KEY
const options = {
  proxy: 'http://user:[email protected]:8080',
  headless: 'new',
};

const session = await fleet.launch('chromium', options);
const browser = await session.connect(chromium);
const page = await browser.newPage();
await page.goto('https://example.com');
console.log(await page.title());
await session.close(); // ends the session and stops billing

The code builder writes this for any browser and options — switch it between SDK and Plain.

Install

Node.js, Python and Go are published (0.1.1). The C# and Java packages are on their way to NuGet and Maven Central — until then they build from their source on GitHub.

LanguagePackagePlaywright (yours)
Node.jsnpm install cdpfleet (ESM, TypeScript types)[email protected]
Pythonpip install cdpfleet (sync and async)playwright==1.60.0
JavaMaven com.cdpfleet:cdpfleet:0.1.0 (coming soon)com.microsoft.playwright:playwright:1.60.0
C#dotnet add package Cdpfleet (coming soon)Microsoft.Playwright 1.60.0
Gogo get github.com/cdpfleet/cdpfleet/sdk/goplaywright-go v0.6000.0

The SDKs never bundle Playwright: you pass your own browser type (chromium, firefox, webkit), so you choose the client version — 1.60 for every browser, 1.52 for Rebrowser. Sources, specification and examples: github.com/cdpfleet/cdpfleet/sdk.

What they do for you

Names in each language

Node.jsPythonJavaC#Go
Clientnew Cdpfleet()Cdpfleet() / AsyncCdpfleet()new Cdpfleet()new CdpfleetClient()cdpfleet.New()
Launchawait fleet.launch(name, options)fleet.launch(name, options)fleet.launch(name, Map)await fleet.LaunchAsync(name, options)fleet.Launch(name, cdpfleet.Options{…})
Connect URLfleet.connectUrl(name, options)fleet.connect_url(name, options)——fleet.ConnectURL(name, cdpfleet.Options{…})
Doneawait session.close()with … as session:try-with-resourcesawait using var sessiondefer session.Close()

The API key comes from CDPFLEET_API_KEY unless you pass one. For AI agents, see the MCP server.