1---2name: opencli-skills3description: "Use OpenCLI to fetch data from websites like Twitter, Reddit, Bilibili, Zhihu, Xiaohongshu, YouTube, etc. Triggers: opencli, social media, twitter, reddit, bilibili, zhihu, xiaohongshu, youtube, weibo, hackernews, fetch website data."4license: MIT5version: 1.0.06config:7 dependencies:8 - opencli (npm install -g @jackwener/opencli)9 - Chrome with Browser Bridge extension10metadata:11 source: https://skillmd.com/skills/leoyeai-openclaw-master-skills/opencli-skills12---1314# OpenCLI Skill1516通过 OpenCLI 从各种网站获取数据,无需 API 密钥,复用 Chrome 登录状态。1718## 触发词1920- `opencli` - 使用 OpenCLI 命令21- 社交媒体: `twitter`, `reddit`, `weibo`, `zhihu`, `xiaohongshu`, `jike`22- 视频平台: `bilibili`, `youtube`23- 资讯平台: `hackernews`, `bbc`, `reuters`, `linux-do`24- 其他: `v2ex`, `xueqiu`, `weread`, `stackoverflow`2526## 前置要求27281. **安装 OpenCLI**: `npm install -g @jackwener/opencli`292. **安装 Chrome 扩展**: Browser Bridge303. **Chrome 已登录目标网站**3132## 通用选项3334```bash35opencli <site> <command> [options]3637# 通用选项38--limit <n> # 限制返回数量39-f, --format # 输出格式: table, json, yaml, md, csv (默认 table)40-v, --verbose # 调试输出41```4243## 命令完整列表4445### antigravity (9 commands)4647| 命令 | 说明 | 参数 |48|------|------|------|49| `dump` | Dump the DOM to help AI understand the UI | - |50| `extract-code` | Extract multi-line code blocks from the current Antigravity conversation | - |51| `model` | Switch the active LLM model in Antigravity | `name` |52| `new` | Start a new conversation / clear context in Antigravity | - |53| `read` | Read the latest chat messages from Antigravity AI | `last` |54| `send` | Send a message to Antigravity AI via the internal Lexical editor | `message` |55| `serve` | - | - |56| `status` | Check Antigravity CDP connection and get current page state | - |57| `watch` | Stream new chat messages from Antigravity in real-time | - |5859### apple-podcasts (5 commands)6061| 命令 | 说明 | 参数 |62|------|------|------|63| `episodes` | List recent episodes of an Apple Podcast (use ID from search) | `id`, `limit` |64| `search` | Search Apple Podcasts | `keyword`, `limit` |65| `top` | Top podcasts chart on Apple Podcasts | `limit`, `country` |6667### barchart (4 commands)6869| 命令 | 说明 | 参数 |70|------|------|------|71| `flow` | Barchart unusual options activity / options flow | `type`, `limit` |72| `greeks` | Barchart options greeks overview (IV, delta, gamma, theta, vega) | `symbol`, `expiration`, `limit` |73| `options` | Barchart options chain with greeks, IV, volume, and open interest | `symbol`, `type`, `limit` |74| `quote` | Barchart stock quote with price, volume, and key metrics | `symbol` |7576### bbc (1 command)7778| 命令 | 说明 | 参数 |79|------|------|------|80| `news` | BBC News headlines (RSS) | `limit` |8182### bilibili (12 commands)8384| 命令 | 说明 | 参数 |85|------|------|------|86| `download` | 下载B站视频(需要 yt-dlp) | `bvid`, `output`, `quality` |87| `dynamic` | Get Bilibili user dynamic feed | `limit` |88| `favorite` | 我的默认收藏夹 | `limit`, `page` |89| `feed` | 关注的人的动态时间线 | `limit`, `type` |90| `following` | 获取 Bilibili 用户的关注列表 | `uid`, `page`, `limit` |91| `history` | 我的观看历史 | `limit` |92| `hot` | B站热门视频 | `limit` (default: 20) |93| `me` | My Bilibili profile info | - |94| `ranking` | Get Bilibili video ranking board | `limit` |95| `search` | Search Bilibili videos or users | `keyword`, `type`, `page`, `limit` |96| `subtitle` | 获取 Bilibili 视频的字幕 | `bvid`, `lang` |97| `user-videos` | 查看指定用户的投稿视频 | `uid`, `limit`, `order`, `page` |9899### boss (6 commands)100101| 命令 | 说明 | 参数 |102|------|------|------|103| `chatlist` | BOSS直聘查看聊天列表(招聘端) | `page`, `limit`, `job_id` |104| `chatmsg` | BOSS直聘查看与候选人的聊天消息 | `uid`, `page` |105| `detail` | BOSS直聘查看职位详情 | `security_id` |106| `resume` | BOSS直聘查看候选人简历(招聘端) | `uid` |107| `search` | BOSS直聘搜索职位 | `query`, `city`, `experience`, `degree`, `salary`, `industry`, `page`, `limit` |108| `send` | BOSS直聘发送聊天消息 | `uid`, `text` |109110### chaoxing (2 commands)111112| 命令 | 说明 | 参数 |113|------|------|------|114| `assignments` | 学习通作业列表 | `course`, `status`, `limit` |115| `exams` | 学习通考试列表 | `course`, `status`, `limit` |116117### chatgpt (5 commands)118119| 命令 | 说明 | 参数 |120|------|------|------|121| `ask` | Send a prompt and wait for the AI response (send + wait + read) | `text`, `timeout` |122| `new` | Open a new chat in ChatGPT Desktop App | - |123| `read` | Copy the most recent ChatGPT Desktop App response to clipboard and read it | - |124| `send` | Send a message to the active ChatGPT Desktop App window | `text` |125| `status` | Check if ChatGPT Desktop App is running natively on macOS | - |126127### chatwise (9 commands)128129| 命令 | 说明 | 参数 |130|------|------|------|131| `ask` | Send a prompt and wait for the AI response | `text`, `timeout` |132| `export` | Export the current ChatWise conversation to a Markdown file | `output` |133| `history` | List conversation history in ChatWise sidebar | - |134| `model` | Get or switch the active AI model in ChatWise | `model_name` |135| `new` | Start a new conversation in ChatWise | - |136| `read` | Read the current ChatWise conversation history | - |137| `screenshot` | Capture a snapshot of the current ChatWise window | `output` |138| `send` | Send a message to the active ChatWise conversation | `text` |139| `status` | Check active CDP connection to ChatWise Desktop | - |140141### codex (11 commands)142143| 命令 | 说明 | 参数 |144|------|------|------|145| `ask` | Send a prompt and wait for the AI response | `text`, `timeout` |146| `dump` | Dump the DOM and Accessibility tree of Codex for reverse-engineering | - |147| `export` | Export the current Codex conversation to a Markdown file | `output` |148| `extract-diff` | Extract visual code review diff patches from Codex | - |149| `history` | List recent conversation threads in Codex | - |150| `model` | Get or switch the currently active AI model in Codex Desktop | `model_name` |151| `new` | Start a new Codex conversation thread / isolated workspace | - |152| `read` | Read the contents of the current Codex conversation thread | - |153| `screenshot` | Capture a snapshot of the current Codex window | `output` |154| `send` | Send text/commands to the Codex AI composer | `text` |155| `status` | Check active CDP connection to OpenAI Codex App | - |156157### coupang (2 commands)158159| 命令 | 说明 | 参数 |160|------|------|------|161| `add-to-cart` | Add a Coupang product to cart using logged-in browser session | `productId`, `url` |162| `search` | Search Coupang products with logged-in browser session | `query`, `page`, `limit`, `filter` |163164### ctrip (1 command)165166| 命令 | 说明 | 参数 |167|------|------|------|168| `search` | 携程旅行搜索 | `query`, `limit` |169170### cursor (11 commands)171172| 命令 | 说明 | 参数 |173|------|------|------|174| `ask` | Send a prompt and wait for the AI response | `text`, `timeout` |175| `composer` | Send a prompt directly into Cursor Composer (Cmd+I shortcut) | `text` |176| `dump` | Dump the DOM and Accessibility tree of Cursor for reverse-engineering | - |177| `export` | Export the current Cursor conversation | `output` |178| `extract-code` | Extract multi-line code blocks from the current Cursor conversation | - |179| `history` | List recent chat sessions from the Cursor sidebar | - |180| `model` | Get or switch the currently active AI model in Cursor | `model_name` |181| `new` | Start a new Cursor chat or Composer session | - |182| `read` | Read the current Cursor chat/composer conversation history | - |183| `screenshot` | Capture a snapshot of the current Cursor window | `output` |184| `send` | Send a prompt directly into Cursor Composer/Chat | `text` |185| `status` | Check active CDP connection to Cursor AI Editor | - |186187### discord-app (7 commands)188189| 命令 | 说明 | 参数 |190|------|------|------|191| `channels` | List channels in the current Discord server | - |192| `members` | List online members in the current Discord channel | - |193| `read` | Read recent messages from the active Discord channel | `count` |194| `search` | Search messages in the current Discord server/channel (Cmd+F) | `query` |195| `send` | Send a message in the active Discord channel | `text` |196| `servers` | List all Discord servers (guilds) in the sidebar | - |197| `status` | Check active CDP connection to Discord Desktop | - |198199### feishu (5 commands)200201| 命令 | 说明 | 参数 |202|------|------|------|203| `new` | Create a new message or document in Feishu | - |204| `read` | Read the current chat content by selecting all and copying | - |205| `search` | Open Feishu global search and type a query (Cmd+K) | `query` |206| `send` | Send a message in the active Feishu (Lark) conversation | `text` |207| `status` | Check if Feishu (Lark) Desktop is running on macOS | - |208209### grok (1 command)210211| 命令 | 说明 | 参数 |212|------|------|------|213| `ask` | Send a message to Grok and get response | `prompt`, `timeout`, `new` |214215### hackernews (1 command)216217| 命令 | 说明 | 参数 |218|------|------|------|219| `top` | Hacker News top stories | `limit` (default: 20) |220221### hf (1 command)222223| 命令 | 说明 | 参数 |224|------|------|------|225| `top` | Top upvoted Hugging Face papers | - |226227### jike (11 commands)228229| 命令 | 说明 | 参数 |230|------|------|------|231| `comment` | 评论即刻帖子 | `id`, `text` |232| `create` | 发布即刻动态 | `text` |233| `feed` | 即刻首页动态流 | `limit` |234| `like` | 点赞即刻帖子 | `id` |235| `notifications` | 即刻通知 | `limit` |236| `post` | 即刻帖子详情及评论 | `id` |237| `repost` | 转发即刻帖子 | `id`, `text` |238| `search` | 搜索即刻帖子 | `keyword`, `limit` |239| `topic` | 即刻话题/圈子帖子 | `id`, `limit` |240| `user` | 即刻用户动态 | `username`, `limit` |241242### jimeng (2 commands)243244| 命令 | 说明 | 参数 |245|------|------|------|246| `generate` | 即梦AI 文生图 — 输入 prompt 生成图片 | `prompt`, `model`, `wait` |247| `history` | 即梦AI 查看最近生成的作品 | `limit` |248249### linkedin (1 command)250251| 命令 | 说明 | 参数 |252|------|------|------|253| `search` | Search LinkedIn jobs | `query`, `location`, `limit`, `start`, `details`, `company`, `experience_level`, `job_type`, `date_posted`, `remote` |254255### linux-do (6 commands)256257| 命令 | 说明 | 参数 |258|------|------|------|259| `categories` | linux.do 分类列表 | `limit` |260| `category` | linux.do 分类内话题 | `slug`, `id`, `limit` |261| `hot` | linux.do 热门话题 | `limit`, `period` |262| `latest` | linux.do 最新话题 | `limit` |263| `search` | 搜索 linux.do | `keyword`, `limit` |264| `topic` | linux.do 帖子详情和回复 | `id` |265266### neteasemusic (10 commands)267268| 命令 | 说明 | 参数 |269|------|------|------|270| `like` | Like/unlike the currently playing song | - |271| `lyrics` | Get the lyrics of the currently playing song | - |272| `next` | Skip to the next song | - |273| `play` | Toggle play/pause for the current song | - |274| `playing` | Get the currently playing song info | - |275| `playlist` | Show the current playback queue / playlist | - |276| `prev` | Go back to the previous song | - |277| `search` | Search for songs, artists, albums, or playlists | `query` |278| `status` | Check CDP connection to NeteaseMusic Desktop | - |279| `volume` | Get or set the volume level (0-100) | `level` |280281### notion (8 commands)282283| 命令 | 说明 | 参数 |284|------|------|------|285| `export` | Export the current Notion page as Markdown | `output` |286| `favorites` | List pages from the Notion Favorites section in the sidebar | - |287| `new` | Create a new page in Notion | `title` |288| `read` | Read the content of the currently open Notion page | - |289| `search` | Search pages and databases in Notion via Quick Find (Cmd+P) | `query` |290| `sidebar` | List pages and databases from the Notion sidebar | - |291| `status` | Check active CDP connection to Notion Desktop | - |292| `write` | Append text content to the currently open Notion page | `text` |293294### reddit (13 commands)295296| 命令 | 说明 | 参数 |297|------|------|------|298| `comment` | Post a comment on a Reddit post | `post_id`, `text` |299| `frontpage` | Reddit Frontpage / r/all | `limit` |300| `hot` | Reddit 热门帖子 | `subreddit`, `limit` |301| `popular` | Reddit Popular posts (/r/popular) | `limit` |302| `read` | Read a Reddit post and its comments | `post_id`, `sort`, `limit`, `depth`, `replies`, `max_length` |303| `save` | Save or unsave a Reddit post | `post_id`, `undo` |304| `saved` | Browse your saved Reddit posts | `limit` |305| `search` | Search Reddit Posts | `query`, `subreddit`, `sort`, `time`, `limit` |306| `subreddit` | Get posts from a specific Subreddit | `name`, `sort`, `time`, `limit` |307| `subscribe` | Subscribe or unsubscribe to a subreddit | `subreddit`, `undo` |308| `upvote` | Upvote or downvote a Reddit post | `post_id`, `direction` |309| `upvoted` | Browse your upvoted Reddit posts | `limit` |310| `user-comments` | View a Reddit user's comment history | `username`, `limit` |311| `user-posts` | View a Reddit user's submitted posts | `username`, `limit` |312| `user` | View a Reddit user profile | `username` |313314### reuters (1 command)315316| 命令 | 说明 | 参数 |317|------|------|------|318| `search` | Reuters 路透社新闻搜索 | `query`, `limit` |319320### smzdm (1 command)321322| 命令 | 说明 | 参数 |323|------|------|------|324| `search` | 什么值得买搜索好价 | `keyword`, `limit` |325326### stackoverflow (4 commands)327328| 命令 | 说明 | 参数 |329|------|------|------|330| `bounties` | Active bounties on Stack Overflow | `limit` |331| `hot` | Hot Stack Overflow questions | `limit` |332| `search` | Search Stack Overflow questions | `query`, `limit` |333| `unanswered` | Top voted unanswered questions on Stack Overflow | `limit` |334335### twitter (19 commands)336337| 命令 | 说明 | 参数 |338|------|------|------|339| `accept` | Auto-accept DM requests containing specific keywords | `keyword`, `max` |340| `article` | Fetch a Twitter Article (long-form content) and export as Markdown | `tweet_id` |341| `bookmark` | Bookmark a tweet | `url` |342| `bookmarks` | Fetch Twitter/X bookmarks | `limit` |343| `delete` | Delete a specific tweet by URL | `url` |344| `download` | 下载 Twitter/X 媒体(图片和视频) | `username`, `tweet-url`, `limit`, `output` |345| `follow` | Follow a Twitter user | `username` |346| `followers` | Get accounts following a Twitter/X user | `user`, `limit` |347| `following` | Get accounts a Twitter/X user is following | `user`, `limit` |348| `like` | Like a specific tweet | `url` |349| `notifications` | Get Twitter/X notifications | `limit` |350| `post` | Post a new tweet/thread | `text` |351| `profile` | Fetch a Twitter user profile (bio, stats, etc.) | `username` |352| `reply-dm` | Send a message to recent DM conversations | `text`, `max`, `skip-replied` |353| `reply` | Reply to a specific tweet | `url`, `text` |354| `search` | Search Twitter/X for tweets | `query`, `limit` |355| `thread` | Get a tweet thread (original + all replies) | `tweet_id`, `limit` |356| `timeline` | Fetch Twitter Home Timeline | `limit` |357| `trending` | Twitter/X trending topics | `limit` |358| `unbookmark` | Remove a tweet from bookmarks | `url` |359| `unfollow` | Unfollow a Twitter user | `username` |360361### v2ex (6 commands)362363| 命令 | 说明 | 参数 |364|------|------|------|365| `daily` | V2EX 每日签到并领取铜币 | - |366| `hot` | V2EX 热门话题 | `limit` |367| `latest` | V2EX 最新话题 | `limit` |368| `me` | V2EX 获取个人资料 (余额/未读提醒) | - |369| `notifications` | V2EX 获取提醒 (回复/由于) | `limit` |370| `topic` | V2EX 主题详情和回复 | `id` |371372### wechat (6 commands)373374| 命令 | 说明 | 参数 |375|------|------|------|376| `chats` | Open the WeChat chats panel (conversation list) | - |377| `contacts` | Open the WeChat contacts panel | - |378| `read` | Read the current chat content by selecting all and copying | - |379| `search` | Open WeChat search and type a query (find contacts or messages) | `query` |380| `send` | Send a message in the active WeChat conversation via clipboard paste | `text` |381| `status` | Check if WeChat Desktop is running on macOS | - |382383### weibo (1 command)384385| 命令 | 说明 | 参数 |386|------|------|------|387| `hot` | 微博热搜 | `limit` |388389### weread (8 commands)390391| 命令 | 说明 | 参数 |392|------|------|------|393| `book` | View book details on WeRead | `bookId` |394| `highlights` | List your highlights (underlines) in a book | `bookId`, `limit` |395| `notebooks` | List books that have highlights or notes | - |396| `notes` | List your notes (thoughts) on a book | `bookId`, `limit` |397| `ranking` | WeRead book rankings by category | `category`, `limit` |398| `search` | Search books on WeRead | `keyword`, `limit` |399| `shelf` | List books on your WeRead bookshelf | `limit` |400401### xiaohongshu (15 commands)402403| 命令 | 说明 | 参数 |404|------|------|------|405| `creator-note-detail` | 小红书单篇笔记详情页数据 | `note_id` |406| `creator-notes-summary` | 小红书最近笔记批量摘要 | `limit` |407| `creator-notes` | 小红书创作者笔记列表 + 每篇数据 | `limit` |408| `creator-profile` | 小红书创作者账号信息 (粉丝/关注/获赞/成长等级) | - |409| `creator-stats` | 小红书创作者数据总览 (观看/点赞/收藏/评论/分享/涨粉,含每日趋势) | `period` |410| `download` | 下载小红书笔记中的图片和视频 | `note_id`, `output` |411| `feed` | 小红书首页推荐 Feed | `limit` |412| `notifications` | 小红书通知 (mentions/likes/connections) | `type`, `limit` |413| `search` | 搜索小红书笔记 | `keyword`, `limit` |414| `user` | Get public notes from a Xiaohongshu user profile | `id`, `limit` |415416### xiaoyuzhou (5 commands)417418| 命令 | 说明 | 参数 |419|------|------|------|420| `episode` | View details of a Xiaoyuzhou podcast episode | `id` |421| `podcast-episodes` | List recent episodes of a Xiaoyuzhou podcast (up to 15, SSR limit) | `id`, `limit` |422| `podcast` | View a Xiaoyuzhou podcast profile | `id` |423424### xueqiu (6 commands)425426| 命令 | 说明 | 参数 |427|------|------|------|428| `feed` | 获取雪球首页时间线(关注用户的动态) | `page`, `limit` |429| `hot-stock` | 获取雪球热门股票榜 | `limit`, `type` |430| `hot` | 获取雪球热门动态 | `limit` |431| `search` | 搜索雪球股票(代码或名称) | `query`, `limit` |432| `stock` | 获取雪球股票实时行情 | `symbol` |433| `watchlist` | 获取雪球自选股列表 | `category`, `limit` |434435### yahoo-finance (1 command)436437| 命令 | 说明 | 参数 |438|------|------|------|439| `quote` | Yahoo Finance 股票行情 | `symbol` |440441### youtube (5 commands)442443| 命令 | 说明 | 参数 |444|------|------|------|445| `search` | Search YouTube videos | `query`, `limit` |446| `transcript` | Get YouTube video transcript/subtitles | - |447| `video` | Get YouTube video metadata (title, views, description, etc.) | `url` |448449### zhihu (4 commands)450451| 命令 | 说明 | 参数 |452|------|------|------|453| `download` | 导出知乎文章为 Markdown 格式 | `url`, `output`, `download-images` |454| `hot` | 知乎热榜 | `limit` |455| `question` | 知乎问题详情和回答 | `id`, `limit` |456| `search` | 知乎搜索 | `keyword`, `limit` |457458---459460## 输出格式461462| 格式 | 说明 | 使用场景 |463|------|------|----------|464| `table` | 表格格式(默认) | 人类阅读 |465| `json` | JSON 格式 | 程序处理、数据提取 |466| `yaml` | YAML 格式 | 配置文件、数据序列化 |467| `md` | Markdown 格式 | 文档生成 |468| `csv` | CSV 格式 | 数据分析、Excel 导入 |469470## 诊断命令471472```bash473# 检查 Browser Bridge 连接状态474opencli doctor475476# 实时测试浏览器连接477opencli doctor --live478479# 交互式设置480opencli setup481482# 列出所有可用命令483opencli list484```485486## 注意事项4874881. **登录状态**: 浏览器命令复用 Chrome 登录状态,确保已在 Chrome 中登录目标网站4892. **Chrome 扩展**: 必须安装 Browser Bridge 扩展4903. **命令模式**:491 - `[public]` - 公开 API,无需登录492 - `[cookie]` - 需要 Chrome 登录状态493 - `[ui]` - UI 自动化,需要应用在前台运行4944. **输出解析**: 使用 `-f json` 格式便于程序解析4955. **调试**: 使用 `-v` 参数查看详细日志