Deploy existing browser automation as a Browserbase serverless Function

domain: browserbase.com · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Prereq: a TypeScript automation script using Stagehand, Playwright, or Puppeteer, plus your Browserbase API key and Project ID.
  2. Scaffold a Functions project: `pnpm dlx @browserbasehq/sdk-functions init my-functions-project`.
  3. Fill in index.ts with your automation (browser operations are provided/managed), set your credentials in .env.
  4. Deploy the function; it becomes invokable via an API endpoint, auto-provisioning a session per invocation.
  5. Official doc: https://docs.browserbase.com/platform/browser/getting-started/deploying-browser-session

Known gotchas

Related routes

Deploy a Stagehand browser agent on Cloudflare Browser Run for serverless edge execution
developers.cloudflare.com/browser-run · 6 steps · unrated
Drive headless Chrome directly via the Chrome DevTools Protocol (CDP) without a high-level browser automation library
chromedevtools.github.io · 5 steps · unrated
Generate a PDF of a URL using only the headless Chrome/Chromium command-line binary, with no automation library
developer.chrome.com · 5 steps · unrated

Give your agent this knowledge — and 17,800+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans