|
| 1 | +--- |
| 2 | +name: opencli |
| 3 | +description: "OpenCLI — Make any website or Electron App your CLI. Zero risk, AI-powered, reuse Chrome login." |
| 4 | +version: 1.5.6 |
| 5 | +author: jackwener |
| 6 | +tags: [cli, browser, web, chrome-extension, cdp, AI, agent, operate] |
| 7 | +--- |
| 8 | + |
| 9 | +# OpenCLI |
| 10 | + |
| 11 | +> Make any website or Electron App your CLI. Reuse Chrome login, zero risk, AI-powered. |
| 12 | +
|
| 13 | +## Skills |
| 14 | + |
| 15 | +OpenCLI has three specialized skills. Use the one that matches your task: |
| 16 | + |
| 17 | +### 1. CLI Commands (`skills/cli/SKILL.md`) |
| 18 | +Use existing CLI commands to fetch data, interact with websites and desktop apps. |
| 19 | +```bash |
| 20 | +opencli twitter trending --limit 10 |
| 21 | +opencli hackernews top --limit 5 |
| 22 | +opencli bilibili hot |
| 23 | +``` |
| 24 | + |
| 25 | +### 2. Browser Automation (`skills/opencli-operate/SKILL.md`) |
| 26 | +Make websites accessible for AI agents. Navigate, click, type, extract, wait — with existing Chrome login sessions. No LLM API key needed. |
| 27 | +```bash |
| 28 | +opencli operate open https://example.com |
| 29 | +opencli operate state # See interactive elements with [N] indices |
| 30 | +opencli operate click 3 # Click element [3] |
| 31 | +opencli operate network # Discover APIs |
| 32 | +opencli operate init site/cmd # Generate adapter scaffold |
| 33 | +opencli operate verify site/cmd # Test the adapter |
| 34 | +``` |
| 35 | + |
| 36 | +### 3. Adapter Development (`skills/adapter-dev/SKILL.md`) |
| 37 | +Create new CLI commands from websites. Explore APIs, record traffic, write TypeScript adapters. |
| 38 | +```bash |
| 39 | +opencli explore https://example.com |
| 40 | +opencli record https://example.com |
| 41 | +opencli generate https://example.com --goal "hot" |
| 42 | +``` |
| 43 | + |
| 44 | +## Quick Setup |
| 45 | + |
| 46 | +```bash |
| 47 | +npm install -g @jackwener/opencli |
| 48 | +opencli doctor # Verify Chrome extension + daemon |
| 49 | +``` |
| 50 | + |
| 51 | +## Configuration |
| 52 | + |
| 53 | +```bash |
| 54 | +# For AI agent (opencli operate) |
| 55 | +export OPENCLI_PROVIDER=anthropic # or openai |
| 56 | +export OPENCLI_MODEL=sonnet # model alias |
| 57 | +export OPENCLI_API_KEY=sk-ant-... # API key |
| 58 | +export OPENCLI_BASE_URL=https://... # optional proxy |
| 59 | +``` |
0 commit comments