jackwener/OpenCLI

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

What it solves

OpenCLI transforms websites, browser sessions, and Electron apps into deterministic command-line interfaces (CLIs). It allows humans and AI agents to interact with the web without manually navigating a browser, bypassing the need for complex scraping setups by leveraging a user's already logged-in Chrome session.

How it works

OpenCLI uses a 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 build "adapters" for specific sites. These adapters map natural language or CLI commands to specific browser actions. For AI agents, it provides a set of "skills" (via npx skills) that allow agents like Claude Code or Cursor to drive the browser ad-hoc or author new adapters based on DOM snapshots.

Who it’s for

  • Developers and Power Users who want to automate web tasks or extract data via the terminal.
  • AI Agent Developers who need a reliable way for their agents to operate real websites using existing user authentication.
  • Automation Engineers looking to create reusable, deterministic interfaces for web-based tools.

Highlights

  • Built-in Adapters: Pre-configured commands for 100+ sites including X/Twitter, Reddit, Bilibili, and LinkedIn.
  • AI Agent Integration: Specialized skills for agents to navigate, fill forms, and even write/repair their own adapters.
  • CLI Hub: Acts as a unified entry point for other local binaries (e.g., gh, docker) and Electron apps (e.g., Cursor, ChatGPT app).
  • Multi-Format Output: Supports exporting data in table, JSON, YAML, Markdown, and CSV formats.
  • Session Management: Supports multiple Chrome profiles and both foreground and background window execution.