Skip to main content
The Stagehand integration binds run, snapshot, and screenshot as native in-process Eve tools backed by one durable browser session, without starting an MCP server or bridge process. Eve is Vercel’s framework for building agents with Markdown instructions and skills, TypeScript tools, and durable execution.
Stagehand ships this experimental integration from the repository rather than publishing it as a standalone adapter.

Prerequisites

  • Node.js 24 or newer
  • pnpm 11.10.0
  • A model-provider credential for Eve
  • A current Google Chrome installation for local browser mode

Quickstart

1

Clone and build Stagehand

2

Configure the Eve model

The example uses an OpenAI model by default:
Set EVE_STAGEHAND_MODEL to select another Eve model.
3

Choose the browser

The example uses local Chrome by default. To use Browserbase instead:
4

Start Eve

5

Run a browser task

At Eve’s > terminal prompt, enter:
Eve uses the run tool and should report Example Domain before returning to the prompt.

Configuration

Session lifecycle

One Eve world process owns one shared browser. Use this example for a single Eve session because concurrent sessions in the process share pages, authentication, and other browser state. On Browserbase, the example creates a keepAlive session and writes its ID to a temporary file. A process restart reattaches to the stored session instead of silently creating another one. Tool errors do not reset a healthy browser.
A Browserbase keep-alive session continues running and can continue billing until Eve reattaches it, you release it through Browserbase, or the project timeout ends it.
run executes model-authored JavaScript in the browser. For untrusted tasks, review the integration security boundary.

Eve integration source

Read the native tool bindings and durable-session implementation.