by jackwener
Make Any Website & Tool Your CLI. A universal CLI Hub and AI-native runtime. Transform any website, Electron app, or local binary into a standardized command-line interface. Built for AI Agents to discover, learn, and execute tools seamlessly via a unified AGENT.md integration.
# Add to your Claude Code skills
git clone https://github.com/jackwener/opencliGuides for using ai agents skills like opencli.
Last scanned: 4/17/2026
{
"issues": [
{
"type": "npm-audit",
"message": "esbuild: esbuild enables any website to send any requests to the development server and read the response",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "vite: Vite Vulnerable to Path Traversal in Optimized Deps `.map` Handling",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "vitepress: Vulnerability found",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-04-17T06:04:27.305Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}Make any website, Electron App, or Local Tool your CLI. Zero risk · Reuse Chrome/Chromium login · AI-powered discovery · Universal CLI Hub
A CLI tool that turns any website, Electron app, or local CLI tool into a command-line interface — Bilibili, Zhihu, 小红书, Twitter/X, Reddit, YouTube, Antigravity, gh, docker, and many more — powered by browser session reuse and AI-native discovery.
Built for AI Agents — Load the opencli-operate skill to give any AI agent (Claude Code, Cursor) direct browser control. Operate any website, then crystallize those interactions into reusable CLI commands. Configure opencli list in your AGENT.md or .cursorrules so the AI auto-discovers all available tools.
CLI Hub — Register any local CLI (opencli register mycli) so AI agents can discover and call it alongside built-in commands. Auto-installs missing tools via your package manager (e.g. if gh isn't installed, opencli gh ... runs brew install gh first then re-executes seamlessly).
CLI for Electron Apps — Turn any Electron application into a CLI tool. Recombine, script, and extend apps like Antigravity Ultra from the terminal. AI agents can now control other AI apps natively.
operate gives AI agents direct browser control: click, type, extract, screenshot — any interaction, fully scriptable.opencli record.navigator.webdriver, stubs window.chrome, fakes plugin lists, cleans ChromeDriver/Playwright globals, and strips CDP frames from Error stack traces. Extensive anti-fingerprinting and risk-control evasion measures baked in at every layer.explore discovers APIs, synthesize generates adapters, cascade finds auth strategies, operate controls the browser directly.opencli doctor diagnoses and auto-starts the daemon, extension, and live browser connectivity..ts or .yaml adapters into the clis/ folder for auto-registration.OpenCLI connects to your browser through a lightweight Browser Bridge Chrome/Chromium extension + micro-daemon (zero config, auto-start).
opencli-extension.zip.chrome://extensions, enable Developer mode (top-right toggle).Install via npm (recommended)
npm install -g @jackwener/opencli
# Install AI skills for Claude Code / Cursor
npx skills add jackwener/opencli
opencli doctor # Check extension + daemon connectivity
opencli daemon status # Check daemon state (PID, uptime, memory)
Try it out:
opencli list # See all commands
opencli hackernews top --limit 5 # Public API, no browser needed
opencli bilibili hot --limit 5 # Browser command (requires Extension)
Point your AI agent (Claude Code, Cursor) to skills/opencli-operate/SKILL.md. It has everything needed — full command reference, examples, and workflow.
Available commands: open, state, click, type, select, keys, wait, get, screenshot, scroll, back, eval, network, init, verify, close.
npm install -g @jackwener/opencli@latest
OpenCLI provides skills for AI agents (Claude Code, etc.):
# Install all OpenCLI skills
npx skills add jackwener/opencli
# Or install specific skills
npx skills add jackwener/opencli --skill opencli-usage # Command reference
npx skills add jackwener/opencli --skill opencli-operate # Browser automation for AI agents
npx skills add jackwener/opencli --skill opencli-explorer # Adapter development guide
npx skills add jackwener/opencli --skill opencli-oneshot # Quick command reference
Install from source
git clone git@github.com:jackwener/opencli.git && cd opencli && npm install && npm run build && npm link
Load Source Browser Bridge Extension
chrome://extensions and enable Developer mode (top-right toggle).extension/ directory from this repository.⚠️ Important: Browser commands reuse your Chrome/Chromium login session. You must be logged into the target website in Chrome or Chromium before running commands. If you get empty data or errors, check your login status first.
| Site | Commands |
|------|----------|
| xiaohongshu | search note comments feed user download publish notifications creator-notes creator-notes-summary creator-note-detail creator-profile creator-stats |
| bilibili | hot search history feed ranking download comments dynamic favorite following me subtitle user-videos |
| tieba | hot posts search read |
| hupu | hot search detail mentions reply like unlike |
| twitter | trending search timeline bookmarks post download profile article like likes notifications reply reply-dm thread follow unfollow followers following block unblock bookmark unbookmark delete hide-reply accept |
| reddit | hot frontpage popular search subreddit read user user-posts user-comments upvote upvoted save saved comment subscribe |
| zhihu | hot search question download follow like favorite comment answer |
| amazon | bestsellers search product offer discussion movers-shakers new-releases |
| 1688 | search item assets download store |
| gemini | new ask image deep-research deep-research-result |
| yuanbao | new ask |
| notebooklm | status list open current get history summary note-list notes-get source-list source-get source-fulltext source-guide |
| spotify | auth status play pause next prev volume search queue shuffle repeat |
| xianyu | search item chat |
| xiaoe | courses detail catalog play-url content |
| quark | ls mkdir mv rename rm save share-tree |
79+ adapters in total — → see all supported sites & commands
OpenCLI acts as a universal hub for your existing command-line tools — unified discovery, pure passthrough execution, and auto-install (if a tool isn't installed, OpenCLI runs brew install <tool> automatically before re-running the command).
| External CLI | Description | Example |
|--------------|-------------|---------|
| gh | GitHub CLI | opencli gh pr list --limit 5 |
| obsidian | Obsidian vault management | opencli obsidian search query="AI" |
| docker | Docker | opencli docker ps |
| lark-cli | Lark/Feishu — messages, docs, calendar, tasks, 200+ commands | opencli lark-cli calendar +agenda |
| dingtalk | DingTalk — cross-platform CLI for DingTalk's full suite, designed for humans and AI agents | opencli dingtalk msg send --to user "hello" |
| wecom | WeCom/企业微信 — CLI for WeCom open platform, for humans and AI agents | opencli wecom msg send --to user "hello" |
| vercel | Vercel — deploy projects, manage domains, env vars, logs | opencli vercel deploy --prod |
Register your own — add any local CLI so AI agents can discover it via opencli list:
opencli register mycli
Control Electron desktop apps directly from the terminal. Each adapter has its own detailed documentation:
| App | Description | Doc | |-----|-------------|-----| | Cursor | Control Cursor IDE — Composer, chat, code extraction | Doc | | Codex | Drive OpenAI Codex CLI agent headlessly | Doc | | Antigravity | Control Antigravity Ultra from terminal | Doc | | ChatGPT | Automate ChatGPT macOS desktop app | Doc | | ChatWise
No comments yet. Be the first to share your thoughts!
Based on votes and bookmarks from developers who liked this skill