docs: update extension installation instructions

This commit is contained in:
jackwener committed 2026-03-20 11:22:39 +08:00
1 parent f5f7a9500e
commit 92fc13d60e
2 files changed
+24 -8

No files matched your search

+12 -4
View File
@@ -54,10 +54,18 @@ OpenCLI connects to your browser through a lightweight **Browser Bridge** Chrome
### Browser Bridge Extension Setup ### Browser Bridge Extension Setup
1. Install the **opencli Browser Bridge** extension in Chrome: You can install the extension via either method:
- Open `chrome://extensions`, enable **Developer mode** (top-right toggle)
- Click **Load unpacked**, select the `extension/` folder from this repo **Method 1: Download Pre-built Release (Recommended)**
2. That's it! The daemon auto-starts when you run any browser command. No tokens, no manual configuration. 1. Go to the GitHub [Releases page](https://github.com/jackwener/opencli/releases) and download the latest `opencli-extension.zip` or `opencli-extension.crx`.
2. Open `chrome://extensions` and enable **Developer mode** (top-right toggle).
3. Drag and drop the `.crx` file or the unzipped folder into the extensions page.
**Method 2: Load Unpacked Source (For Developers)**
1. Open `chrome://extensions` and enable **Developer mode**.
2. Click **Load unpacked** and select the `extension/` directory from this repository.
That's it! The daemon auto-starts when you run any browser command. No tokens, no manual configuration.
> **Tip**: Use `opencli doctor` for ongoing diagnosis: > **Tip**: Use `opencli doctor` for ongoing diagnosis:
> ```bash > ```bash
+12 -4
View File
@@ -55,10 +55,18 @@ OpenCLI 通过轻量化的 **Browser Bridge** Chrome 扩展 + 微型 daemon 与
### Browser Bridge 扩展配置 ### Browser Bridge 扩展配置
1. 在 Chrome 中安装 **opencli Browser Bridge** 扩展: 你可以选择以下任一方式安装扩展:
- 打开 `chrome://extensions`,启用右上角的 **开发者模式**
- 点击 **加载已解压的扩展程序**,选择本仓库的 `extension/` 文件夹 **方式一:下载构建好的安装包(推荐)**
2. 完成!运行任何浏览器命令时 daemon 会自动启动。无需 token,无需手动配置。 1. 到 GitHub [Releases 页面](https://github.com/jackwener/opencli/releases) 下载最新的 `opencli-extension.zip` 或 `opencli-extension.crx`。
2. 打开 Chrome 的 `chrome://extensions`,启用右上角的 **开发者模式**。
3. 将 `.crx` 拖入浏览器窗口,或将解压后的文件夹拖入即可完成安装。
**方式二:加载源码(针对开发者)**
1. 同样在 `chrome://extensions` 开启 **开发者模式**。
2. 点击 **加载已解压的扩展程序**,选择本仓库代码树中的 `extension/` 文件夹。
完成!运行任何 opencli 浏览器命令时,后台微型 daemon 会自动启动与浏览器通信。无需配 API Token,零代码配置。
> **Tip**:后续诊断用 `opencli doctor`: > **Tip**:后续诊断用 `opencli doctor`:
> ```bash > ```bash