Skip to main content
Browserbase supports running browsers in multiple geographic regions. Running browser sessions in or near your region significantly improves performance. Explicit session creation decouples session creation from connection, supporting use cases like parallelizing jobs or long-running sessions, and lets you customize session settings. You can specify a browser region using the region parameter in the Sessions API.
import { Browserbase } from "@browserbasehq/sdk";

const bb = new Browserbase({ apiKey: process.env.BROWSERBASE_API_KEY! });
const session = await bb.sessions.create({
  region: "ap-southeast-1",
});
Available regions: us-west-2 (Oregon), us-east-1 (Virginia), eu-central-1 (Frankfurt), and ap-southeast-1 (Singapore). All sessions are created in us-west-2 by default.