OpenCLI
$ opencli Community Med RiskOpenCLI (jackwener/OpenCLI) bridges websites and web apps into structured CLIs driven by the OpenCLI Specification (OCS). Agents reuse your existing logged-in browser session while receiving strict { "ok": true, "data": ... } JSON on stdout and logs on stderr.
npm install -g @jackwener/opencli Exposes websites via compact OCS command trees and strict JSON stdout without loading multi-tool browser MCP schemas into context.
At a Glance
- Command
- $ opencli
- FCRS-1.0 Score
- 84/100 (Good)
- Evidence Tier
- Medium Confidence
- CLI vs MCP
- CLI Preferred vs MCP
- Reviewed Date
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Defaults to strict JSON payloads on stdout (stderr for logs) and uses machine-readable OpenCLI Specification definitions.
- Default JSON
stdoutcontract and OpenCLI Specification (OCS) schemas
Avoids storing raw credentials by reusing your local Chrome session, though mutating commands act with full user privileges.
- Reuses logged-in browser state; write actions carry real account impact
Single global install via npm install -g @jackwener/opencli on Node.js >=20 across major OSes.
- Distributed via npm (
@jackwener/opencli)
Turns arbitrary web UIs into repeatable CLI commands with zero per-request API cost.
- Site adapter plugins avoid brittle full-page scraping loops
Popular Apache-2.0 OSS project (jackwener/OpenCLI, 31.7k+ stars) with active updates.
jackwener/OpenCLIrepository
Documented CLI contract, plugin workflow, and OCS specification at opencli.info.
- Docs at opencli.info and GitHub README
Security, Auth & Guardrails
Reuses the user's authenticated local browser session/cookies rather than duplicating passwords or API keys into plaintext files.
Apache-2.0 open-source and free; eliminates paid third-party scraping API fees.
# opencli Agent Rules
- Parse `stdout` strictly as JSON (`{ "ok": true, "data": ... }`) and inspect `stderr` only on errors.
- Confirm before running mutating website actions since `opencli` operates inside your live logged-in browser session.
- Discover adapter flags via `opencli <adapter> --help` before calling. Agent-Ready Command Recipes
Safe Read-Only Queries
opencli --help
Inspects available subcommands and registered website adapters cleanly.
Controlled Writes & Previews
npx skills add jackwener/opencli
Installs the companion agent skill so coding agents follow the OpenCLI JSON contract.
Strengths for Agents
- + Enforces a clean
{ "ok": true, "data": ... }JSON stdout contract with logs isolated tostderr. - + Reuses authenticated browser sessions without extracting API keys.
- + Supports extensible site adapters and
npx skills add jackwener/opencli.
Caveats & Pitfalls
- ! Actions execute under your real logged-in browser identity, requiring confirmation on writes.
- ! Requires Node.js >=20 and a compatible local Chrome/Chromium session.
Official References
Tested Agent Hosts
Follow Ecosystem Links
Related CLIs in Agent Bridges & Meta
View category hub →GitHub Spec Kit CLI (`specify`) scaffolding spec-driven AI development workflows into repositories.
Open-source API SDK and documentation generator CLI (`fern`) with `fern check` validation and `--local` builds.
Python CLI (`gitingest`) to convert any local directory or Git URL into a prompt-ready text digest.
Official MCP testing & debugging tool (`@modelcontextprotocol/inspector`) with `--cli` headless inspection mode.
Analyze AI coding CLI token usage and costs from local JSONL logs (`ccusage`) with `--json`.