Stagehand: The AI Browser Automation Framework
Control browsers with natural language and code for flexible, maintainable, reliable automation.
- Source repo
- browserbase/stagehand
- Stars
- ★ 26k
- Last updated
- 1d ago @browserbasehq/[email protected]
- FARS reviewed
- Nov 07, 2026 +1 new
- License
- MIT
- Primary language
- TypeScript
- FA score
- 68/100 · Some gaps
At a glance
- How it runs
- 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
- 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.
- Frontend developers needing to automate tests for dynamic web apps without writing brittle selectors.
- Data engineers extracting structured data from sites with frequently changing HTML.
- DevOps engineers monitoring web dashboards and performing routine clicks via natural language.
- QA engineers replacing fragile selectors with natural language to stabilize test suites.
- 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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
README-backed isolation & workflow protocols
What are this agent's strengths and limitations?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
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 ↗ -
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 ↗ -
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?
What credentials do I need?
How does Stagehand handle website changes?
Can I install Stagehand into an existing project?
pnpm add "github:browserbase/stagehand#<branch>&path:/packages/core".Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.