ntegrals/openbrowser

Let AI agents browse the web. An autonomous toolkit for browser-based AI agents.

What it solves

Open Browser 提供了一种让 AI 代理自动与网络互动的方式。用户不必为每个网站编写手动脚本,只要以自然语言描述任务,代理就会处理所需的导航、点击、输入与数据提取,以完成任务。

How it works

此框架使用一个循环,AI 代理将当前页面状态与用户目标发送给大型语言模型(LLM)。LLM 判断所需的操作——例如点击按钮或在字段中输入——然后通过 Playwright 浏览器实例执行。代理持续这个观察与行动的循环,直到任务完成。

Who it’s for

此框架设计给想在应用程序中集成自动化网页浏览功能,或使用 CLI 自动化网页任务而不需手动编码的 TypeScript 开发者。

Highlights

  • Multi-model support: Compatible with OpenAI, Anthropic, and Google models via the Vercel AI SDK.
  • Interactive REPL: Includes a live browser prompt for real-time debugging and prototyping.
  • Sandboxed execution: Offers resource limits (CPU/memory) and domain restrictions for safer agent runs.
  • Production-ready features: Includes stall detection, cost tracking, session management, and replay recording.