OpenCLI
Turns websites and Electron apps into CLI commands and lets AI agents drive your logged-in Chrome via a Browser Bridge extension and opencli browser primitives.
OpenCLI converts websites into command-line interfaces and exposes browser automation for AI agents. It connects to Chrome/Chromium through a Browser Bridge extension and a small local daemon that auto-starts, so commands run inside your existing logged-in browser session. Built-in adapters cover sites such as Bilibili, Zhihu, Xiaohongshu, Reddit, HackerNews and Twitter/X, run as opencli <site> <command> (for example opencli hackernews top --limit 5). opencli list shows all registered commands and opencli doctor diagnoses browser connectivity. It also includes desktop adapters for Electron apps like Cursor, Codex, ChatGPT and Trae.
For AI agents, opencli browser <session> provides primitives including open, state, click, type, fill, select, keys, wait, get, find, extract, network, screenshot, eval and tab management. Page content is read as structured DOM snapshots rather than screenshots, and network API responses can be intercepted. Skills installed with npx skills add jackwener/opencli (opencli-browser, opencli-adapter-author, opencli-autofix, opencli-usage) let agents such as Claude Code or Cursor use these commands, write new adapters, or repair broken ones from natural-language prompts.
Users can extend it by writing adapters. The documented workflow covers recon of the site pattern (SPA, SSR, JSONP, token, streaming), endpoint discovery, choosing an auth mode (PUBLIC, COOKIE, INTERCEPT, UI, LOCAL), and opencli browser recon verify. Commands can be kept in a personal Git repo via opencli plugin create and opencli plugin install, or installed from GitHub with opencli plugin install github:user/repo. Multiple Chrome profiles can be aliased with opencli profile, and behavior is tunable through environment variables such as OPENCLI_PROFILE, OPENCLI_CDP_ENDPOINT and timeouts. It suits developers who want scripted access to logged-in sites and people building browser-driving agents. Installing via npm requires Node.js 20.18.1 or later.
Installation
# via npm
npm install -g @jackwener/opencli
# via Agent skills (npx)
npx skills add jackwener/opencli
Alternatives & related tools
Crush
Terminal-based agentic coding assistant from Charm that connects to many LLM providers, uses LSPs for context, and extends via MCP servers.
Qwen Code
Open-source AI coding agent that runs in the terminal, with IDE plugins, desktop app, SDKs, and multi-provider model support (OpenAI, Anthropic, Gemini, Qwen).
OfficeCLI
Single-binary CLI that lets AI agents create, read, edit, and render Word, Excel, and PowerPoint files without an Office installation.
Kilo Code
Open source AI coding agent for VS Code, JetBrains, and the terminal, with 500+ selectable models at provider pricing and an autonomous mode for CI/CD.
OpenClaude
Open-source terminal coding-agent CLI that works with OpenAI-compatible APIs, Gemini, GitHub Models, Codex, Ollama and other cloud or local model backends.
add a badge to your README
Maintain OpenCLI? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/opencli?utm_source=badge)<a href="https://www.trmn.sh/tools/opencli?utm_source=badge"><img src="https://www.trmn.sh/badge/opencli.svg" alt="Featured on trmn" height="20"></a>