OpenCLI Agent工作流 是 AI Skill Hub 本期精选Agent工作流之一。在 GitHub 上收获超过 20.3k 颗 Star,综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
OpenCLI Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
OpenCLI Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g opencli # 方式二:npx 直接运行(无需安装) npx opencli --help # 方式三:项目依赖安装 npm install opencli # 方式四:从源码运行 git clone https://github.com/jackwener/OpenCLI cd OpenCLI npm install npm start
# 命令行使用
opencli --help
# 基本用法
opencli [options] <input>
# Node.js 代码中使用
const opencli = require('opencli');
const result = await opencli.run(options);
console.log(result);
# opencli 配置说明 # 查看配置选项 opencli --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export OPENCLI_CONFIG="/path/to/config.yml"
Convert any website into a CLI & run Browser Use on your logged-in Chrome. Turn websites, browser sessions, Electron apps, and local tools into deterministic interfaces for humans and AI agents. Or run Browser Use against any page — navigate, fill forms, click, extract, automate.
OpenCLI gives you one surface for three different kinds of automation:
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.opencli browser + the opencli-adapter-author skill, which guides from first recon through field decoding, code, and opencli browser verify.It also works as a CLI hub for local tools such as gh, docker, longbridge, tg, discord, wx, ntn (Notion), and other binaries you register yourself, plus desktop app adapters for Electron apps like Cursor, Trae CN, Codex, Antigravity, ChatGPT, and Trae SOLO.
For desktop use, start with OpenCLIApp. It bundles the OpenCLI runtime, keeps the managed opencli command installed, and gives you a system tray UI for setup, diagnostics, updates, browser-login keepalive, and Web → Markdown.
Option A — OpenCLIApp (recommended for macOS / Windows): Download the latest app from <https://opencli.info/download>, install it, then open the app once and use the System page to install or repair the opencli command.
Option B — npm global install (CLI-only / CI / servers): OpenCLI requires Node.js >= 20 when installed through npm.
node --version
npm install -g @jackwener/opencli
OpenCLI connects to Chrome/Chromium through a lightweight Browser Bridge extension plus a small local daemon. The daemon auto-starts when needed.
Option A — Chrome Web Store (recommended): Install OpenCLI from the Chrome Web Store.
Option B — Manual install: 1. Download the latest opencli-extension-v{version}.zip from the GitHub Releases page. 2. Unzip it, open chrome://extensions, and enable Developer mode. 3. Click Load unpacked and select the unzipped folder.
opencli doctor
npx skills add jackwener/opencli
Or install only what you need:
npx skills add jackwener/opencli --skill opencli-adapter-author
npx skills add jackwener/opencli --skill opencli-autofix
npx skills add jackwener/opencli --skill opencli-browser
npx skills add jackwener/opencli --skill opencli-browser-sitemap
npx skills add jackwener/opencli --skill opencli-sitemap-author
npx skills add jackwener/opencli --skill opencli-usage
Each Chrome profile runs its own OpenCLI extension instance. If you use multiple Chrome profiles, list the connected profiles and assign local aliases:
opencli profile list
opencli profile rename <contextId> work
opencli profile use work
opencli --profile work browser state
With only one connected profile, OpenCLI uses it automatically. With multiple connected profiles and no default, OpenCLI asks you to choose instead of guessing.
| Variable | Default | Description |
|---|---|---|
OPENCLI_PROFILE | — | Browser Bridge profile alias/contextId to use when multiple Chrome profiles are connected |
OPENCLI_WINDOW | command default | Set to foreground or background to override Browser Bridge window placement. Browser-backed commands also accept --window <foreground\|background>. |
OPENCLI_BROWSER_CONNECT_TIMEOUT | 45 | Seconds to wait for browser connection |
OPENCLI_BROWSER_COMMAND_TIMEOUT | 60 | Seconds to wait for a single browser command |
OPENCLI_CDP_ENDPOINT | — | Chrome DevTools Protocol endpoint for remote browser or Electron apps |
OPENCLI_CDP_TARGET | — | Filter CDP targets by URL substring (e.g. detail.1688.com) |
OPENCLI_VERBOSE | false | Enable verbose logging (-v flag also works) |
DEBUG_SNAPSHOT | — | Set to 1 for DOM snapshot debug output |
opencli browser * requires an explicit <session> positional, uses a foreground browser window by default, and keeps that session's tab lease until opencli browser <session> close or idle cleanup. Browser-backed adapters use a background adapter window and release one-shot tab leases by default. Interactive adapters can declare siteSession: 'persistent' to keep a stable site tab for continuity; pass --site-session ephemeral for a one-shot tab.
Unified passthrough for your existing command-line tools. Run opencli <tool> ... for any of:
gh · docker · vercel · wrangler · obsidian · longbridge · lark-cli · ntn(notion) · dws(DingTalk Workspace) · wecom-cli(企业微信) · tg(tg-cli) · discord(discord-cli) · wx(wx-cli)
Register your own with opencli external register <name>; list everything with opencli external list.
Desktop app adapters (Electron, via CDP): Cursor / Trae CN / Codex / Antigravity / ChatGPT App / ChatWise / Qoder / Discord / Doubao / Trae SOLO — see docs/adapters/desktop/.
Extend OpenCLI with community-contributed adapters:
opencli plugin install github:user/opencli-plugin-my-tool
opencli plugin list
opencli plugin update --all
opencli plugin uninstall my-tool
| Plugin | Type | Description |
|---|---|---|
| [opencli-plugin-github-trending](https://github.com/ByteYue/opencli-plugin-github-trending) | JS | GitHub Trending repositories |
| [opencli-plugin-hot-digest](https://github.com/ByteYue/opencli-plugin-hot-digest) | JS | Multi-platform trending aggregator |
| [opencli-plugin-juejin](https://github.com/Astro-Han/opencli-plugin-juejin) | JS | 稀土掘金 (Juejin) hot articles |
| [opencli-plugin-vk](https://github.com/flobo3/opencli-plugin-vk) | JS | VK (VKontakte) wall, feed, and search |
See Plugins Guide for creating your own plugin.
chrome://extensions.fetch / startup crash on old Node — OpenCLI requires Node.js >= 20. Run node --version, upgrade Node if needed, then retry.curl localhost:19825/status · View logs: curl localhost:19825/logsOpenCLI 是一个强大的工具,旨在将任何网站、浏览器会话、Electron 应用或本地工具转换为面向人类和 AI Agent 的确定性接口。通过该工具,你可以将网页转化为 CLI 命令行界面,并利用 Browser Use 能力在已登录的 Chrome 浏览器中执行自动化操作,如导航、填写表单、点击、数据提取及自动化流程。
安装 OpenCLI 需要确保系统已安装 Node.js >= 20 版本。首先通过 npm 全局安装核心包:`npm install -g @jackwener/opencli`。随后,必须安装 Browser Bridge 扩展程序以实现与 Chrome/Chromium 的连接。推荐直接从 Chrome Web Store 下载安装,或通过手动下载扩展包的方式进行部署。安装完成后,建议运行 `opencli doctor` 命令来验证环境配置是否正确。
OpenCLI 支持通过不同的 Chrome Profile 进行隔离操作。如果你使用了多个 Chrome 配置文件,可以通过 `opencli profile list` 查看已连接的 Profile,并使用 `opencli profile rename` 为其分配本地别名(alias),随后通过 `opencli profile use <alias>` 进行切换。如果系统中仅连接了一个 Profile,OpenCLI 将会自动识别并使用,无需额外配置。
用户可以通过环境变量对 OpenCLI 进行自定义配置。例如,可以使用 `OPENCLI_DAEMON_PORT` 修改 daemon-extension bridge 的 HTTP 端口(默认为 19825);通过 `OPENCLI_PROFILE` 指定在多 Profile 环境下使用的别名或 contextId;此外,`OPENCLI_WINDOW` 参数允许你设置命令运行时的窗口模式(如 foreground 或 background),以灵活控制交互体验。
OpenCLI CLI Hub 提供了一个统一的透传接口,允许你直接通过 `opencli <tool>` 的方式调用现有的命令行工具。它集成了多种常用工具的适配,包括但不限于 `gh`、`docker`、`vercel`、`wrangler` 以及各类办公与社交工具如 `obsidian`、`lark-cli`、`ntn(notion)`、`dws(DingTalk Workspace)`、`wecom-cli(企业微信)`、`tg(tg-cli)`、`discord` 和 `wx(wx-cli)`。
OpenCLI 拥有灵活的插件系统,允许开发者通过社区贡献的适配器(Adapters)来扩展功能。你可以使用 `opencli plugin install` 从 GitHub 等源安装新插件,通过 `opencli plugin list` 查看已安装列表,并利用 `update`、`uninstall` 等命令进行插件的生命周期管理,从而实现高度定制化的自动化工作流。
针对常见问题,如果遇到 "Extension not connected" 错误,请检查是否已从 Chrome Web Store 安装 Browser Bridge 扩展并确保其在 `chrome://extensions` 中处于启用状态。若遇到 "attach failed: Cannot access a chrome-extension:// URL" 错误,通常需要检查扩展程序的权限设置或连接状态,以确保 CLI 能够正确挂载到浏览器会话中。
OpenCLI是创新的AI工作流方案,20k+星标显示社区认可度高。JavaScript实现便于集成,工作流+AI代理组合应对复杂自动化需求。核心价值在于通用CLI转换能力和AI运行时设计。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,OpenCLI Agent工作流 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | OpenCLI |
| 原始描述 | 开源AI工作流:Make Any Website & Tool Your CLI. A universal CLI Hub and AI-native runtime. Tra。⭐20.3k · JavaScript |
| Topics | AI工作流CLI工具AI代理自动化开源 |
| GitHub | https://github.com/jackwener/OpenCLI |
| License | Apache-2.0 |
| 语言 | JavaScript |
收录时间:2026-05-13 · 更新时间:2026-05-16 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端