Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@jackwener/opencli

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jackwener/opencli

Make any website your CLI. AI-powered.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
12K
-1.6%
Maintainers
1
Weekly downloads
 
Created
Source

OpenCLI

Make any website your CLI. 操控 Chrome 无风控风险,复用登录,CLI 化全部网站。

OpenCLI 是一个 AI Native 的 CLI 工具,通过 Chrome 浏览器 + Playwright MCP Bridge 扩展,将任何网站变成命令行工具。

✨ 特性

  • 🌐 CLI 化全部网站 — 支持 Bilibili、知乎、GitHub、Twitter、V2EX、Hacker News 等
  • 🔐 零风控风险 — 复用 Chrome 已登录状态,无需存储密码
  • 🤖 AI Native — AI agent 可直接探索网站并自动生成新命令
  • 📝 声明式 YAML — 用 YAML 定义 pipeline,无需写代码
  • 🔌 TypeScript 扩展 — 复杂场景用 TS 编写适配器

🚀 快速开始

# 安装依赖
cd ~/code/ai-native-cli && npm install

# 列出所有命令
npx tsx src/main.ts list

# 公共 API(无需浏览器)
npx tsx src/main.ts hackernews top --limit 10
npx tsx src/main.ts github search --keyword "typescript"

# 浏览器命令(需要 Chrome + Playwright MCP Bridge 扩展)
npx tsx src/main.ts bilibili hot --limit 10
npx tsx src/main.ts zhihu hot --limit 10
npx tsx src/main.ts twitter trending --limit 10

📋 前置要求

浏览器命令需要:

  • Chrome 浏览器正在运行
  • 安装 Playwright MCP Bridge 扩展
  • 首次使用时点击扩展图标批准连接

📦 内置命令

站点命令说明模式
bilibilihot, search, me, favorite, history, feed, user-videos热门 / 搜索 / 个人 / 收藏 / 历史 / 动态 / 投稿🔐 浏览器
zhihuhot, search热榜 / 搜索🔐 浏览器
githubtrending, searchTrending / 搜索🔐 / 🌐 公共
twittertrending热门话题🔐 浏览器
v2exhot, latest热门 / 最新🔐 浏览器
hackernewstop热门故事🌐 公共 API

🎨 输出格式

opencli bilibili hot -f table   # 默认表格
opencli bilibili hot -f json    # JSON(适合管道和 AI agent)
opencli bilibili hot -f md      # Markdown
opencli bilibili hot -f csv     # CSV

🔧 创建新命令

参考 SKILL.md 了解 YAML 和 TypeScript 两种方式创建新的 CLI 适配器。

📄 License

MIT

Keywords

cli

FAQs

Package last updated on 14 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts