Stagehand is an open-source browser automation SDK for TypeScript, Python and Go. It keeps Playwright-style methods like goto, click and screenshot and adds natural-language ones: act performs an action described in plain language, observe returns candidate elements, and extract returns data validated against a schema.
It trims the accessibility tree to cut the context sent to the model, can persist cookies in a local profile, and can cache repeated actions when run on Browserbase's cloud.
Install with pnpm add @browserbasehq/stagehand, pip install stagehand or go get. Local runs need Chrome. It is MIT licensed, and Browserbase-hosted features need an API key.