Browser Run - Multiple concurrent clients per session
Browser Run sessions now accept multiple concurrent connections instead of one at a time, allowing multiple Workers to connect to the same browser simultaneously. Each connection uses separate browser contexts to isolate pages, cookies, and storage, reducing cold-start time and browser limits.
Browser Run sessions now accept multiple concurrent connections. Before, a session accepted only one connection at a time, and other Workers had to wait until that connection closed. Now multiple Workers can connect to the same browser at the same time.
Each puppeteer.connect() call opens its own Chrome DevTools Protocol (CDP) connection. Create a separate browser context for each request to keep its pages, cookies, and storage apart from other clients.
const browser = await puppeteer.connect(env.MYBROWSER, sessionId);
const context = await browser.createBrowserContext();
try {
const page = await context.newPage();
await page.goto("https://example.com");
// ...
} finally {
await context.close();
await browser.disconnect(); // keep the shared browser running
}const browser = await puppeteer.connect(env.MYBROWSER, sessionId);
const context = await browser.createBrowserContext();
try {
const page = await context.newPage();
await page.goto("https://example.com");
// ...
} finally {
await context.close();
await browser.disconnect(); // keep the shared browser running
}
Sharing sessions means fewer new browsers to launch, less cold-start time, and fewer concurrent browsers counted against your limits.
Concurrent connections require @cloudflare/puppeteer version 1.1.0 or later.
Refer to Reuse sessions for a full example.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for macOS 2026.8.2100.0
GA release for macOS Cloudflare One Client with improved split tunnel handling that no longer briefly blocks traffic during reconnects, support for non-RFC 1918 local IPv4 networks, faster connects with lower memory use, and numerous reliability fixes across DNS, reauthentication, and client stability.
Cloudflare One Client for Windows 2026.8.2100.0
This GA release improves split tunnel reliability, adds support for non-RFC 1918 local networks, optimizes connection performance with faster reconnections and lower memory usage, and includes numerous bug fixes for DNS, registration, and network handling. The client now features a service recovery mechanism that automatically restarts on system unlock and better handles large hosts files without blocking traffic.
Cloudflare One Client for Linux 2026.8.2100.0
New GA release for Linux with improved split tunnel handling that no longer briefly blocks traffic during reconnects, support for non-RFC 1918 local IPv4 networks, faster tunnel reconnections, and lower memory usage. Includes numerous stability and reliability fixes for DNS, reconnection behavior, and crash issues.