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.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vercel-labs/agent-browser/llms.txt
Use this file to discover all available pages before exploring further.
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
- Browserbase account (sign up)
- API key and Project ID from Browserbase Dashboard
Setup
Get your credentials
- Visit the Browserbase Dashboard
- Copy your API Key
- Copy your Project ID
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
| Variable | Description | Required |
|---|---|---|
AGENT_BROWSER_PROVIDER | Set to browserbase | Yes (or use -p flag) |
BROWSERBASE_API_KEY | Your Browserbase API key | Yes |
BROWSERBASE_PROJECT_ID | Your Browserbase project ID | Yes |
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.