Browserbase is a platform for building and deploying web-browsing agents via a single API key. It provides cloud browsers, search, and fetch capabilities, along with a Model Gateway for routing requests across 100+ LLM providers. The documentation covers core APIs (Browser, Search, Fetch), SDKs (Stagehand, Playwright, Puppeteer, Selenium), and integrations with frameworks like LangChain, CrewAI, and Mastra. It includes guides for enterprise security, billing, SSO, BYOS, and specific integrations with 1Password, Agent Browser, AgentKit, Agno, Braintrust, Browser Use, Google ADK, and IBM watsonx.ai.
Tokens
7.2K
Snippets
13
Records
83
Agent score
50%
What's inside Browserbase
Track browser session usage
Monitor usage via: Dashboard at browserbase.com/overview — shows total browser minutes, active sessions, usage trends, and billing. Sessions list at browserbase.com/sessions — browse session history for duration, status, and resource consumption per session. For programmatic access, see the Measuring Usage Guide.
Browserbase Functions as alternative
Browserbase Functions offer a similar serverless experience to Val Town Vals but run on Browserbase infrastructure with built-in session management, local development tools, and Infrastructure-as-Code deployment. Consider Functions for complex browser automation workflows.
Temporal + Stagehand Integration Overview
The Temporal integration combines Temporal's durable execution platform with Stagehand's AI-powered browser agent to build fault-tolerant browser automation. It demonstrates best practices for handling failures through atomic activities, automatic retries, and idempotent operations. This serves as a template for production-ready data extraction, testing, and monitoring workflows.
Identity & Signed Agents for cryptographic authentication
Identity extends Verified through cryptographic authentication via Browserbase's partnership with Cloudflare's Signed Agents program. Sessions prove they are legitimate user-authorized agents, allowing website owners to explicitly allow Browserbase sessions. Benefits include authentication via Web Bot Auth, no CAPTCHA challenges on participating sites, and built on open standards. Request beta access to enable this feature.
Mastra + Stagehand use cases
Common use cases include: data extraction from multiple pages with AI-guided navigation, automated testing that adapts to UI changes, lead generation gathering contact and company data, market research monitoring competitor pricing and product listings, form automation across websites, and content management across multiple platforms.
Vercel AI integration with Stagehand and Browserbase
Build AI-powered browser agents using Vercel AI SDK, Stagehand, and Browserbase on serverless infrastructure. Stagehand provides a high-level CDP-based API for browser automation with AI-powered extraction. Browserbase supplies cloud browser infrastructure for running headless browsers at scale. For native cloud functions without Vercel infrastructure management, see Browserbase Functions.
Mastra integration for web automation
Mastra is a TypeScript framework for building AI agents that integrates with Browserbase via Stagehand tools. This enables AI agents to interact with web pages using natural language instructions—navigating sites, extracting data, and performing complex web interactions. Key capabilities include natural language web automation, intelligent element detection, structured data extraction with custom schemas, and automatic browser session management with reconnection handling.
Braintrust integration overview
Braintrust is a platform for building AI applications that enhances LLM capabilities through tool calling. This integration allows you to add Browserbase as a web-browsing tool, enabling LLMs to perform external tasks and return structured JSON outputs. Custom functions can be executed directly in TypeScript or Python code.
Browserbase + Stripe Integration Overview
This integration enables AI agents to generate virtual credit cards via the Stripe API and use Browserbase to automate online purchases. Use cases include creating restricted credit cards for AI agents, retrieving card details from Stripe, and automating card input into web forms using Playwright or Stagehand.
Alternative: Browserbase Functions for simpler browser agents
For straightforward agent workflows without managing Trigger.dev infrastructure, Browserbase Functions provides a simpler option with API invocation. See the Functions documentation at /platform/runtime/overview for browser agents with API invocation.
Use Cases for Temporal Browser Automation
Key use cases include: Data extraction pipelines — build reliable workflows that handle site changes and network issues; E2E testing — create robust browser tests that retry failed steps instead of failing entire suites; Monitoring & alerting — automate website monitoring with intelligent failure recovery; Data migration — transfer data between systems with guaranteed completion despite failures.
Browser session termination methods
Browser sessions end via: (1) Automatic timeout — configured at project level, customizable per session; enable keep-alive for longer tasks. (2) Manual termination — call browser.close() or driver.quit(), use the Sessions API, or release keep-alive sessions. (3) Unhandled errors — network interruptions, uncaught exceptions, or exceeded resource limits disconnect your script prematurely; implement proper error handling and cleanup. (4) CDP inactivity — connections close after 10 minutes without CDP commands.