Stagehand
AI / ML development tool · Free
A browser automation framework with AI actions and data extraction: it combines programmed operations and natural language in browser workflows.
Also known as: browserbase/stagehand; ai-web-framework; stagehand-framework

What you can use for free
A local code pipeline under MIT; rights for the selected models are checked separately.
Paid features and costs
Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights.
Access and limitations
A local code pipeline under MIT; rights for the selected models are checked separately. Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights.
Use cases
- Connect AI actions to browser automation
- Compare AI action/extraction with a programmed browser workflow
Example workflow
A possible workflow; this is not a report of hands-on testing.
Connect AI actions to browser automation.
Before you start
- Test documents or tasks, and a quality criterion.
- Models, a runtime, and a computing budget.
Steps
- Define the web task and expected extracted fields.
- Compare AI action/extraction with a programmed browser workflow.
- Connect the workflow to the application and make errors observable.
Check your result
- Check the result against reference examples and invalid inputs.
- Inference costs, model rights, and data handling have been established.
Choosing Stagehand
Connect AI actions to browser automation
Choose this when
- Connect AI actions to browser automation
- Compare AI action/extraction with a programmed browser workflow
Requirements
- A local run requires Chrome and a configured model API key; choose documentation for the major version you use.
Things to consider
- Costs and limits of free use: Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights.
- Terms of use: MIT for the code; dependencies have separate licenses.
- Self-healing and schema validation do not guarantee every operation's correctness. Page data may be sent to the selected model, and the API and hosted browser have separate terms.
Frequently asked questions
What can you use for free in Stagehand?
A local code pipeline under MIT; rights for the selected models are checked separately.
What additional costs might arise with Stagehand?
Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights.
What terms of use matter for Stagehand?
MIT for the code; dependencies have separate licenses.
How do you get started with Stagehand?
Define the web task and expected extracted fields. Compare AI action/extraction with a programmed browser workflow. Connect the workflow to the application and make errors observable.
How can I combine Stagehand with ordinary browser selectors?
observe returns selectors, act performs an action from a text instruction, and extract returns schema-validated data. The v4 README demonstrates a local browser with cookie persistence and TypeScript/Python/Go SDKs; credentials can be entered through a locator without including them in the model's task text. Hosted Browserbase and its MCP are connected separately.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- Stagehand
- ml
- Development