browserbase/stagehand

每日信息看板 · 2026-02-21
开源项目
Category
github_search
Source
10
Score
2026-02-21T01:56:42Z
Published

AI 总结

Browserbase 在 GitHub 开源 Stagehand 浏览器自动化框架,用“自然语言+代码”结合与自动缓存/自愈机制提升生产环境自动化的可靠性与可维护性。
#GitHub #repo #开源项目 #Stagehand #Browserbase

内容摘录

<div id="toc" align="center" style="margin-bottom: 0;">
 <ul style="list-style: none; margin: 0; padding: 0;">
 <a href="https://stagehand.dev">
 <picture>
 <source media="(prefers-color-scheme: dark)" srcset="media/dark_logo.png" />
 <img alt="Stagehand" src="media/light_logo.png" width="200" style="margin-right: 30px;" />
 </picture>
 </a>
 </ul>
</div>
<p align="center">
 <strong>The AI Browser Automation Framework</strong><br>
 <a href="https://docs.stagehand.dev">Read the Docs</a>
</p>

<p align="center">
 <a href="https://github.com/browserbase/stagehand/tree/main?tab=MIT-1-ov-file#MIT-1-ov-file">
 <picture>
 <source media="(prefers-color-scheme: dark)" srcset="media/dark_license.svg" />
 <img alt="MIT License" src="media/light_license.svg" />
 </picture>
 </a>
 <a href="https://stagehand.dev/discord">
 <picture>
 <source media="(prefers-color-scheme: dark)" srcset="media/dark_discord.svg" />
 <img alt="Discord Community" src="media/light_discord.svg" />
 </picture>
 </a>
</p>

<p align="center">
 <a href="https://trendshift.io/repositories/12122" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12122" alt="browserbase%2Fstagehand | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
</p>

<p align="center">
 <a href="https://deepwiki.com/browserbase/stagehand">
 <img alt="Ask DeepWiki" src="https://deepwiki.com/badge.svg" />
 </a>
</p>

<p align="center">
If you're looking for the Python implementation, you can find it 
<a href="https://github.com/browserbase/stagehand-python"> here</a>
</p>

<div align="center" style="display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 0;">
 <b>Vibe code</b>
 <span style="font-size: 1.05em;"> Stagehand with </span>
 <a href="https://director.ai" style="display: flex; align-items: center;">
 <span>Director</span>
 </a>
 <span> </span>
 <picture>
 <img alt="Director" src="media/director_icon.svg" width="25" />
 </picture>
</div>
What is Stagehand?

Stagehand is a browser automation framework used to control web browsers with natural language and code. By combining the power of AI with the precision of code, Stagehand makes web automation flexible, maintainable, and actually reliable.
Why Stagehand?

Most existing browser automation tools either require you to write low-level code in a framework like Selenium, Playwright, or Puppeteer, or use high-level agents that can be unpredictable in production. By letting developers choose what to write in code vs. natural language (and bridging the gap between the two) Stagehand is the natural choice for browser automations in production.
**Choose when to write code vs. natural language**: use AI when you want to navigate unfamiliar pages, and use code when you know exactly what you want to do.
**Go from AI-driven to repeatable workflows**: Stagehand lets you preview AI actions before running them, and also helps you easily cache repeatable actions to save time and tokens.
**Write once, run forever**: Stagehand's auto-caching combined with self-healing remembers previous actions, runs without LLM inference, and knows when to involve AI whenever the website changes and your automation breaks. 
Getting Started

Start with Stagehand with one line of code, or check out our Quickstart Guide for more information:
Example

Here's how to build a sample browser automation with Stagehand:
Documentation

Visit docs.stagehand.dev to view the full documentation.
Build and Run from Source

Stagehand is best when you have an API key for an LLM provider and Browserbase credentials. To add these to your project, run:
Installing from a branch

You can install and build Stagehand directly from a github branch using gitpkg

In your project's package.json set:
Contributing
[!NOTE]
We highly value contributions to Stagehand! For questions or support, please join our Discord community.

At a high level, we're focused on improving reliability, extensibility, speed, and cost in that order of priority. If you're interested in contributing, **bug fixes and small improvements are the best way to get started**. For more involved features, we strongly recommend reaching out to Miguel Gonzalez or Paul Klein in our Discord community before starting to ensure that your contribution aligns with our goals.

<!-- For more information, please see our Contributing Guide. -->
Acknowledgements

We'd like to thank the following people for their major contributions to Stagehand:
Paul Klein
Sean McGuire
Miguel Gonzalez
Sameel Arif
Thomas Katwan
Filip Michalsky
Anirudh Kamath
Jeremy Press
Navid Pour
License

Licensed under the MIT License.

Copyright 2025 Browserbase, Inc.