jackwener/OpenCLI

Make Any Website into CLI & Use your logged-in browser by AI agent.

What it solves

OpenCLI converts websites, browser sessions, and Electron apps into a command-line interface (CLI). It allows humans and AI agents to interact with the web deterministically, bypassing the need for manual browser navigation and clicking while leveraging existing logged-in sessions in Chrome.

How it works

OpenCLI uses a lightweight Browser Bridge extension and a local daemon to connect to Chrome/Chromium. It provides a set of primitives (navigate, click, type, extract) that can be used to automate tasks. It offers three primary modes of operation:

  • Built-in Adapters: Pre-configured commands for over 100 sites (e.g., Reddit, Twitter, Bilibili).
  • AI Agent Skills: Specialized skills (like opencli-browser) that can be installed into agents like Claude Code or Cursor, allowing them to drive a real browser session using natural language.
  • Custom Adapters: A framework for creating new site-specific commands, which can be authored using an AI-guided process.

Who it’s for

  • AI Agent developers who want their agents to have a reliable way to interact with the live web using the user's authenticated sessions.
  • Power users who want to automate web tasks or extract data via the terminal without writing complex scraping scripts.
  • Developers who want a unified CLI hub for their local tools and desktop applications.

Highlights

  • Authenticated Access: Operates through the user's logged-in Chrome profiles, avoiding the need for complex API keys or session management.
  • Agent-Ready: Includes dedicated skills for AI agents to navigate, fill forms, and extract data via structured DOM snapshots.
  • Extensible: Supports plugins and a system for authoring new adapters for any website.
  • Multi-Format Output: Supports exporting data in table, JSON, YAML, Markdown, and CSV formats.
  • Broad Support: Works with standard websites, Electron apps (via CDP), and local binaries.

Related

  • Project
  • Project
  • Project
  • Project
  • Project