opencli

Solid

OpenCLI — Make any website or Electron App your CLI. Zero risk, AI-powered, reuse Chrome login.

AI & Automation 422 stars 38 forks Updated 3 days ago Apache-2.0

Install

View on GitHub

Quality Score: 96/100

Stars 20%
87
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# OpenCLI > Make any website or Electron App your CLI. Reuse Chrome login, zero risk, AI-powered discovery. > [!CAUTION] > **AI Agent 必读:创建或修改任何适配器之前,你必须先阅读 [CLI-EXPLORER.md](./CLI-EXPLORER.md)!** > 该文档包含完整的 API 发现工作流(必须使用浏览器探索)、5 级认证策略决策树、平台 SDK 速查表、`tap` 步骤调试流程、分页 API 模板、级联请求模式、以及常见陷阱。 > **本文件(SKILL.md)仅提供命令参考和简化模板,不足以正确开发适配器。** > [!IMPORTANT] > 创建或修改 adapter 时,再额外遵守 3 条收口规则: > 1. 主参数优先用 positional arg,不要把 `query` / `id` / `url` 默认做成 `--query` / `--id` / `--url` > 2. 预期中的 adapter 失败优先抛 `CliError` 子类,不要直接 throw 原始 `Error` > 3. 新增 adapter 或新增用户可发现命令时,同步更新 adapter docs、`docs/adapters/index.md`、sidebar,以及 README/README.zh-CN 中受影响的入口 ## Install & Run ```bash # 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: 1. Chrome browser running **(logged into target sites)** 2. **opencli Browser Bridge** Chrome extension installed (load `extension/` as unpacked in `chrome://extensions`) 3. 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. ## Commands Reference ### Data Commands ```bash # Bilibili (browser) opencli bilibili hot --l...

Details

Author
mxyhi
Repository
mxyhi/ok-skills
Created
4 months ago
Last Updated
3 days ago
Language
HTML
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category