Stagehand Review: v4 Changes, Pricing, and Playwright

This Stagehand review explains v4 browser automation, Browserbase pricing, caching limits, and when to choose Playwright or a browser agent.

Jaden WolfeCopywriterNovember 21, 20267 min read
Stagehand Review cover with a laptop, checklist and purple accents.

This Stagehand review evaluates an open-source SDK for browser automation that combines natural-language actions with ordinary code. Its appeal is control: developers can use selectors for predictable steps and ask a model to interpret unfamiliar pages. The current v4 documentation also changes the buying question by removing the SDK's built-in agent loop.

Stagehand is worth considering for teams automating changing third-party portals. It demands engineering ownership of workflow logic, verification, and failures. This assessment uses official sources checked November 21, 2026; it does not claim hands-on benchmark results.

Stagehand Review: What the SDK Actually Does

Stagehand offers three AI primitives: act() performs an instruction, observe() identifies possible actions, and extract() returns structured information. Alongside them, a Playwright-style page API supports deterministic navigation and interaction. You decide where inference earns its cost.

For example, a receipt-collection workflow could navigate to a known portal, locate an unfamiliar billing menu with natural language, then extract invoice fields into a schema. Finding the invoice and proving it belongs to the requested account remain separate checks.

The SDK and Browserbase are different products. Stagehand is MIT-licensed software; Browserbase supplies hosted browser infrastructure. Running locally avoids buying that cloud service, although model calls and your own infrastructure can still cost money.

For another approach to browser agents, SD's Browser Use review provides useful comparison context. Evaluate both against the same task and acceptance criteria. A successful demo on one website says little about reliability across your actual accounts, layouts, and login states.

What Changes in Stagehand v4?

The biggest migration issue is that agent() is gone. The official guide recommends either code mode, where a coding assistant produces a script you run, or a tool-calling loop controlled by your application. Existing autonomous workflows need a control-flow redesign rather than a mechanical method rename.

Construction now uses a browser factory followed by Stagehand.create({ browser }). Browser context access belongs to the browser handle, and AI primitives return { data, metadata }. Older examples can therefore look plausible while targeting the wrong API generation.

Pin the SDK version and use its matching documentation. First verify that one workflow starts, selects the intended page, reads its result, and cleans up correctly. Only then migrate a larger catalog of instructions. Keep old examples out of generated-code prompts unless they are explicitly labeled for migration.

The practical consequence is more visible application ownership. Decide how many steps a run may take, when it stops, and what happens after ambiguous output. The absence of a built-in agent loop can be helpful when those decisions must be reviewed as normal code.

Extraction: Typed Output Still Needs Evidence

The extraction API accepts a requested output shape, using Zod in TypeScript, Pydantic in Python, or a Go type. Stagehand validates the returned structure. That helps downstream code consume predictable fields instead of parsing free-form prose.

A schema does not establish factual correctness. A price can be numeric yet come from the wrong subscription tier. An invoice date can be formatted correctly while referring to the previous billing period. Validate business meaning against the page and the requested account.

For a pilot, include missing values, multiple currencies, pagination, and empty result sets. Preserve enough evidence to explain a mismatch. Define whether a missing field should be null, trigger another read, or stop the workflow; otherwise a plausible replacement may escape notice.

Prefer narrow extraction requests. Asking for an invoice number, date, amount, and currency gives reviewers a clearer contract than asking for everything important on a page. Keep the original visible value when normalization could change its interpretation.

Sessions, Approvals, and Failure Recovery

Local runs can persist cookies and local storage through a supplied user-data directory. Cloud runs can use Browserbase contexts. Persistent authentication saves repeated logins, but also makes account isolation an application responsibility. A shared profile can accidentally put a correct automation in the wrong customer's session.

Maintain separate contexts for separate identities and confirm the active account before reading private records or changing anything. Treat stored browser profiles as sensitive application data, with an explicit owner and deletion process.

Browserbase's approval cookbook puts the final submission behind an application-enforced human decision. The model cannot grant that consent. A production implementation should show the destination and exact field values, then ensure approval still matches the pending action.

For workflows that pause across processes, SD's LangGraph review explains relevant persistence and review concepts. Browser control and durable workflow state solve different parts of the job; neither automatically supplies the other.

Avoid blindly retrying a failed submission. A timeout can occur after the website accepted the action. Reconcile the resulting page or transaction record before attempting it again. Test this situation deliberately using a harmless destination before handling consequential operations.

Before using production accounts, map which page content reaches your model provider and which artifacts your browser host retains. Local browser execution does not imply local model inference. Review logs, screenshots, extracted fields, and saved profiles separately, because they can expose different portions of a session. Use synthetic records during initial development, then grant only the access needed for the pilot. This is a deployment review task for your team, rather than a privacy guarantee supplied by the SDK.

Stagehand Pricing: Budget Beyond the SDK

Stagehand's open-source license has no SDK subscription fee. Budget separately for model inference, browser runtime, proxies when needed, and operating the workflow. Hosted Browserbase Agents also have their own allocations; those should not be confused with unlimited Stagehand execution.

On the checked Browserbase pricing page, Developer costs $20 monthly and includes 100 browser hours and 25 concurrent browsers. Additional browser time is $0.12 per hour. Startup costs $99 monthly with 500 hours, 100 concurrent browsers, and $0.10 hourly overage.

Developer includes 1 GB of proxy traffic, then charges $12 per GB; Startup includes 5 GB, then $10 per GB. Model Gateway usage is separately metered at listed market pricing. These figures are a dated purchasing snapshot, not a guaranteed future quote.

As an illustration, 300 browser hours on Developer would cost $44 before model usage, proxy overages, and other charges: $20 plus 200 additional hours at $0.12. This is arithmetic from published rates, not a measured workload cost. Compare cost per correctly completed task, including failed attempts and human intervention.

Caching Helps Only When the Workflow Qualifies

Current documentation describes server-side caching for eligible act(), observe(), and extract() calls. It requires a Browserbase browser and project enablement. Local calls do not gain that managed cache simply by passing a cache option.

Browserbase recommends caching for repeated steps on stable URLs with the same nonpersonalized content and no sensitive call values. A public catalog and an authenticated customer dashboard are therefore different candidates. Do not assume a savings estimate from the former transfers to the latter.

Inspect cache status and distinguish repeated runs from first-time work. Measure latency and inference spending in both cases. If your application mostly visits unique private pages, build the business case without assuming widespread cache hits.

Stagehand vs Playwright: Which Should You Choose?

Choose Playwright first when you control the application, can establish stable testing contracts, and need repeatable assertions in CI. Its official guidance recommends user-facing locators and explicit contracts; conventional automation need not depend on fragile positional CSS chains.

Consider Stagehand when page interpretation changes often enough to justify selective inference. Keep known steps deterministic and constrain uncertain ones. Browserbase markets self-healing behavior, but that is a vendor capability claim rather than proof that every redesigned page will work.

A direct API may be simpler when the target service exposes the exact operation you need. Browser automation adds rendering, login, navigation, and page-state dependencies. Use it where those costs buy necessary access or flexibility.

Before adoption, create a small evaluation set with successful paths, ambiguous buttons, expired sessions, missing records, and interrupted submissions. SD's Promptfoo review offers context for organizing repeatable AI evaluations. Record task correctness, duplicate actions, recovery behavior, human review time, and total cost together.

Conclusion

This Stagehand review finds a useful fit for developers who need selective AI interpretation inside controlled browser workflows. The v4 changes make version-aware implementation essential, while Browserbase pricing and cache eligibility shape operating costs. Start with a narrow pilot, verify outcomes independently, and expand only when correctness and recovery justify the added inference and infrastructure.

Written by

JW

Jaden Wolfe

Copywriter

FAQ

Is Stagehand free?

The SDK is open source under MIT. Local infrastructure and model inference can still incur costs, while Browserbase is a separate hosted service.

Can Stagehand run without Browserbase?

Yes. The documentation supports launching a local browser or attaching to an existing Chromium browser over CDP. Managed Browserbase features require the cloud path.

Does Stagehand v4 still include an autonomous agent?

The built-in `agent()` API was removed. You can run an assistant-generated script or provide a tool-calling loop in your own application.

Related reading

More from the publication.