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.