---
title: Browserbase
description: Automate and inspect browser pages with Browserbase and Stagehand.
url: "https://eve.dev/integrations/browserbase"
docs_index: /llms.txt
type: extension
keywords:
  - browser
  - browser automation
  - cloud browser
  - stagehand
  - playwright
  - screenshots
  - web automation
---

> For an index of all documentation, see [/llms.txt](/llms.txt).

Extension integration for eve. Automate and inspect browser pages with Browserbase and Stagehand.

## Install

Install the Browserbase extension:

```bash
eve add extension/browserbase
```

The extension requires Node.js 24 or later and eve 1.x. Set `BROWSERBASE_API_KEY` for browser sessions and configure any model credentials required by the selected Stagehand model.

## Quick start

Add your Browserbase API key to the agent's environment:

```bash title=".env.local"
BROWSERBASE_API_KEY=bb_live_...
```

Then mount the extension under `agent/extensions/`:

```ts title="agent/extensions/browserbase.ts"
import browserbase from "@browserbasehq/eve";

export default browserbase({
  apiKey: process.env.BROWSERBASE_API_KEY!,
});
```

The filename supplies the `browserbase` namespace. The extension adds `browserbase__run`, `browserbase__snapshot`, and `browserbase__screenshot`. Use `run` for Playwright-shaped JavaScript or snapshot actions, `snapshot` for the active page's accessibility tree, and `screenshot` for visual inspection.

## Configure

Use the run tool to navigate and interact with pages, then inspect the result with snapshot or screenshot.

You can configure the Stagehand model, session timeout, and proxies:

```ts title="agent/extensions/browserbase.ts"
import browserbase from "@browserbasehq/eve";

export default browserbase({
  apiKey: process.env.BROWSERBASE_API_KEY!,
  model: "openai/gpt-5.4-mini",
  sessionTimeoutSeconds: 900,
  proxies: false,
});
```

Browserbase reuses a browser across calls, including calls from different eve sessions. Do not share it between users who must not access each other's browser data. Browser sessions do not survive process restarts. Call `await browser.close()` through `browserbase__run` after collecting the final result to release the browser. Keep API keys out of prompts, and add approval gates around sensitive or irreversible browser actions. See the [Browserbase extension package](https://www.npmjs.com/package/@browserbasehq/eve) for the complete tool and configuration reference.

[Read the full extension documentation](https://www.npmjs.com/package/@browserbasehq/eve)

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/agents.md](/agents.md)