sleepinginsummer/agent-browser-cli

使用 agent-browser-cli 进行浏览器感知与控制。适用于标签页扫描/切换、页面 JS 执行、Cookie、CDP、contentSettings、截图、文件上传、下拉框点击、tmwd_cdp_bridge 初始化和 Web 工具排障

What it solves

This tool bridges the gap between AI agents and real-world browser sessions. Unlike automation tools like Selenium or Playwright that often start fresh, this CLI allows agents to interact with your existing Chrome browser, preserving your active login states, cookies, and session history.

How it works

The project uses a Chrome extension (TMWD CDP Bridge) to connect your browser to a local Rust-based CLI service. Once connected, the CLI provides an interface for agents to scan open tabs, execute JavaScript, read cookies, capture screenshots, and perform UI interactions like clicking buttons or filling forms directly within your active Chrome environment.

Who it’s for

It is designed for developers and AI engineers building agents that need to operate within complex web environments, such as management backends, form-based systems, or sites requiring persistent authentication. It is also useful for those performing automated testing, frontend debugging, or web data extraction.

Highlights

  • Session Persistence: Operates within your existing Chrome profile, maintaining cookies and login states.
  • Broad Control: Supports DOM manipulation, JavaScript execution, file uploads, and Chrome DevTools Protocol (CDP) commands.
  • Agent-Ready: Provides specific skills and simplified HTML structures to help AI models better understand and navigate complex web pages.
  • Cross-Platform: Compatible with Windows (including WSL), macOS, and Linux.
  • Efficient Architecture: Built in Rust with a persistent background service to minimize initialization overhead and handle concurrent commands.

Related

  • Project
  • Project
  • Project
  • Project
  • Project