Headless Chrome

Headless Chromium for browser automation, screenshots and PDF generation.

  • browser
  • testing

Guide: Drive a browser

Run it

briq run chrome

Fields

NameTypeOptionsDefault
imagestring—"ghcr.io/browserless/chromium:latest"
envrecord{ key: string | { secret, value?, literal?, scope?, hosts?, locations? } }{}
cmdstring | string[]——
sizeenumsmall, medium, large"small"
filesrecord{ key: string | { base64 } }—
egressobject{ hosts }—

Outputs

Returned by briq_run once the stack is healthy. Hosts resolve inside your team network; secrets are generated per run.

BROWSER_WS_ENDPOINT
ws://chrome.<stack>.internal:3000?token=<BROWSERLESS_TOKEN>
BROWSERLESS_URL
http://chrome.<stack>.internal:3000
BROWSERLESS_TOKEN
<BROWSERLESS_TOKEN>

What it runs

BriqImagePortsSizeVolume
chromeghcr.io/browserless/chromium:latest3000small—

When to use it

  • The agent or its tests need a real browser: open pages, fill forms, take screenshots and PDFs.
  • You do not want Chromium where the agent runs, or the agent cannot run code at all.

An agent with only briq's tools drives it with briq_exec; one that runs code connects Playwright or Puppeteer. The guide shows both.

Tips

  • small for a few pages now and then: steady work uses up a shared CPU's allowance and every call slows down. large has four CPUs.
  • The first call on a new briq is slow, up to about 30 seconds: Chromium's first launch.
  • 50 seconds per call: pass &timeout= (in ms) for another limit.
  • Four browsers at once, ten more calls queued.
  • From outside briq: expose: "private", then send the URL's token as a cookie (headers: { cookie: "briq_token=…" } in connect). The browser's own token stays in the address.
  • No sessions, proxies or stealth: each connection gets a new browser.

On this page

Free to try

Try briq, on us.

Every new account starts with €10 of credits. No card.

Start building

How can we help?

Message to the briq team