[cdpfleet](https://cdpfleet.com/) / [Browsers](https://cdpfleet.com/browsers) / Chromium

Chromium family · Playwright build

# Chromium, *one socket* away.

The open-source Chromium build that ships with Playwright. Fast, predictable and the most compatible choice for automation.

[Open in the code builder](https://cdpfleet.com/docs/builder?browser=chromium)[Reference](https://cdpfleet.com/docs/browsers/chromium)

-   **/chromium/session**launch endpoint
-   **1.60**Playwright client
-   **1**thread headless

## Why Chromium

-   The **Playwright build of Chromium**: fast, predictable and the most compatible choice for automation.
-   Most scraping, testing and agent work when the site doesn't care which Chromium browser it sees.
-   CDP with `"cdp": true`, [live view](https://cdpfleet.com/live-view) headless with `"live_view": true`, and [persistent profiles](https://cdpfleet.com/profiles).

## Versions on the fleet now

**build**148.0.7778.96

One build per release, updated on the fleet as new versions ship.

New majors are announced on [/docs/updates](https://cdpfleet.com/docs/updates).

## Launch it

One HTTPS call to `POST /chromium/session` returns a WebSocket URL; connect to it with Playwright's `chromium.connect()` (client 1.60), or launch with `"cdp": true` and use `cdpUrl`. A headless session takes 1 thread, a headful one 2.

Chromium: launch, open a page, print its title

 

```node
// npm install playwright@1.60.0
// Browsers run on cdpfleet, so no `npx playwright install` is needed.
import { chromium } from 'playwright';

const KEY = process.env.CDPFLEET_API_KEY;

// 1. Launch the browser
const res = await fetch('https://starter.cdpfleet.com/chromium/session', {
  method: 'POST',
  headers: { 'x-api-key': KEY, 'content-type': 'application/json' },
  body: JSON.stringify({
    proxy: 'http://user:pass@proxy.example.com:8080',
    headless: 'new',
  }),
});
if (!res.ok) throw new Error(`launch failed: ${res.status} ${await res.text()}`);
const { wsUrl } = await res.json();

// 2. Connect and drive it
const browser = await chromium.connect(wsUrl, { headers: { 'x-api-key': KEY } });
const page = await browser.newPage();
await page.goto('https://example.com');
console.log(await page.title());
await browser.close(); // ends the session and stops billing
```

```python
# pip install playwright==1.60.0 requests
# Browsers run on cdpfleet, so no `playwright install` is needed.
import os
import requests
from playwright.sync_api import sync_playwright

KEY = os.environ["CDPFLEET_API_KEY"]

# 1. Launch the browser
res = requests.post(
    "https://starter.cdpfleet.com/chromium/session",
    headers={"x-api-key": KEY},
    json={
        "proxy": "http://user:pass@proxy.example.com:8080",
        "headless": "new",
    },
    timeout=60,
)
res.raise_for_status()
ws_url = res.json()["wsUrl"]

# 2. Connect and drive it
with sync_playwright() as p:
    browser = p.chromium.connect(ws_url, headers={"x-api-key": KEY})
    page = browser.new_page()
    page.goto("https://example.com")
    print(page.title())
    browser.close()  # ends the session and stops billing
```

```java
// Maven: com.microsoft.playwright:playwright:1.60.0  and  com.google.code.gson:gson:2.11.0
// Run with PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1: browsers run on cdpfleet.
import com.google.gson.JsonParser;
import com.microsoft.playwright.*;
import java.net.URI;
import java.net.http.*;
import java.util.Map;

public class Example {
  public static void main(String[] args) throws Exception {
    String key = System.getenv("CDPFLEET_API_KEY");

    // 1. Launch the browser
    String body = """
        {
          "proxy": "http://user:pass@proxy.example.com:8080",
          "headless": "new"
        }
        """;
    HttpResponse<String> res = HttpClient.newHttpClient().send(
        HttpRequest.newBuilder(URI.create("https://starter.cdpfleet.com/chromium/session"))
            .header("x-api-key", key)
            .header("content-type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(body))
            .build(),
        HttpResponse.BodyHandlers.ofString());
    if (res.statusCode() != 200) {
      throw new RuntimeException("launch failed: " + res.statusCode() + " " + res.body());
    }
    String wsUrl = JsonParser.parseString(res.body()).getAsJsonObject().get("wsUrl").getAsString();

    // 2. Connect and drive it
    try (Playwright playwright = Playwright.create()) {
      Browser browser = playwright.chromium().connect(wsUrl,
          new BrowserType.ConnectOptions().setHeaders(Map.of("x-api-key", key)));
      Page page = browser.newPage();
      page.navigate("https://example.com");
      System.out.println(page.title());
      browser.close(); // ends the session and stops billing
    }
  }
}
```

```csharp
// dotnet add package Microsoft.Playwright --version 1.60.0
// Browsers run on cdpfleet, so no `playwright install` is needed.
using System.Net.Http.Json;
using System.Text;
using System.Text.Json;
using Microsoft.Playwright;

var key = Environment.GetEnvironmentVariable("CDPFLEET_API_KEY")!;

// 1. Launch the browser
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("x-api-key", key);
var body = """
    {
      "proxy": "http://user:pass@proxy.example.com:8080",
      "headless": "new"
    }
    """;
var res = await http.PostAsync("https://starter.cdpfleet.com/chromium/session",
    new StringContent(body, Encoding.UTF8, "application/json"));
if (!res.IsSuccessStatusCode)
    throw new Exception($"launch failed: {(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}");
var wsUrl = (await res.Content.ReadFromJsonAsync<JsonElement>()).GetProperty("wsUrl").GetString()!;

// 2. Connect and drive it
using var playwright = await Playwright.CreateAsync();
var browser = await playwright.Chromium.ConnectAsync(wsUrl, new BrowserTypeConnectOptions
{
    Headers = new Dictionary<string, string> { ["x-api-key"] = key },
});
var page = await browser.NewPageAsync();
await page.GotoAsync("https://example.com");
Console.WriteLine(await page.TitleAsync());
await browser.CloseAsync(); // ends the session and stops billing
```

```go
// go get github.com/playwright-community/playwright-go@v0.6000.0
//
// One-time driver setup (needs Node.js 18+): playwright-go can no longer download the
// 1.60.0 driver itself, so build it from npm and point PLAYWRIGHT_DRIVER_PATH at it:
//   mkdir -p ~/.cache/pw-driver-1.60.0 && cd ~/.cache/pw-driver-1.60.0 &&
//     curl -sL https://registry.npmjs.org/playwright-core/-/playwright-core-1.60.0.tgz | tar xz &&
//     ln -sf "$(command -v node)" node
//   export PLAYWRIGHT_DRIVER_PATH=~/.cache/pw-driver-1.60.0
// Browsers run on cdpfleet, so no browsers are downloaded (SkipInstallBrowsers).
package main

import (
	"encoding/json"
	"fmt"
	"io"
	"log"
	"net/http"
	"os"
	"strings"

	"github.com/playwright-community/playwright-go"
)

func main() {
	key := os.Getenv("CDPFLEET_API_KEY")

	// 1. Launch the browser
	body := `{
	  "proxy": "http://user:pass@proxy.example.com:8080",
	  "headless": "new"
	}`
	req, _ := http.NewRequest("POST", "https://starter.cdpfleet.com/chromium/session", strings.NewReader(body))
	req.Header.Set("x-api-key", key)
	req.Header.Set("content-type", "application/json")
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		log.Fatal(err)
	}
	defer res.Body.Close()
	if res.StatusCode != http.StatusOK {
		msg, _ := io.ReadAll(res.Body)
		log.Fatalf("launch failed: %s %s", res.Status, msg)
	}
	var session struct {
		WsURL string `json:"wsUrl"`
	}
	if err := json.NewDecoder(res.Body).Decode(&session); err != nil {
		log.Fatal(err)
	}

	// 2. Connect and drive it (Install fetches only the Playwright driver, once)
	opts := &playwright.RunOptions{SkipInstallBrowsers: true}
	if err := playwright.Install(opts); err != nil {
		log.Fatal(err)
	}
	pw, err := playwright.Run(opts)
	if err != nil {
		log.Fatal(err)
	}
	defer pw.Stop()
	browser, err := pw.Chromium.Connect(session.WsURL, playwright.BrowserTypeConnectOptions{
		Headers: map[string]string{"x-api-key": key},
	})
	if err != nil {
		log.Fatal(err)
	}
	page, err := browser.NewPage()
	if err != nil {
		log.Fatal(err)
	}
	if _, err := page.Goto("https://example.com"); err != nil {
		log.Fatal(err)
	}
	title, _ := page.Title()
	fmt.Println(title)
	browser.Close() // ends the session and stops billing
}
```

[This program on GitHub →](https://github.com/cdpfleet/cdpfleet/tree/main/examples/browsers/chromium)

## Launch options

| Option | What it does |
| --- | --- |
| [`proxy_rules`](https://cdpfleet.com/docs/browsers/chromium#opt-proxy_rules) | Send specific destination hosts through specific proxies. |
| [`inactivity_timeout`](https://cdpfleet.com/docs/browsers/chromium#opt-inactivity_timeout) | End the session after this long with no traffic on its WebSocket. |
| [`overall_timeout`](https://cdpfleet.com/docs/browsers/chromium#opt-overall_timeout) | Hard cap on the session's total lifetime, regardless of activity. |
| [`memory`](https://cdpfleet.com/docs/browsers/chromium#opt-memory) | Give the session 2, 3 or 4 times your plan's memory; it counts as that many times the threads. |
| [`downloads`](https://cdpfleet.com/docs/browsers/chromium#opt-downloads) | Keep every file the browser downloads, to fetch after the session. |
| [`vpn_tunnel`](https://cdpfleet.com/docs/browsers/chromium#opt-vpn_tunnel) | VPN Tunnel: UDP/WebRTC full support — all of the browser's traffic, UDP included, goes through the residential exit. |
| [`vpn`](https://cdpfleet.com/docs/browsers/chromium#opt-vpn) | Own network (dedicated plans): send all of the browser's traffic through your own VPN instead of a proxy. |
| [`headless`](https://cdpfleet.com/docs/browsers/chromium#opt-headless) | Run without a display. |
| [`cdp`](https://cdpfleet.com/docs/browsers/chromium#opt-cdp) | Also expose a Chrome DevTools Protocol endpoint (cdpUrl). |
| [`screencast`](https://cdpfleet.com/docs/browsers/chromium#opt-screencast) | Stream the page to your code (Playwright page.screencast). |
| [`live_view`](https://cdpfleet.com/docs/browsers/chromium#opt-live_view) | Make a headless session watchable and controllable from outside. |
| [`screen_size`](https://cdpfleet.com/docs/browsers/chromium#opt-screen_size) | Resolution of the session's own display (headful only). |
| [`keep_alive`](https://cdpfleet.com/docs/browsers/chromium#opt-keep_alive) | Keep the session when your client disconnects (dedicated threads only). |
| [`start_url`](https://cdpfleet.com/docs/browsers/chromium#opt-start_url) | Open this page at launch so the session can be driven in live view with no client connected. |
| [`profile`](https://cdpfleet.com/docs/browsers/chromium#opt-profile) | Restore a saved browser profile and save it again when the session ends. |
| [`record`](https://cdpfleet.com/docs/browsers/chromium#opt-record) | Opt this session out of recording with false. |

Every session also needs a `proxy` — yours, or the [residential proxy](https://cdpfleet.com/residential-proxy).

## Related

Cases, recipes, posts and comparisons about this — updated as new ones are published.

### Reference docs

The details, options and errors.

-   [Chromium reference](https://cdpfleet.com/docs/browsers/chromium)Versions and every launch option.
-   [Quickstart](https://cdpfleet.com/docs/quickstart)Your first session in five minutes.
-   [CDP & Puppeteer](https://cdpfleet.com/docs/cdp)Connecting over `cdpUrl`.

### Cases 70

Real problems solved end to end, run on production in five languages.

-   [Case 84: Does the TLS fingerprint (JA4) explain which browsers got in? Twelve browsers against six vendors](https://cdpfleet.com/docs/cases/ja4-vs-vendor-verdicts)Each of the twelve browsers from the real-site lab week loads a TLS echo page once, so we know the JA4, peetprint and HTTP/2 fingerprint it sends. Grouped by…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/84-ja4-vs-vendor-verdicts)
-   [Case 85: A Function or your own browser? Screenshot, PDF and Markdown of the same pages, timed and billed](https://cdpfleet.com/docs/cases/function-vs-your-own-browser)Three pages, three outputs, two ways: one POST to a Function, or launch a browser yourself, connect Playwright, capture and close. Wall time, the thread-seconds each…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/85-function-vs-your-own-browser)
-   [Case 82: Kept downloads in practice: a person in Launch interactive and an AI agent over MCP](https://cdpfleet.com/docs/cases/downloads-in-practice)Files nobody's code was waiting for: a person pastes file links into a Launch interactive session, an AI agent clicks a download and opens a file link through the…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/82-downloads-in-practice)
-   [Case 80: How many tabs fit in one session, by plan, browser and "memory"](https://cdpfleet.com/docs/cases/tabs-and-memory-by-plan)A long Wikipedia article opened in one new tab after another until the session ends: on Community (2 GB), a shared plan (4 GB) and a dedicated thread (6 GB), in…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/80-tabs-and-memory-by-plan)
-   [Case 79: MCP in action: an MCP client drives a cloud browser through cdpfleet.com/mcp](https://cdpfleet.com/docs/cases/mcp-in-action)A script connects to the hosted MCP server with its API key and does what an AI assistant does: list the tools, launch a browser, open a page, read it as an…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/79-mcp-in-action)
-   [Case 77: Kasada and AWS WAF on real sites: twelve browsers, four sites, one exit each](https://cdpfleet.com/docs/cases/kasada-and-aws-waf-by-browser)Two real sites behind Kasada and two behind AWS WAF, loaded once by each of twelve browsers and by a returning Camoufox profile, through one sticky residential exit…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/77-kasada-and-aws-waf-by-browser)
-   [Case 78: keep\_alive: an agent run that survives its client going away](https://cdpfleet.com/docs/cases/keep-alive-reconnect)An agent works through a catalogue in a headless Chrome session with `keep_alive`, then its client disconnects. A new client reconnects to the same session and…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/78-keep-alive-reconnect)
-   [Case 75: HUMAN on real sites: twelve browsers, three sites, one exit each](https://cdpfleet.com/docs/cases/human-real-sites-by-browser)Three real sites behind HUMAN (formerly PerimeterX), chosen from our sweep as easy, medium and hard, loaded once by each of twelve browsers and by a returning…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/75-human-real-sites-by-browser)

[All cases →](https://cdpfleet.com/docs/cases) 70 match this topic

### Recipes 15

Complete programs for one setup each.

-   [Proxy pool with per-host rules](https://cdpfleet.com/docs/examples#proxy-pool)Spread traffic over two residential exits and send CDN assets through a datacenter pool. See [Proxies](https://cdpfleet.com/docs/proxies).
-   [SOCKS5 proxy with authentication](https://cdpfleet.com/docs/examples#socks5-proxy)Any `socks5://` proxy works like an HTTP one, including username and password. Use `socks5h://` if the proxy should resolve hostnames.[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/examples/recipes/socks5-proxy)
-   [Short-lived sessions for burst jobs](https://cdpfleet.com/docs/examples#burst-timeouts)For many small jobs, make each session end itself: 15 seconds idle or 2 minutes total, whichever comes first, so a hung script never bills for long. Values take `s`,…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/examples/recipes/burst-timeouts)
-   [Live view: stream the page to your code](https://cdpfleet.com/docs/examples#live-view)Watch the remote browser while your code drives it: `page.screencast` sends a JPEG frame whenever the page changes (Playwright 1.60+). See [Live view](https://cdpfleet.com/docs/live-view).[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/examples/recipes/live-view)
-   [cdpfleet residential: one sticky US identity](https://cdpfleet.com/docs/examples#resi-sticky)No proxy of your own: a residential US IP that stays the same for 30 minutes — and across browser sessions that reuse the session name. Tier 1 ($5/GB) from your…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/examples/recipes/resi-sticky)
-   [Swap the proxy mid-session without restarting the browser](https://cdpfleet.com/docs/examples#live-proxy-swap)Launch as usual (every session can be swapped; `"proxy_updatable"` is no longer needed), then `POST /admin/session/proxy` with the session id and a new `proxy` (or…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/examples/recipes/live-proxy-swap)
-   [cdpfleet residential with VPN Tunnel: WebRTC and HTTP/3 on the same exit](https://cdpfleet.com/docs/examples#resi-vpn-tunnel)A sticky Tier 1 residential exit plus `"vpn_tunnel": true`: the browser's UDP leaves through the same exit as its HTTP, so WebRTC shows the exit IP instead of…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/examples/recipes/resi-vpn-tunnel)
-   [Community plan: the included proxy, US and sticky](https://cdpfleet.com/docs/examples#community-quickstart)On the free [Community plan](https://cdpfleet.com/docs/pricing#community) the proxy is included: leave `proxy` out, or send a `cdpfleet-plan` token like this one for a US exit that…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/examples/recipes/community-quickstart)

[All recipes →](https://cdpfleet.com/docs/examples) 15 match this topic

### Browser comparisons 2

Measured side by side on the fleet.

-   [WebKit vs Chromium](https://cdpfleet.com/docs/compare/webkit-vs-chromium)Playwright's WebKit 26.4 claims a Mac in its user agent but reports Linux, sets navigator.webdriver and speaks HTTP/1.1 through a proxy. Where it beats Chromium…
-   [Chrome vs Chromium](https://cdpfleet.com/docs/compare/chrome-vs-chromium)Google's Chrome against the Chromium build Playwright ships: seven majors apart, one brand missing from the client hints, one TLS extension fewer — and, contrary to…

## Read next

[Browsers →](https://cdpfleet.com/browsers)[Google Chrome →](https://cdpfleet.com/browsers/chrome)[Microsoft Edge →](https://cdpfleet.com/browsers/edge)[Brave →](https://cdpfleet.com/browsers/brave)

---
Source: https://cdpfleet.com/browsers/chromium · Markdown: https://cdpfleet.com/browsers/chromium.md · All docs for AI tools: https://cdpfleet.com/llms.txt
