CheckOps
Stagehand
Stagehand is Browserbase's MIT-licensed SDK for browser agents, mixing Playwright-style code with natural-language act, extract and observe calls and self-healing actions.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
Stagehand is an open-source SDK for browser agents, built by Browserbase. The repository browserbase/stagehand is MIT-licensed, and the official site describes it this way: “Playwright was built for testing, Stagehand is built for agents.”
It offers familiar Playwright-style methods (goto, click, locator, screenshot) alongside natural-language calls such as act and extract, with self-healing actions. SDKs are available for TypeScript, Python and Go. At review the site showed version 4.
Features
- Natural-language actions:
act()performs an instruction such as clicking an element described in words;extract()pulls structured data. - Playwright-style API: goto, click, locator and screenshot are available for deterministic steps.
- Self-healing actions: Actions can recover when the page changes, according to the site.
- Token efficiency: A hybrid accessibility-tree trimming approach sends the model less page content; the site shows a comparison with plain Playwright.
- Multi-language: TypeScript, Python and Go SDKs.
- Agent features: WebMCP, clipboard support, batched commands, deep locators for nested iframes and OpenTelemetry support are listed.
- Runs anywhere: Works with a local browser or Browserbase’s hosted browsers.
Pros
- MIT licence: Permissive licence suits commercial test harnesses.
- Mix of code and AI: Use deterministic code where you can and AI only where pages vary.
- Popular project: Over 25,000 GitHub stars at review time.
- Speed focus: The site publishes timing comparisons; verify on your own pages.
- Agent-ready: Setup guides cover popular coding agents.
Cons
- Not a test runner: There is no built-in test reporting; use it inside Vitest, Jest or Playwright Test.
- Model costs: AI calls require an LLM provider and add per-run cost.
- Variability: Natural-language actions can behave differently between runs.
- Hosted browsers are paid: Browserbase’s cloud is a separate commercial service; see their site.
- Fast-moving API: Major versions have changed APIs; pin versions.
Usage and Links (Example)
Install and run the quick start from the site:
npm install @browserbasehq/stagehand
const sh = await Stagehand.create();
const page = sh.context.activePage();
await page.goto("https://news.ycombinator.com");
await sh.act("click the first story");
Wrap these calls in your test runner and assert on extracted data. Check the docs for model configuration.
Resources:
Pricing
Stagehand itself is free and open source under MIT. You pay your LLM provider for model calls, and Browserbase’s hosted browsers are billed separately; see browserbase.com for current plans.
Recommended for?
- Engineers building AI-assisted end-to-end tests who want code-level control.
- Teams testing pages that change often, where self-healing actions reduce maintenance.
- Polyglot teams needing TypeScript, Python or Go.
- Not a fit if you want a no-code product with dashboards and reports out of the box.
Conclusion
Stagehand is a well-maintained, permissively licensed SDK that blends Playwright-style code with natural-language browser actions.
It is a building block, not a full test platform. Use it inside your runner, keep critical assertions deterministic, and budget for model usage.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with Stagehand side by side.
BBrowser UseBrowser Use is an open-source, MIT-licensed browser agent that can drive a real browser from natural-language tasks, with a hosted cloud billed by browser-hour rather than a subscription.Compare with Stagehand
SSkyvernSkyvern is an AGPL-licensed AI browser-automation agent that completes workflows on any website using vision and LLMs, with a hosted cloud and a self-hostable Docker build.Compare with Stagehand
PPlaywrightPlaywright is a framework for Web Testing and Automation.Compare with Stagehand
MMidscene.jsMidscene.js is an MIT-licensed, vision-driven GUI agent and E2E test framework for web, Android, iOS, HarmonyOS and desktop, with natural-language YAML or JavaScript tests.Compare with Stagehand
PPlaywright MCPPlaywright MCP is Microsoft's Model Context Protocol server for browser automation, using structured accessibility snapshots.Compare with Stagehand
PPuppeteerJavaScript API for Chrome and Firefox.Compare with Stagehand