Skip navigation
Finally, a browser automation framework for Agents that actually works in production (open-source)!
0:00 / 0:24

Finally, a browser automation framework for Agents that actually works in production (open-source)!

Avi Chawla

@_avichawla72K followers

Visit on X
1,255 likesDownloadOriginal post

101,419 views

Finally, a browser automation framework for Agents that actually works in production (open-source)! Typical browser automation tools like Selenium or Playwright require you to hard-code automation. These are brittle since one change in the website can disrupt the full workflow. On the other hand, high-level Agents like OpenAI Operator can be unpredictable in production. Stagehand is an open-source framework that bridges the gap between: - brittle traditional automation like Playwright, Selenium, etc. and - unpredictable full-agent solutions like OpenAI Operator. Key features: - Use AI when you want to navigate unfamiliar pages. - Use code (Playwright) when you know exactly what to do. - Preview AI actions before running them. - Cache repeatable actions to save tokens. - Compatible with SOTA computer use models with just one line of code. - Available in both Python and TypeScript SDK. Stagehand also has an open-source MCP server. Find a link to the repo in the comments! 👉 Over to you: Would you use this instead of Selenium?

10 Comments

Comments from the original post on X (Twitter)

  • Avi Chawla's profile picture

    @_avichawla

    GitHub repo →

    28 likes

  • Avi Chawla's profile picture

    @_avichawla

    If you found it insightful, reshare it with your network. Find me → @_avichawla Every day, I share tutorials and insights on DS, ML, LLMs, and RAGs.

    3 likes

  • Akshay 🚀's profile picture

    @akshay_pachaar

    Browser automation framework for Agents that actually works! 🔥

    2 likes

  • Bui Dinh Ngoc's profile picture

    @buidinhngoc

    I'm curious how it handles authentication flows and CAPTCHAs compared to traditional automation. Those edge cases are where most tools fall apart.

    2 likes

  • John the Freelancer's profile picture

    @JohnFreelancing

    This could finally make browser automation less painful.

    1 like

  • Tyson Thomas's profile picture

    @tysonthomas90

    What if I told you just need a single download of @BrowserOperator browser to get the same functionality with @AnthropicAI models!! 😉 #OpenSourceAI #AIBrowser

    1 like

  • Julian Harris's profile picture

    @julianharris

    Have you used this? Do you have examples of this in production? Highly sceptical myself. I have a fundamental problem with approach, which is extremely expensive to run and very slow. I found a better technique that still takes advantage of language model flexibility but is at least 10x times faster. And cheaper.

    1 like

  • Senthazal Ravi's profile picture

    @senthazalravi

    Finally !

  • Himanshu Kumar's profile picture

    @codewithimanshu

    Automating agents reliably needs more than just avoiding hard-coded workflows; true resilience requires adaptability.

  • PromptNextAI – eu/acc's profile picture

    @PromptNextAI

    can work headless mode?