Skip to main content
Browser Use provides cloud browser infrastructure for AI agents. Use it when running agent-browser in environments where a local browser isn’t available (serverless, CI/CD, etc.).

When to Use Browser Use

  • Serverless functions (AWS Lambda, Vercel, Cloudflare Workers)
  • CI/CD automation
  • Docker containers without display
  • Distributed scraping and testing
  • Quick prototyping without local browser setup

Prerequisites

Free credits are available to get started, with pay-as-you-go pricing after.

Setup

1

Get your API key

  1. Visit the Browser Use Dashboard
  2. Create a new API key
  3. Copy the key (it won’t be shown again)
2

Set environment variable

Usage

Via CLI Flag

Use the -p browseruse flag:

Via Environment Variable

Set the provider globally:

Features

All standard agent-browser commands work with Browser Use:
  • Navigation: open, back, forward, reload
  • Snapshots: snapshot, snapshot -i, snapshot --json
  • Interactions: click, fill, type, press, hover
  • Screenshots: screenshot, screenshot --full, screenshot --annotate
  • State: state save, state load, cookies, storage
  • Waiting: wait, wait --load, wait --url
  • Network: network route, network requests

Environment Variables

VariableDescriptionRequired
AGENT_BROWSER_PROVIDERSet to browseruseYes (or use -p flag)
BROWSER_USE_API_KEYYour Browser Use API keyYes

Example: Serverless Function

Example: Docker Container

Example: CI/CD Testing

Example: Quick Prototyping

Performance

Browser Use cloud sessions start quickly and scale automatically. No need to manage browser installations or updates.

Pricing

  • Free tier available for testing
  • Pay-as-you-go pricing based on session time
  • Check current rates at browser-use.com/pricing
Switch between local and cloud browsers by changing the provider. Your automation scripts stay the same.