ClaudeMap

Stagehand

The SDK for browser agents — Playwright-style API with act, extract, and observe primitives.

SDKs & Toolingbrowserautomationsdkplaywright

Stagehand (by Browserbase, 24k+ stars) is the SDK for building browser agents: a Playwright-style API where you combine deterministic code with AI-driven act/extract/observe steps that operate by natural language. Works with Claude and other frontier models. Use it directly for custom browser agents; pair with the Browserbase MCP server when you want Claude driving a managed cloud browser.

What it does

  • Browserbase's AI browser automation framework: `act`, `extract`, `observe` primitives over Playwright
  • Natural-language actions get cached as deterministic replays for speed/cost
  • TypeScript first (`pnpm add @browserbasehq/stagehand` + zod), Python and Go SDKs available

When to use it

When you want browser automation that survives UI changes — describe intent ('click sign in') rather than selectors; pairs with the Browserbase MCP for hosted sessions.

Getting started

pnpm add @browserbasehq/stagehand 'zod@~4.4.3'

Python: `pip install stagehand`. Go: `go get github.com/browserbase/stagehand/packages/sdk-go/v4@v4.0.0`.

Things to know

zod is pinned to `~4.4.3` — a different zod major can break extraction schemas. AI-driven steps need a model key; local runs need a browser, cloud runs bill Browserbase sessions.

Repository

browserbase/stagehand

Charted

Related on the map

  • Harness Bridge

    SDK / Tool

    A local launcher that points Claude Code and seven other coding harnesses at any OpenAI-, Anthropic- or Responses-compatible endpoint — without editing a single config file.

    • launcher
    • local-models
    • cli
    • menu-bar
  • Claude for Siri

    SDK / Tool

    Answers macOS Spotlight and Siri prompts with your signed-in Claude Code account — an experimental macOS 27 model-delegation provider.

    • macos
    • siri
    • spotlight
    • model-delegation
  • Extract your own local chat history from ten AI coding assistants into one normalized JSONL — for fine-tuning, analytics, or backing up years of conversations. Standard library only.

    • cli
    • data-export
    • jsonl
    • backup