# OpenCLI

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

- Type: agent or tool
- Field: Web Automation & Scraping
- Repository: https://github.com/jackwener/OpenCLI
- GitHub stars: 31515
- Licence: Apache-2.0
- Language: JavaScript
- Last push: 2026-11-07
- Page: https://imutechz.in/agents/opencli

## What it is
OpenCLI is a browser automation CLI that turns any website into a command-line interface using your logged-in Chrome browser. It provides built-in adapters for popular sites like GitHub, Reddit, and Twitter, and lets AI agents navigate, click, fill forms, and extract data through a browser bridge extension. Commands output JSON by default for programmatic use.

## Features
- Built-in adapters for Bilibili, Zhihu, Xiaohongshu, Reddit, HackerNews, Twitter/X
- AI agent integration via opencli-browser skill for Claude Code, Cursor
- Browser bridge extension connects to logged-in Chrome/Chromium
- JSON command contract with ok/data or ok/error structure
- Adapter authoring with opencli-adapter-author skill
- Multi-profile Chrome support with profile aliases

## Best for
- Automating repetitive tasks on websites with CLI commands
- Giving AI agents browser automation capabilities
- Extracting data from sites without official APIs
- Creating custom site adapters for personal workflows

## Pros
- Works with existing logged-in browser sessions
- No site-specific adapter needed for basic automation
- JSON output designed for programmatic consumption
- Supports multiple Chrome profiles

## Cons
- Requires Node.js = 20.18.1 for npm installation
- Requires Chrome/Chromium with browser extension installed
- Daemon auto-starts but needs extension connectivity

## Install
```
npm install -g @jackwener/opencli
```

## Usage
```
opencli hackernews top --limit 5
```

Tags: browser-automation, cli-tool, ai-agent, web-scraping, chrome-extension, json-output, adapter-system, nodejs
