Stagehand: The AI Browser Automation Framework

Control browsers with natural language and code for flexible, maintainable, reliable automation.

Stars
★ 26k
FARS reviewed
Nov 07, 2026 +1 new
License
MIT
Primary language
TypeScript

At a glance

How it runs
Library / SDKMCP server
Works with
Platform-specific
Cost
Free software; you pay for model usage
Integrations
Connects to MCP servers · OpenTelemetry traces per README
Setup effort
Low · running in minutes
You'll need
Node.jspnpmLLM API keyBrowserbase credentialsShell / CLINetwork accessLocal filesystem
Typical use
Frontend developers needing to automate tests for dynamic web apps without writing brittle selectors.
Not a fit if
  • Developers outside TypeScript, Python, and Go, the only official SDKs
  • Teams that want zero per-use LLM costs
Website
stagehand.dev ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-01latest release @browserbasehq/[email protected] (2026-11-18)+12.6 ★/day over 7 days
Source review
68/100 · Some gaps

What does this agent do, and when should you use it?

Stagehand is a browser automation framework that combines AI with code, letting developers use natural language for actions while retaining precise control via code. Built on a CDP engine, it offers core APIs like act(), agent(), and extract() for individual actions, multi-step tasks, and structured data extraction. The framework features auto-caching and self-healing, remembering repeated actions to reduce LLM inference and recovering when websites change. Written in TypeScript and managed with pnpm, it integrates into existing Node.js projects. It requires an LLM API key and optionally Browserbase credentials.

Stagehand interacts with the browser via its CDP engine, providing act() to execute a single natural language instruction (e.g., 'click on the stagehand repo'), agent() for multi-step tasks (e.g., 'Get to the latest PR'), and extract() to pull structured data (e.g., PR author and title) with Zod schemas. It automatically caches actions to avoid LLM calls and self-heals when page changes break automation. Setup can be done via npx create-browser-app or by cloning and building with pnpm.

  1. Frontend developers needing to automate tests for dynamic web apps without writing brittle selectors.
  2. Data engineers extracting structured data from sites with frequently changing HTML.
  3. DevOps engineers monitoring web dashboards and performing routine clicks via natural language.
  4. QA engineers replacing fragile selectors with natural language to stabilize test suites.
  5. Product managers prototyping automation workflows quickly without deep coding knowledge.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npx create-browser-app
Config files
.env.example .env

How do you install or deploy this agent?

Requires Node.js and pnpm. Clone the repo: git clone https://github.com/browserbase/stagehand.git, cd in, run pnpm install and pnpm run build. Alternatively, use npx create-browser-app to scaffold a new project. You'll need an LLM API key (e.g., OpenAI) and Browserbase credentials–copy .env.example to .env and fill in values.

How do you use this agent?

After install, run pnpm run example to try the sample. In code, use stagehand.act("click on the stagehand repo") for single actions, stagehand.agent().execute("Get to the latest PR") for multi-step, and stagehand.extract(...) with a Zod schema to get data. Ensure env vars are set for LLM and Browserbase.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

README-backed isolation & workflow protocols

Protocols & surfaces
Connects to MCP servers OpenTelemetry traces

What are this agent's strengths and limitations?

Pros
  • Blends natural language with code, allowing flexibility on unfamiliar pages and precision when needed.
  • Auto-caching remembers repeated actions, saving tokens and reducing latency.
  • Offers clear APIs (act, agent, extract) covering a wide range of automation needs.
  • Built on CDP and Playwright, providing a stable and debuggable foundation.
Limitations
  • Requires LLM API keys, incurring per-use costs.
  • Depends on Browserbase for remote browser management, adding a third-party service.
  • As a relatively new framework, its ecosystem and docs are less mature than Selenium or Playwright.
  • Primarily TypeScript/Node.js, which may be a barrier for developers in other languages.

How does this agent compare with similar options?

Compared to traditional automation tools like Selenium or Playwright, Stagehand lets you replace some low-level code with natural language, reducing maintenance overhead.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Stagehand: The AI Browser Automation Framework This agent 68 · Some gaps Library / SDKFree + model costs ★ 26k 1d ago TypeScript —
Uni-CLI 83 · Good CLIFree ★ 229 1mo ago TypeScript ChatGPT · Codex · Claude Code
CamoFox Browser Server 63 · Some gaps Self-hosted serviceFree ★ 463 27d ago JavaScript Claude Code
Notte Web Automation 64 · Some gaps Library / SDKFreemium ★ 2.1k today Python —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
68/ 100 5-point scale 3.4 / 5
This review covers the source as of Nov 07, 2026. The project has shipped 1 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 16/29
Reliability 9/14
Adaptability 14/18
Convention 14/18
Effectiveness 10/13
Verifiability 5/8
Why each dimension lost points
Trust16 / 29 · 2.8/5

The CLI skill distinguishes local, remote, and auto-connect modes and says to attach to an existing debuggable browser only when the user explicitly wants that; examples pass credentials through environment variables, and the README says credentials do not reach the model. The CLI can also read pages, capture network traffic, upload files, use proxies, and call cloud APIs; ordinary page actions show no per-action confirmation or general undo mechanism, so least privilege, confirmation, and external-effects scores are reduced. Test material says unknown-command telemetry omits raw arguments, adding some data-flow evidence, but telemetry scope and SDK data handling are not fully shown. The repository provides a security reporting channel, a latest-release support policy, and SHA-pinned CI actions, but the packet does not show the full lockfile or dependency vulnerability handling, so dependency security is not full marks.

Reliability9 / 14 · 3.2/5

The README, skill, and exported entry points support a coherent description of a multilingual browser automation product. Examples close resources, and CLI signal handling attempts to clean up active resources, while noting that upstream task cancellation is not guaranteed. Test code shows command-contract coverage, and the CLI offers diagnostics and readable errors; this static packet cannot establish that the software runs or produces correct results.

Adaptability14 / 18 · 3.9/5

The material covers TypeScript, Python, and Go SDKs, a CLI skill, MCP integration, cloud browsers, and fetch/search use cases, while specifying conditions such as local Chrome, Node, API keys, session modes, and some cloud features. The capabilities are broad but their permission and scope boundaries are incomplete; the skill trigger description spans many different tasks and is not especially precise. Environment guidance is concrete, though some README feature details depend on external documentation.

Convention14 / 18 · 3.9/5

The repository product map, README navigation, CLI skill, and security policy are clearly organized; the packet includes multilingual installation instructions, quick examples, contribution guidance, an MIT license, and a supported-version policy. Version information and migration links are visible, but no changelog content is included. Installation still depends on external runtimes and a browser, with full setup deferred to external docs. Maintenance and security-reporting channels are identified, but release ownership and update cadence are not sufficiently clear.

Effectiveness10 / 13 · 3.8/5

Examples show a complete login, browse, and schema-based extraction flow; the CLI provides snapshots, screenshots, reads, and interactions. Typed interfaces and structured output support downstream use. The value for browser agents is clear, but claims about self-healing, speed, and token savings are product claims without independent measurements in this packet, while cloud services, model calls, and browser setup add cost and configuration burden.

Verifiability5 / 8 · 3.1/5

Key installation methods, API categories, runtime requirements, and security contact are traceable across the README, skill, source entry point, package metadata, and SECURITY.md. The README and test material separately support some data-handling and CLI behavior claims. CI files describe checks but do not prove they passed. Performance and self-healing claims lack independent evidence in this packet, and facts, example comments, and promotional inferences are not consistently separated, so all three criteria are reduced.

Risks and how to mitigate them
  • Browser automation may access authenticated sessions and perform real actions on websites; confirm the target, session, and action scope, and review how page content and captured network data are handled.
  • Remote browsers and cloud APIs require credentials; some features also involve proxies, verified mode, or persistent contexts. Check data flows, costs, and retention settings before sensitive use.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision 310957518a93 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/stagehand.svg)](https://followagents.com/en/agents/stagehand)
<a href="https://followagents.com/en/agents/stagehand"><img src="https://followagents.com/badge/stagehand.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. Release notes excerpt
    Patch Changes - [#3150](https://github.com/browserbase/stagehand/pull/3150) [69c2440](https://github.com/browserbase/stagehand/commit/69c2440b7a69b4ac561d088b093b82a278e430a2) Thanks [@miguelg719](https://github.com/miguelg719)! - Fix OpenAI strict-schema rejection of the nullable act action while still stripping unknown keys when parsing. …
    View on GitHub ↗
  2. stagehand-server-v3/v3.7.7 stagehand/server-v3 v3.7.7
    Release notes excerpt
    What's Changed * fix(v3): set additionalProperties false on nullable act action schema by @miguelg719 in https://github.com/browserbase/stagehand/pull/3150 * fix(v3): honor CAPTCHA awareness options for local attachments by @miguelg719 in https://github.com/browserbase/stagehand/pull/3114 * fix(v3): avoid forced done tool use for newer Claude models by @shubh24 in https://github.com/browserbase/stagehand/pull/3132 * Fix(v3): use XPath as fallback when the page has a shadow root by @akeimach in https://github.com/browserbase/stagehand/pull/3287 …
    View on GitHub ↗
  3. Release notes excerpt
    Patch Changes - [#2842](https://github.com/browserbase/stagehand/pull/2842) [f86e609](https://github.com/browserbase/stagehand/commit/f86e609b934d3f8ae625f5399104df2df9ade7a5) Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - update the MCP SDK to v1.30 and refresh supporting dependency versions …
    View on GitHub ↗

FAQ

Does Stagehand support Python?
Yes, there is a separate Python implementation available at browserbase/stagehand-python, but this repository is the TypeScript version.
What credentials do I need?
You need an LLM provider API key (e.g., OpenAI) and Browserbase credentials for browser management.
How does Stagehand handle website changes?
It uses auto-caching and self-healing: when an action fails due to page changes, it re-engages AI to re-plan steps.
Can I install Stagehand into an existing project?
Yes, use pnpm to add the package from a branch, e.g., pnpm add "github:browserbase/stagehand#<branch>&path:/packages/core".
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts