Stagehand
SDK for browser agents: act, extract and observe pages in plain language
What it is
A TypeScript and Python SDK that mixes ordinary browser automation code with AI steps. You can ask it to act on a page, extract structured data against a schema or observe elements to get real selectors, and it repairs steps when a site changes. For developers who want controllable browser agents rather than fully autonomous ones.
Good for
- Extract structured data from a logged-in page
- Write resilient end-to-end browser steps
- Keep credentials out of model prompts
Install or run
pnpm add @browserbasehq/stagehand 'zod@~4.4.3'Command as given in the project README. Read the repository before you run anything on your machine.
What you need
Node.js or Python, an LLM API key; local Chrome or a Browserbase account
Sources
- https://github.com/browserbase/stagehand (project README, read 11 Nov 2026)
- https://api.github.com/repos/browserbase/stagehand (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.