Discover and explore top open-source AI tools and projects—updated daily.
nicobailonCLI for AI agents to control Chrome
Top 97.3% on SourcePulse
Summary
Surf-cli addresses the complexity of browser automation for AI agents by providing a zero-configuration, agent-agnostic command-line interface. It enables AI models and custom scripts to control Chrome browsers programmatically, simplifying tasks like web scraping, form filling, and interaction with dynamic web applications without vendor lock-in or intricate setup.
How It Works
The system comprises a CLI tool that communicates via a Unix socket to a native host process. This host interacts with a Chrome extension, which leverages the Chrome DevTools Protocol (CDP) and the chrome.scripting API for browser control. This architecture allows for agent-agnostic operation, as any agent capable of executing CLI commands can utilize Surf. Its design prioritizes zero configuration, battle-tested reliability through reverse-engineering production extensions, and graceful fallbacks when CDP operations fail.
Quick Start & Requirements
npm install -g surf-clichromium-browser, nodejs, npm, and imagemagick.chrome://extensions (enabling Developer mode) using the path provided by surf extension-path, followed by surf install to register the native host.Highlighted Details
Licensing & Compatibility
Limitations & Caveats
Automation is restricted for chrome:// internal pages and the Chrome Web Store due to browser security policies. The initial CDP operation on a new tab incurs a ~100-500ms delay for debugger attachment. Linux support is experimental and requires specific dependencies and potential headless server configurations (Xvfb, VNC).
3 days ago
Inactive
MiguelsPizza
vercel-labs