mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
feedaf93b4
* fix: remove duplicate extension zip from releases
The release and build-extension workflows were creating both
opencli-extension.zip and opencli-extension-v{version}.zip (identical
content), causing both to be uploaded. Keep only the versioned filename.
* docs: update extension zip filename to versioned format
Update all references from opencli-extension.zip to
opencli-extension-v{version}.zip to match the workflow change.
1.2 KiB
1.2 KiB
Browser Bridge 设置
⚠️ 重要: 浏览器命令复用你的 Chrome 登录会话。运行命令前必须在 Chrome 中登录目标网站。
OpenCLI 通过轻量级 Browser Bridge Chrome 扩展 + 微守护进程连接浏览器(零配置,自动启动)。
扩展安装
方法 1:下载预构建版本(推荐)
- 前往 GitHub Releases 页面 下载最新的
opencli-extension-v{version}.zip。 - 解压后打开
chrome://extensions,启用开发者模式。 - 点击加载已解压的扩展程序,选择解压后的文件夹。
方法 2:加载源码(开发者)
- 打开
chrome://extensions,启用开发者模式。 - 点击加载已解压的扩展程序,选择仓库中的
extension/目录。
验证
opencli doctor # 检查扩展 + 守护进程连接
Daemon 生命周期
Daemon 在首次运行浏览器命令时自动启动,之后保持常驻运行。
opencli daemon stop # 优雅关停
Daemon 为常驻模式,会一直运行直到你显式停止(opencli daemon stop)或卸载包。