justrach/kuri
Browser automation, web crawling, and iOS + Android device control for AI agents. Zig-native, token-efficient CDP snapshots, HAR recording, native adb wire-protocol client, and a standalone fetcher.
Kuri
Summary: 一個為 AI agent 設計的輕量級瀏覽器自動化工具,以單一 Zig 二進位檔實現,無需 Node.js 依賴。
Purpose: 透過與傳統瀏覽器自動化框架相比,將資源開銷和 token 使用量降至最低,使 AI agent 能高效地與網頁互動。
How it works: Kuri 提供 HTTP API (135 個端點) 透過 Chrome DevTools Protocol (CDP) 在其主模式下控制 Chrome,提供 token 優化的可訪問性快照 (accessibility snapshots) 並透過批次指令執行來減少 LLM 上下文和網路往返次數。
Key Features:
- 單一 Zig 二進位檔,零運行時依賴
- 135 個 HTTP 端點,實現完整的瀏覽器自動化功能對等性
- Token 優化的觀察結果 (例如:在 Google Flights 上使用 /page/state 僅需 48 tokens)
- 透過 POST /batch 進行批次執行,以減少 HTTP 呼叫
- 與 React 相容的滑鼠和鍵盤事件
- 四種模式:kuri (CDP server), kuri-fetch (standalone fetcher), kuri-browse (interactive terminal), kuri-agent (agentic CLI)
- 為 macOS (arm64/x86_64) 和 Linux (x86_64/arm64) 提供預建二進位檔
- 實驗性 Windows 支援,(需要 WSL2 以獲得完整功能)
Audience: 開發者正在構建需要高效網頁互動且低 token 開銷的 AI agent。
Caveats: 完整的 Chrome 自動化功能需要 Chrome/Chromium 實例;Windows 支援是實驗性的,且僅限於 WSL2 或使用 stubbed features 進行交叉編譯以實現某些功能。
相關
- 專案
- 專案
- 專案
- 專案
- 專案