Skip to main content
Browserbase provides remote browser infrastructure to make deployment of agentic browsing agents easy. Use it when running agent-browser in environments where a local browser isn’t feasible.

When to Use Browserbase

  • Serverless environments (AWS Lambda, Vercel Functions, etc.)
  • CI/CD pipelines
  • Distributed agent deployments
  • Environments without display server (headless VPS)
  • Need for session recording and debugging

Prerequisites

Setup

1

Get your credentials

  1. Visit the Browserbase Dashboard
  2. Copy your API Key
  3. Copy your Project ID
2

Set environment variables

Usage

Via CLI Flag

Use the -p browserbase flag:

Via Environment Variable

Set the provider globally:

Features

When using Browserbase, all standard agent-browser commands work identically:
  • Navigation (open, back, forward, reload)
  • Snapshots with refs (snapshot -i)
  • Interactions (click, fill, type, press)
  • Screenshots (screenshot, screenshot --full)
  • State management (state save, state load)
  • Network control (network route, network requests)

Environment Variables

VariableDescriptionRequired
AGENT_BROWSER_PROVIDERSet to browserbaseYes (or use -p flag)
BROWSERBASE_API_KEYYour Browserbase API keyYes
BROWSERBASE_PROJECT_IDYour Browserbase project IDYes

Example: Serverless Deployment

Example: CI/CD Pipeline

Session Recording

Browserbase automatically records all sessions. View recordings in your Browserbase Dashboard for debugging.

Pricing

Check current pricing at browserbase.com/pricing.
All agent-browser commands work identically whether you’re using a local browser or Browserbase. Simply set the provider and your automation scripts run unchanged.