opencli-rs:Rust 重写的 AI Agent 信息抓取神器,速度快 12x

opencli-rs:Rust 重写的 AI Agent 信息抓取神器,速度快 12x

什么是 opencli-rs?

opencli-rs 是原 TypeScript 版 OpenCLI 的 Rust 完整重写,专为 AI Agent 设计的命令行网页信息抓取工具。一条命令,覆盖 55+ 网站、333 个指令,单文件 4.7MB,零运行时依赖。

核心亮点

  • 🚀 速度快 12x:bilibili hot 仅需 1.66s(原版 20.1s)
  • 💾 内存省 10x:仅占 9-15MB(原版 95-99MB)
  • 📦 4.7MB 单文件:零运行时依赖,无需 Node.js / Python
  • 🌐 55+ 平台:Twitter/X、小红书、B站、知乎、微博、Reddit、YouTube、HackerNews、Bloomberg 等
  • 🔐 复用浏览器 Session:通过 Chrome 扩展免 Token 管理
  • 🤖 AI 原生:在 AGENT.md 中配置即可让 AI 自动调用所有工具

性能对比

指令opencli-rs (Rust)opencli (Node.js)提升
bilibili hot1.66s20.1s🔥 12x
zhihu hot1.77s20.5s🔥 11.6x
xueqiu search 茅台1.82s9.2s⚡ 5x
xiaohongshu search5.1s14s⚡ 2.7x

安装方式

curl -fsSL https://raw.githubusercontent.com/nashsu/opencli-rs/main/scripts/install.sh | sh

快速上手

# HackerNews 热榜(无需登录)
opencli-rs hackernews top --limit 10

# 知乎热榜
opencli-rs zhihu hot

# B站热门
opencli-rs bilibili hot --limit 20

# Twitter 搜索
opencli-rs twitter search "AI agent" --limit 10

# 小红书搜索
opencli-rs xiaohongshu search "分段睫毛"

支持的平台(55+)

包括:Twitter/X、Reddit、YouTube、HackerNews、Bilibili、Zhihu、Xiaohongshu、Bloomberg、BBC、LinkedIn、Weibo、Douban、WeRead、Substack、Medium、Steam、StackOverflow、arXiv、Wikipedia 等。

给 AI Agent 的意义

把 opencli-rs 的命令列表写进 AGENT.md 或 .cursorrules,AI Agent 就能自动发现并调用所有平台工具,实现真正意义上的「全网信息触达」。结合 OpenClaw,几乎可以让 Agent 访问整个互联网的实时数据。


Source: https://github.com/nashsu/opencli-rs