The problem with browser automation
Traditional frameworks like Playwright and Puppeteer force you to write brittle scripts that break with every UI change. Web agents promise to solve this with AI, but leave you at the mercy of unpredictable behavior. You’re stuck between two bad options:- Too brittle: Traditional selectors break when websites change
- Too agentic: AI agents are unpredictable and impossible to debug
Enter Stagehand
Stagehand gives you two layers of control:- AI primitives (
act,extract,observe) for self-healing natural-language steps - Playwright-style APIs on
page(goto,click,type,locator,screenshot) for deterministic browser control
AI primitives
Act
Execute actions using natural language
Extract
Pull structured data with schemas
Observe
Discover available actions on any page
- TypeScript
- Python
- Go
Playwright-style APIs
When you know the selector or want zero inference, usepage methods you already know.
- TypeScript
- Python
- Go
Why developers choose Stagehand
- Precise control: Mix AI-powered actions with deterministic
pageAPIs. You decide exactly how much AI to use. - Runtime lives in the browser: Stagehand runs next to the page, so remote browsers feel as fast as local ones.
- First-class TypeScript, Python, and Go SDKs: Every method and option matches across supported languages.
- Extraction is typed:
extractvalidates results against a schema you define and hands back fully typed data. - Models are flexible: Use a supported provider by name or supply your own client-side LLM callback.
- Metrics are built in: Read per-method token usage and inference timing with
metrics(). - Built for agent harnesses: Stagehand is the hands. Bring your own agent as the brain (LangChain, CrewAI, Mastra, or a custom loop).
Built for modern development
Stagehand is designed for developers building production browser automations and AI agents that need reliable web access.Works everywhere
Works everywhere
Compatible with all Chromium-based browsers: Chrome, Edge, Arc, Brave, and more. Stagehand drives the browser over the Chrome DevTools Protocol, so there is no Playwright or Puppeteer dependency.
Built by Browserbase
Built by Browserbase
Created and maintained by the team behind enterprise browser infrastructure.
Get started in 60 seconds
Browserbase recommends running Stagehand on Browserbase. A hosted browser is what enables server-side caching and the Model Gateway.
Quickstart
Build your first automation in under a minute
View templates
See real-world automation examples
Join Discord
Get help from the community
Installation
Add Stagehand to your project

