This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @browserbasehq/stagehand@3.4.0 ### Minor Changes - [#2084](https://github.com/browserbase/stagehand/pull/2084) [`0641d44`](0641d44a84) Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - add ignoreSelectors param to extract() - [#2096](https://github.com/browserbase/stagehand/pull/2096) [`a11603d`](a11603d09d) Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - add ignoreSelectors to observe() ### Patch Changes - [#2080](https://github.com/browserbase/stagehand/pull/2080) [`21c78b3`](21c78b3a50) Thanks [@miguelg719](https://github.com/miguelg719)! - Add variables support to v3 agentExecute API schema and remove experimental requirement - [#2077](https://github.com/browserbase/stagehand/pull/2077) [`f437f73`](f437f738d2) Thanks [@monadoid](https://github.com/monadoid)! - Fix frame registry handling for OOPIF pages - [#2098](https://github.com/browserbase/stagehand/pull/2098) [`a783b99`](a783b99fb9) Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - bump transitive deps to patched versions - [#2089](https://github.com/browserbase/stagehand/pull/2089) [`8d2f354`](8d2f354142) Thanks [@shrey150](https://github.com/shrey150)! - Strengthen observe prompts so LLMs return complete encoded element IDs. - [#2047](https://github.com/browserbase/stagehand/pull/2047) [`a87c1fc`](a87c1fc435) Thanks [@tkattkat](https://github.com/tkattkat)! - Set default agent mode to hybrid with auto routing to dom for non compatible models - [#2101](https://github.com/browserbase/stagehand/pull/2101) [`26e6c96`](26e6c960ca) Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - move playwright-core, puppeteer-core, patchright-core from optional dependencies to peer dependencies - [#2068](https://github.com/browserbase/stagehand/pull/2068) [`1d176c4`](1d176c466e) Thanks [@filip-michalsky](https://github.com/filip-michalsky)! - Remove the default temperature setting from v3 agent AI SDK calls so reasoning models that do not support temperature run without provider warnings. - [#2040](https://github.com/browserbase/stagehand/pull/2040) [`1fa9613`](1fa96130ab) Thanks [@monadoid](https://github.com/monadoid)! - Prefer `STAGEHAND_API_URL` for Stagehand API overrides while retaining `STAGEHAND_BASE_URL` as a deprecated fallback. - [#2065](https://github.com/browserbase/stagehand/pull/2065) [`9ff70dd`](9ff70dd26c) Thanks [@miguelg719](https://github.com/miguelg719)! - Add support for CUA models: openai/gpt-5.4-mini, openai/gpt-5.5, and anthropic/claude-haiku-4-5 - [#2039](https://github.com/browserbase/stagehand/pull/2039) [`7640381`](76403819b8) Thanks [@monadoid](https://github.com/monadoid)! - Deprecate Browserbase project ID configuration. ## @browserbasehq/stagehand-evals@2.0.1 ### Patch Changes - Updated dependencies \[[`21c78b3`](21c78b3a50), [`0641d44`](0641d44a84), [`f437f73`](f437f738d2), [`a783b99`](a783b99fb9), [`8d2f354`](8d2f354142), [`a11603d`](a11603d09d), [`a87c1fc`](a87c1fc435), [`26e6c96`](26e6c960ca), [`1d176c4`](1d176c466e), [`1fa9613`](1fa96130ab), [`9ff70dd`](9ff70dd26c), [`7640381`](76403819b8)]: - @browserbasehq/stagehand@3.4.0 ## @browserbasehq/stagehand-server-v3@3.6.4 ### Patch Changes - [#2098](https://github.com/browserbase/stagehand/pull/2098) [`a783b99`](a783b99fb9) Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - bump transitive deps to patched versions - [#2091](https://github.com/browserbase/stagehand/pull/2091) [`de132bc`](de132bc6f2) Thanks [@pirate](https://github.com/pirate)! - Default the v3 server listener to localhost, respect explicit HOST values, and warn when HOST=0.0.0.0 exposes all interfaces. - [#2040](https://github.com/browserbase/stagehand/pull/2040) [`1fa9613`](1fa96130ab) Thanks [@monadoid](https://github.com/monadoid)! - Prefer `STAGEHAND_API_URL` for Stagehand API overrides while retaining `STAGEHAND_BASE_URL` as a deprecated fallback. - [#2094](https://github.com/browserbase/stagehand/pull/2094) [`4a808c4`](4a808c4378) Thanks [@monadoid](https://github.com/monadoid)! - Make the model API key optional in the v3 OpenAPI security requirements. - [#2039](https://github.com/browserbase/stagehand/pull/2039) [`7640381`](76403819b8) Thanks [@monadoid](https://github.com/monadoid)! - Deprecate Browserbase project ID configuration. - Updated dependencies \[[`21c78b3`](21c78b3a50), [`0641d44`](0641d44a84), [`f437f73`](f437f738d2), [`a783b99`](a783b99fb9), [`8d2f354`](8d2f354142), [`a11603d`](a11603d09d), [`a87c1fc`](a87c1fc435), [`26e6c96`](26e6c960ca), [`1d176c4`](1d176c466e), [`1fa9613`](1fa96130ab), [`9ff70dd`](9ff70dd26c), [`7640381`](76403819b8)]: - @browserbasehq/stagehand@3.4.0 ## @browserbasehq/stagehand-server-v4@3.6.4 ### Patch Changes - [#2098](https://github.com/browserbase/stagehand/pull/2098) [`a783b99`](a783b99fb9) Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - bump transitive deps to patched versions - Updated dependencies \[[`21c78b3`](21c78b3a50), [`0641d44`](0641d44a84), [`f437f73`](f437f738d2), [`a783b99`](a783b99fb9), [`8d2f354`](8d2f354142), [`a11603d`](a11603d09d), [`a87c1fc`](a87c1fc435), [`26e6c96`](26e6c960ca), [`1d176c4`](1d176c466e), [`1fa9613`](1fa96130ab), [`9ff70dd`](9ff70dd26c), [`7640381`](76403819b8)]: - @browserbasehq/stagehand@3.4.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The AI Browser Automation Framework
Read the Docs
If you're looking for the Python implementation, you can find it here
What is Stagehand?
Stagehand is a browser automation framework used to control web browsers with natural language and code. By combining the power of AI with the precision of code, Stagehand makes web automation flexible, maintainable, and actually reliable.
Why Stagehand?
Most existing browser automation tools either require you to write low-level code in a framework like Selenium, Playwright, or Puppeteer, or use high-level agents that can be unpredictable in production. By letting developers choose what to write in code vs. natural language (and bridging the gap between the two) Stagehand is the natural choice for browser automations in production.
-
Choose when to write code vs. natural language: use AI when you want to navigate unfamiliar pages, and use code when you know exactly what you want to do.
-
Go from AI-driven to repeatable workflows: Stagehand lets you preview AI actions before running them, and also helps you easily cache repeatable actions to save time and tokens.
-
Write once, run forever: Stagehand's auto-caching combined with self-healing remembers previous actions, runs without LLM inference, and knows when to involve AI whenever the website changes and your automation breaks.
Getting Started
Start with Stagehand with one line of code, or check out our Quickstart Guide for more information:
npx create-browser-app
Example
Here's how to build a sample browser automation with Stagehand:
// Stagehand's CDP engine provides an optimized, low level interface to the browser built for automation
const page = stagehand.context.pages()[0];
await page.goto("https://github.com/browserbase");
// Use act() to execute individual actions
await stagehand.act("click on the stagehand repo");
// Use agent() for multi-step tasks
const agent = stagehand.agent();
await agent.execute("Get to the latest PR");
// Use extract() to get structured data from the page
const { author, title } = await stagehand.extract(
"extract the author and title of the PR",
z.object({
author: z.string().describe("The username of the PR author"),
title: z.string().describe("The title of the PR"),
}),
);
Documentation
Visit docs.stagehand.dev to view the full documentation.
Build and Run from Source
git clone https://github.com/browserbase/stagehand.git
cd stagehand
pnpm install
pnpm run build
pnpm run example # run the blank script at ./examples/example.ts
Stagehand is best when you have an API key for an LLM provider and Browserbase credentials. To add these to your project, run:
cp .env.example .env
nano .env # Edit the .env file to add API keys
Installing from a branch
You can install and build Stagehand directly from a github branch using gitpkg
In your project's package.json set:
"@browserbasehq/stagehand": "https://gitpkg.now.sh/browserbase/stagehand/packages/core?<branchName>",
Contributing
Note
We highly value contributions to Stagehand! For questions or support, please join our Discord community.
At a high level, we're focused on improving reliability, extensibility, speed, and cost in that order of priority. If you're interested in contributing, bug fixes and small improvements are the best way to get started. For more involved features, we strongly recommend reaching out to Miguel Gonzalez or Paul Klein in our Discord community before starting to ensure that your contribution aligns with our goals.
Acknowledgements
We'd like to thank the following people for their major contributions to Stagehand:
- Paul Klein
- Sean McGuire
- Miguel Gonzalez
- Sameel Arif
- Thomas Katwan
- Filip Michalsky
- Anirudh Kamath
- Jeremy Press
- Navid Pour
License
Licensed under the MIT License.
Copyright 2025 Browserbase, Inc.