stagehand
View on GitHubThe SDK to extract data and interact with any site on the web. Get started with Claude Code, Codex, Eve, Mastra, and more.
Stagehand is Browserbase's SDK for browser agents: act(), observe(), and extract() wrap Playwright-style primitives with LLM reasoning, self-healing selectors, and schema-validated extraction. Ships TypeScript, Python, and Go SDKs plus a hosted MCP server for giving coding agents browser control.
Use Cases
AI agents that navigate and act on real websitesSchema-validated structured data extraction from web pagesLogged-in scraping with persistent browser sessionsForm filling and sign-in flows driven by natural languageSelf-healing automation when site UI changesGiving coding agents (Claude Code, Codex) a browser via MCPInvoice/table data harvesting into typed objectsToken-efficient page context for LLM agentsCloud browser execution on Browserbase with cachingMulti-language (TS/Python/Go) browser agent pipelines
Built With
- Language
- TypeScript
- Frameworks
- Playwright · MCP · OpenAI SDK · Zod · Pydantic · OpenTelemetry · Vitest · Turbo · pnpm
Tags
browser-agent · browser-automation · web-scraping · data-extraction · self-healing · playwright · cdp · headless-chrome · cloud-browser · mcp · session-persistence · webmcp · shadow-dom · iframes · opentelemetry · typescript