Skip to content
Stagehand logo

Stagehand

Open-source SDK for AI browser agents using natural-language actions.

Reviewed by Last updated

Overview

Stagehand is an open-source (MIT) SDK for building browser automations and AI agents. It pairs Playwright-style browser control with natural-language commands to act, observe and extract data. Developers use it to mix deterministic code with LLM-driven steps. Common uses include web agents, scrapers and workflow automation.

Browserbase maintains the project and offers SDKs for TypeScript, Python and Go. It works with a range of model providers, including local models. Stagehand can drive a local Chromium-based browser or Browserbase cloud browsers. The hosted option adds a model gateway, server-side caching and session recordings. Browserbase usage and LLM calls are billed separately.

Pros and cons

Pros

  • Pro: MIT-licensed and free to use
  • Pro: SDKs for TypeScript, Python and Go
  • Pro: Works with local models through Ollama
  • Pro: Self-healing actions when page layouts change
  • Pro: observe() returns real selectors, so credentials never pass through the model

Cons

  • Con: LLM calls add token cost to each AI step
  • Con: Only supports Chromium-based browsers
  • Con: Server-side caching needs Browserbase
  • Con: Model gateway, proxies and session recordings require a Browserbase account

Pricing

Pricing model

Free

Starts at

Free

Free tier

Available

Free and open source. Prices are in USD and can change; check the provider for current details.

Frequently asked questions

Is Stagehand open source?

Yes. Stagehand is open source under the MIT license and maintained by Browserbase. As of November 2026 the GitHub repository has about 26,100 stars and 1,800 forks. SDKs are available for TypeScript, Python and Go.

Which models does Stagehand work with?

Most major LLM providers. First-class providers include OpenAI, Anthropic, Google, Azure, Mistral, Groq, DeepSeek, xAI and Ollama for local models. Other Vercel AI SDK providers can be added through a custom llmClient. On Browserbase, the Model Gateway covers OpenAI, Anthropic and Google with a Browserbase API key.

Does Stagehand need Browserbase?

No. Stagehand can run against a local Chrome install, and the browse CLI works locally without an API key. Running on Browserbase adds server-side caching, residential proxies, persistent contexts and session recordings. Browserbase usage is billed separately from the free SDK.

What are act, observe and extract in Stagehand?

They are Stagehand's natural-language primitives. act performs an action described in plain language. observe returns real selectors for matching elements. extract returns structured data validated against a Zod schema in TypeScript or a Pydantic model in Python.

Sofia Lindqvist

Sofia Lindqvist

Market Research Expert

View profile

Sofia studies software markets: who the vendors are, how they package their plans and how their offers compare in the fine print. She tests providers side by side and works out what each plan really costs.

How Stagehand ranks in our comparison lists.

Tools that appear in the same lists and categories.

Building something worth listing?

Submit your product for editorial review.