SuperAPI AI Directory

opencli

Frontend & websites

View repository

Updated 10-16 03:05

About this skill

OpenCLI - Website CLI Operations

Via OpenCLI transform websites and Electron apps into CLI commands. Reuse the user's Chrome login state, no password input required, and return structured JSON.

Core Advantages

  • Reuse Chrome login state — No password/token needed, directly use the already logged-in Chrome
  • Deterministic commands — Much more reliable than browser_task's "let the LLM guess"
  • Structured JSON output — Zero ambiguity for LLM parsing

When to use OpenCLI (preferred over browser_task)

Scenario Recommended tool Reason
Operating websites that have adapters (GitHub, Bilibili, etc.) opencli_run Deterministic commands, JSON output
Operations that require login state opencli_run Reuse Chrome login
Websites without adapters browser_task / manual browser_* Sites not supported by OpenCLI
Simple web content reading web_fetch No browser needed

Tools

opencli_list — Discover available commands

opencli_list()

opencli_run — Execute commands

Command format: <site> <subcommand>, pass directly to opencli.

opencli_run(command="zhihu hot list")
opencli_run(command="hackernews top")
opencli_run(command="bilibili video info", args=["BV1xx411c7XW"])

opencli_doctor — Diagnose environment

opencli_doctor()

Prerequisites

  1. Install opencli: npm install -g @jackwener/opencli
  2. Chrome browser is running and logged in to the target website
  3. Browser Bridge extension is installed (first run opencli setup configuration)

Decision Path

需要操作网站?
├─ 目标网站有 opencli adapter → opencli_run(首选)
├─ 需要登录但无 adapter → browser_task → 手动 browser_click/type 组合
├─ 只需读取内容 → web_fetch
└─ 只需搜索 → web_search

Related Skills

  • browser_task — Fallback solution when there is no adapter
  • browser_navigate — Simple navigation
  • web_fetch — Lightweight URL content retrieval
  • web_search — Search engine query