登录 注册
AI 应用与 AI Agent网站与 SaaS 工具开发者工具
31,021
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
JavaScript
语言
创建时间
最近更新

项目能做什么

将任意网站转化为 CLI 工具,支持 AI Agent 直接复用已登录的浏览器。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# OpenCLI

> **Convert any website into a CLI & run Browser Use on your logged-in Chrome.**
> Turn websites and browser sessions into deterministic interfaces for humans and AI agents.
> Or run Browser Use against any page — navigate, fill forms, click, extract, automate.

[![中文文档](https://img.shields.io/badge/docs-%E4%B8%AD%E6%96%87-0F766E?style=flat-square)](./README.zh-CN.md)
[![npm](https://img.shields.io/npm/v/@jackwener/opencli?style=flat-square)](https://www.npmjs.com/package/@jackwener/opencli)
[![Chrome Web Store](https://img.shields.io/badge/Chrome_Web_Store-Install_extension-4285F4?style=flat-square&logo=googlechrome&logoColor=white)](https://chromewebstore.google.com/detail/opencli/ildkmabpimmkaediidaifkhjpohdnifk)
[![Node.js Version](https://img.shields.io/node/v/@jackwener/opencli?style=flat-square)](https://nodejs.org)
[![License](https://img.shields.io/npm/l/@jackwener/opencli?style=flat-square)](./LICENSE)

OpenCLI is a **general-purpose browser automation CLI for AI agents** and an **agent-browser alternative**. Navigate, inspect, click, fill forms, extract, and screenshot websites without a site adapter. Built-in adapters add reusable, deterministic site commands. See [OpenCLI vs agent-browser and migration](./docs/guide/agent-browser-alternative.md).

OpenCLI gives you one surface for three different kinds of automation:

- **Use built-in adapters** for sites like Bilibili, Zhihu, Xiaohongshu, Reddit, HackerNews, Twitter/X, and [many more](#built-in-commands).
- **Let AI Agents operate any website** — install the `opencli-browser` skill in your AI agent (Claude Code, Cursor, etc.), and it can navigate, click, type/fill, extract, and inspect any page through your logged-in browser via `opencli browser` primitives.
- **Write new adapters** end-to-end with `opencli browser` + the `opencli-adapter-author` skill, which guides from first recon through field decoding, code, and `opencli adapter test`.


## Agent command contract

Commands default to JSON: `{ "ok": true, "data": ... }`; failures return
`{ "ok": false, "error": { "code": "...", "message": "...", "hint": "..." } }`
on stdout with a nonzero exit code. Logs use stderr. Explicit human formats,
help, version and completion retain their own formats; browser follow modes use JSON Lines.

```sh
opencli list search --site github
opencli browser open https://example.com --session research
opencli browser network --static --session research
opencli browser chrome describe
opencli adapter check github/search
```

`list` returns compact, paginated capabilities (`commands`, `total`, `nextOffset`);
read arguments with `<command> --help -f json`. Page scope is `--session`, native
Chrome calls need no session. Adapter authoring is grouped under `adapter init|check|test`.
`state --diagnostics` and `network --static` replace `analyze` and `discover`.
This changes CLI syntax and JSON output. JS adapters keep `cli({...})`,
`func(args)` and `func(page, args)`; adapter `defaultFormat` no lon
阅读完整原文

商业机会分析 AI 生成

OpenCLI Hub:网页转CLI指令模板与工作流市场

产品构想建立类似Raycast Store或Brew的社区平台,分发经过验证的常用网站(如AWS控制台、Jira、各类SaaS平台)CLI自动化脚本与AI Agent技能包。
核心功能高价值网站脚本一键安装、版本管理、参数化执行配置、私有脚本分享机制。
目标用户缺乏时间编写Playwright脚本的独立开发者、个人效率极客、自动化运维人员。
难度/周期中等 · 4-6周 · 成本:轻量Web服务器与数据库托管费用(<50美元/月)。
收费模式付费下载高级/专业级脚本模板、创作者打赏抽成、团队私有Registry订阅。
竞争风险目标网站改版导致脚本失效频繁,维护成本高。
依据 已验证事实(基于Playwright的网页自动化脚本对网站UI变更敏感)与AI推测

OpenCLI Cloud Gateway:浏览器会话云端代理与安全执行引擎

产品构想提供云端托管浏览器实例,将本地已登录状态安全同步至云端沙箱,使后台AI Agent无需本地常驻即可按需调用CLI交互能力。
核心功能本地凭据加密同步、多会话隔离沙箱、基于Token的访问控制、执行日志与录屏审计。
目标用户需要7x24小时运行后台AI Agent的企业团队、RPA方案集成商。
难度/周期高 · 8-12周 · 成本:动态容器/无头浏览器服务器资源(AWS/GCP实例开销)。
收费模式按执行时长(Browser-hours)或调用次数阶梯收费、企业安全版席位费。
竞争风险用户凭据(Cookies/Tokens)安全合规风险极高;反爬虫机制可能封禁云端机房IP。
依据 数据支持的判断(企业环境无法依赖个人开发机本地浏览器长期在线)

Agent-to-CLI 企业级安全网关与审计插件

产品构想针对企业内网场景,限制AI Agent通过OpenCLI执行高危网页操作,提供审批流、脱敏和只读模式限制插件。
核心功能敏感DOM字段自动脱敏、高危点击/提交二次人工确认拦截、操作回放合规日志导出。
目标用户有合规审计需求的中大型企业安全团队、金融/电商自动化运维团队。
难度/周期中等 · 6-8周 · 成本:开发机器与测试靶场环境,成本低。
收费模式商业授权许可证(按节点或团队规模买断/年付)。
竞争风险销售周期长,企业客户决策链路复杂。
依据 尚需验证的假设(企业是否愿意直接采用开源包装的CLI方案处理高危Web交互)
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
NousResearch/hermes-agent 中文介绍暂未生成
The agent that grows with you
262,395 Python
firecrawl/firecrawl 中文介绍暂未生成
Supercharge your AI agents with data from the web and beyond
200,445 TypeScript
DietrichGebert/ponytail 中文介绍暂未生成
Makes your AI agent think like the laziest senior dev in the
188,295 JavaScript
msitarzewski/agency-agents 中文介绍暂未生成
A complete AI agency at your fingertips - From frontend wiza
167,633 Shell
langgenius/dify 中文介绍暂未生成
Build Agentic workflows, RAG pipelines, with rich AI model a
160,872 Python
langflow-ai/langflow 中文介绍暂未生成
Langflow is a powerful tool for building and deploying AI-po
156,509 Python
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 ,最近推送 ,发布过 100 个 Release
社区活跃Star 31,021 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/jackwener/OpenCLI.git
cd OpenCLI
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。