Opencli-skill qiaomu-opencli-usage
Use when running OpenCLI commands to interact with websites (Bilibili, Twitter, Reddit, Xiaohongshu, etc.), desktop apps (Cursor, Notion), or public APIs (HackerNews, arXiv). Covers installation, command reference, and output formats for 79+ adapters.
git clone https://github.com/joeseesun/qiaomu-opencli-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/joeseesun/qiaomu-opencli-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/qiaomu-opencli-usage" ~/.claude/skills/joeseesun-opencli-skill-qiaomu-opencli-usage && rm -rf "$T"
qiaomu-opencli-usage/SKILL.mdOpenCLI Usage Guide
Make any website or Electron App your CLI. Reuse Chrome login, zero risk, AI-powered discovery.
Install & Run
# npm global install (recommended) npm install -g @jackwener/opencli opencli <command> # Or from source cd ~/code/opencli && npm install npx tsx src/main.ts <command> # Update to latest npm update -g @jackwener/opencli
Prerequisites
Browser commands require:
- Chrome browser running (logged into target sites)
- opencli Browser Bridge Chrome extension installed (load
as unpacked inextension/
)chrome://extensions - No further setup needed — the daemon auto-starts on first browser command
Note: You must be logged into the target website in Chrome before running commands. Tabs opened during command execution are auto-closed afterwards.
Public API commands (
hackernews, v2ex) need no browser.
Quick Lookup by Capability
| Capability | Platforms (partial list) |
|---|---|
| search | Bilibili, Twitter, Reddit, Xiaohongshu, Zhihu, YouTube, Google, arXiv, LinkedIn, Pixiv, etc. |
| hot/trending | Bilibili, Twitter, Weibo, HackerNews, Reddit, V2EX, Xueqiu, Lobsters, Douban |
| feed/timeline | Twitter, Reddit, Xiaohongshu, Xueqiu, Jike, Facebook, Instagram, Medium |
| user/profile | Twitter, Reddit, Instagram, TikTok, Facebook, Bilibili, Pixiv |
| post/create | Twitter, Jike, Douyin, Weibo |
| AI chat | Grok, Doubao, ChatGPT, Gemini, Cursor, Codex, NotebookLM |
| finance/stock | Xueqiu, Yahoo Finance, Barchart, Sina Finance, Bloomberg |
| web scraping | — any URL to Markdown |
| GitHub/DevOps | , , — external CLI passthrough |
| collaboration | , , — external CLI passthrough |
Command Quick Reference
Usage:
opencli <site> <command> [args] [--limit N] [-f json|yaml|md|csv|table]
Type legend: 🌐 = Browser (needs Chrome login) · ✅ = Public API (no browser) · 🖥️ = Desktop (Electron/CDP) · 🔧 = External CLI (passthrough)
Website Adapters
| Site | Type | Commands |
|---|---|---|
| 1688 | 🌐 | |
| 36kr | 🌐 | |
| amazon | 🌐 | |
| apple-podcasts | ✅ | |
| arxiv | ✅ | |
| band | 🌐 | |
| barchart | 🌐 | |
| bbc | ✅ | |
| bilibili | 🌐 | |
| bloomberg | ✅🌐 | RSS: · Browser: (full article) |
| bluesky | 🌐 | |
| boss | 🌐 | |
| chaoxing | 🌐 | |
| coupang | 🌐 | |
| ctrip | 🌐 | |
| devto | ✅ | |
| dictionary | ✅ | |
| doubao | 🌐 | |
| douban | 🌐 | |
| douyin | 🌐 | |
| 🌐 | | |
| gemini | 🌐 | |
| ✅ | | |
| grok | 🌐 | |
| hackernews | ✅ | |
| hf | ✅ | |
| hupu | 🌐 | |
| imdb | ✅ | |
| 🌐 | | |
| jd | 🌐 | |
| jianyu | 🌐 | |
| jike | 🌐 | |
| jimeng | 🌐 | |
| lesswrong | ✅ | |
| 🌐 | | |
| linux-do | 🌐 | |
| lobsters | ✅ | |
| medium | 🌐 | |
| notebooklm | 🌐 | |
| ones | 🌐 | |
| paperreview | ✅ | |
| pixiv | 🌐 | |
| producthunt | ✅ | |
| quark | 🌐 | |
| 🌐 | | |
| reuters | 🌐 | |
| sinablog | 🌐 | |
| sinafinance | ✅ | |
| smzdm | 🌐 | |
| spotify | ✅ | |
| stackoverflow | ✅ | |
| steam | ✅ | |
| substack | 🌐 | |
| tieba | 🌐 | |
| tiktok | 🌐 | |
| 🌐 | | |
| v2ex | ✅🌐 | Public: · Browser: |
| web | 🌐 | — any URL to Markdown |
| 🌐 | | |
| weixin | 🌐 | — 公众号 article to Markdown |
| weread | 🌐 | |
| wikipedia | ✅ | |
| xianyu | 🌐 | |
| xiaoe | 🌐 | |
| xiaohongshu | 🌐 | |
| xiaoyuzhou | ✅ | |
| xueqiu | 🌐 | |
| yahoo-finance | 🌐 | |
| yollomi | 🌐 | |
| youtube | 🌐 | |
| yuanbao | 🌐 | |
| zhihu | 🌐 | |
| zsxq | 🌐 | |
Desktop Apps (CDP/Electron)
| App | Commands |
|---|---|
| antigravity | |
| chatgpt | |
| chatwise | |
| codex | |
| cursor | |
| discord-app | |
| doubao-app | |
| notion | |
External CLI (passthrough)
OpenCLI can discover, auto-install, and passthrough commands to external CLI tools. Use
opencli install <name> to auto-install, or opencli register <name> to register a local CLI.
| CLI | Description | Commands |
|---|---|---|
| gh | GitHub CLI — repos, PRs, issues, releases | (all gh subcommands) |
| obsidian | Obsidian vault — notes, search, tags | All obsidian subcommands |
| docker | Docker CLI | All docker subcommands |
| lark-cli | Lark/Feishu — messages, docs, calendar, tasks (200+ commands) | All lark-cli subcommands |
| dws | DingTalk Workspace — messages, docs, calendar, contacts | All dws subcommands |
| wecom-cli | WeCom/企业微信 — contacts, todos, meetings, messages | All wecom-cli subcommands |
| vercel | Vercel — deploy, domains, env vars, logs | All vercel subcommands |
opencli install gh # Auto-install gh CLI opencli register my-tool # Register a local custom CLI opencli gh pr list --limit 5 # Passthrough to gh opencli docker ps # Passthrough to docker opencli lark-cli msg send ... # Passthrough to lark-cli
Management
opencli list [-f json|yaml] # List all commands opencli validate [site] # Validate adapter definitions opencli doctor # Diagnose browser bridge opencli explore <url> # AI-powered API discovery opencli record <url> # Record API calls manually
All commands support:
--format / -f with table json yaml md csv
Self-Repair
If a command fails due to a site change (selector, API, or response schema), automatically fix the adapter and retry instead of reporting failure. Re-run the command with
OPENCLI_DIAGNOSTIC=1 to get structured diagnostic context, then fix the adapter file at RepairContext.adapter.sourcePath and retry. Max 3 repair rounds. See the opencli-autofix skill for the full workflow.
Related Skills
- opencli-browser — Browser automation for AI agents (navigate, click, type, extract via Chrome)
- opencli-explorer — Full guide for creating new adapters (API discovery, auth strategy, TS writing)
- opencli-oneshot — Quick 4-step template for adding a single command from a URL
- opencli-autofix — Automatically fix broken adapters when commands fail