Skip to content
AgentAgent framework

stagehand

SDK for browser agents with Playwright-style API and self-healing actions

Pricing
Open source
Platforms
API, CLI
GitHub stars
26.1K
Last commit
today
Language
TypeScript
License
MIT

About stagehand

stagehand is an open-source agent framework for browser automation. It is available on API and CLI.

Stagehand keeps familiar calls such as goto, click and screenshot, and adds natural-language Act, Observe and Extract. When a site changes, it detects the change and refreshes how an action is performed.

It runs as an extension next to the browser, which the site says keeps remote browsers about as fast as local ones. Token use is reduced by trimming the accessibility tree before sending it to the model.

Available in TypeScript, Python and Go. Other listed features are WebMCP, clipboard support, batched commands, deep locators for nested iframes and OpenTelemetry. MIT licensed, from Browserbase.

What it does

Act, Observe, Extract
Natural-language page automation primitives.
Self-healing actions
Recovers when pages change.
Playwright-style API
goto, click, locator, screenshot.
Accessibility tree trimming
Sends the model less page data.
Three languages
TypeScript, Python and Go.
Observability
OpenTelemetry support.

Good for

  • Build a browser agent that survives site changes
  • Extract structured data with a schema
  • Run agents on remote browsers

Pricing

Open source

MIT

Prices change. Check stagehand.dev before you buy.

stagehand FAQ

Which languages are supported?

TypeScript, Python and Go.

How does it differ from Playwright?

It adds natural-language actions and self-healing for agents, while keeping a similar API.

Is stagehand free?

Yes. stagehand is open source, so you can use and self-host it for free.

What are the best alternatives to stagehand?

The closest alternatives to stagehand are agenticSeek, eigent, GenericAgent, nanobrowser and BrowserKitten.

Alternatives to stagehand

  1. Fully local voice-enabled AI assistant that browses the web, codes and plans tasks

    • Open source
    • Open-source agent
    • 27.7K GitHub stars
    • Personal assistants
  2. eigent

    Agent

    Open-source desktop multi-agent workspace that can control browser and apps

    • Open source
    • Open-source agent
    • 15.8K GitHub stars
    • Personal assistants
  3. Minimal self-evolving agent framework of about 3K lines that controls a computer

    • Open source
    • Open-source agent
    • 14.4K GitHub stars
    • Personal assistants
  4. Chrome and Edge extension where an AI agent works in your signed-in browser

    • Open source
    • Open-source agent
    • 14.3K GitHub stars
    • Browser automation
  5. Side-panel Chrome extension agent that reads signed-in pages and saves files locally

    • Open source
    • Open-source agent
    • 2.4K GitHub stars
    • Browser automation
  6. bux

    Agent

    Always-on Claude Code with a real browser on a cheap VPS you control

    • Open source
    • Open-source agent
    • 464 GitHub stars
    • Personal assistants