Skip to main content
BrowserBox runs a full browser (Chromium, Firefox, or WebKit) inside an isolated VM and exposes it via Playwright Server or Chrome DevTools Protocol. You connect with Playwright or Puppeteer from your host — no browser install needed on the host.

What you’ll build

A script that:
  1. Launches a BrowserBox with Chromium
  2. Connects via Playwright or Puppeteer
  3. Navigates to a page and takes a screenshot
  4. Scrapes content from the page

Prerequisites

Step 1: Launch a BrowserBox

Create a BrowserBox and get a connection endpoint.
browser.py

Connection modes

BrowserBox has two mutually exclusive connection modes:

Supported browsers

Step 2: Take a screenshot

Connect to the browser and capture a screenshot.
screenshot.py

Step 3: Scrape a page

Extract content from a web page using standard DOM queries.
scrape.py

Step 4: Interact with a page

Read content, click links, and handle navigation.
interact.py
BrowserBox allocates 2 CPUs and 2048 MiB of memory by default. Increase these if your pages are heavy or you’re running multiple tabs.

What’s next?

Connect to an LLM

Give your LLM agent the ability to browse the web by combining BrowserBox with function calling.

BrowserBox API reference

Full API docs for BrowserBox, BrowserBoxOptions, and connection endpoints.

AI agent integration

Production patterns for using BoxLite with AI agents.