Skip to main content
Browserbase is a developer platform to reliably run, manage, and monitor headless browsers. Power your AI data retrievals with:

Installation and setup

  • Get an API key and Project ID from browserbase.com and set it in environment variables (BROWSERBASE_API_KEY, BROWSERBASE_PROJECT_ID).
  • Install the Browserbase SDK:

Deep Agents integration

Deep Agents work well with Browserbase by exposing browser capabilities as Python tools rather than routing through the CLI. The integration pattern gives the main planner cheap, stateless tools for search and page retrieval, while delegating expensive rendered and interactive browser work to a dedicated browser-specialist subagent.

Install

Architecture

The recommended pattern uses four tools: The cheap tools (search, fetch) live on the main planner. The expensive browser tools live on the browser-specialist subagent, isolating noisy session output from the main thread.

Environment variables

Define the tools

Build the agent

Run with human-in-the-loop approval

interrupt_on pauses execution before any browserbase_interactive_task call so you can review the proposed action before the agent commits it.

Decision tree: which tool to use

Full example

See the complete runnable example in the deepagents repository.