
将任意网站设置为CLI,并由AI代理使用你已登录的浏览器。
概览
将网站、浏览器会话、Electron应用和本地工具转化为人类和AI代理的确定性界面。或者对任何页面运行浏览器使用——导航、填写表单、点击、提取、自动化。 OpenCLI 为三种不同类型的自动化提供了一个表面: - 适用于如Bilibili、知湖、小红书、Reddit、HackerNews、Twitter/X等网站。- — 在你的AI代理(Claude代码、光标等)中安装OpenCLI浏览器技能,它可以通过OpenCLI浏览器原语在登录的浏览器中导航、点击、输入/填充、提取和检查任何页面。- 端到端支持OpenCLI浏览器+OpenCLI适配器-作者技能,指导从初次侦查到现场解码、代码和OpenCLI浏览器验证。 它还能支持本地工具,如 gh、docker、longbridge、tg、discord、wx、ntn(Notion)以及你自己注册的其他二进制文件,以及 Electron 应用如 Cursor、Trae CN、Codex、Antigravity、ChatGPT 和 Trae SOLO。
概述(AI 翻译)
将任意网站转换为命令行,并在登录的Chrome上运行浏览器使用。 将网站和浏览器会话转变为人类和人工智能代理的确定性界面。 或者对任何页面运行浏览器使用——导航、填写表单、点击、提取、自动化。
OpenCLI 是一种通用浏览器自动化 CLI,专为 AI 代理设计,同时也是代理-浏览器的替代方案。无需站点适配器即可导航、检查、点击、填写表单、提取和截图网站。内置适配器增加了可复用的确定性站点命令。参见 OpenCLI 与代理浏览器及迁移的比较。
OpenCLI 为三种不同类型的自动化提供了一个表面:
- 使用内置适配器,适用于像Bilibili、知虎、小红书、Reddit、HackerNews、Twitter/X等网站。
- 让AI代理操作任何网站 — 在你的AI代理中安装
opencli-browser技能(Claude代码、光标等),它可以通过opencli browser原语在你登录的浏览器中导航、点击、输入/填充、提取和检查任何页面。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
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.
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.
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.
- Let AI Agents operate any website — install the
opencli-browserskill 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 viaopencli browserprimitives. - Write new adapters end-to-end with
opencli browser+ theopencli-adapter-authorskill, which guides from first recon through field decoding, code, andopencli 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.
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 --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({...}),
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add jackwener/opencli