You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/ko-browser/SKILL.md
+27-13Lines changed: 27 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,20 @@ allowed-tools: Bash(kbr:*)
6
6
7
7
# Browser Automation with ko-browser
8
8
9
-
The CLI uses Chrome/Chromium via CDP directly. Install via `go install github.com/libi/ko-browser/cmd/kbr@latest` or build from source. Run `kbr install` to verify Chrome is available, or `kbr install --with-deps` to auto-install it. Existing Chrome, Brave, and Chromium installations are detected automatically.
9
+
The CLI uses Chrome/Chromium via CDP directly. Install it with Homebrew on macOS, download a release binary on Windows or Linux, or use `go install` if you want to build from source. Run `kbr install` to verify Chrome is available, or `kbr install --with-deps` to auto-install it. Existing Chrome, Brave, and Chromium installations are detected automatically.
10
10
11
11
## Installation
12
12
13
13
```bash
14
-
# Install kbr binary directly (no CGO, no external dependencies)
14
+
# macOS: install with Homebrew
15
+
brew tap libi/tap
16
+
brew install ko-browser
17
+
18
+
# Go install: install kbr without OCR
15
19
go install github.com/libi/ko-browser/cmd/kbr@latest
16
20
17
-
# Or build from source
18
-
git clone https://github.com/libi/ko-browser.git
19
-
cd ko-browser
20
-
go build -o kbr ./cmd/kbr/
21
-
mv kbr /usr/local/bin/
21
+
# Go install: install kbr with OCR support
22
+
CGO_ENABLED=1 go install -tags=ocr github.com/libi/ko-browser/cmd/kbr@latest
22
23
23
24
# Verify browser dependency
24
25
kbr install
@@ -27,12 +28,25 @@ kbr install
27
28
kbr install --with-deps
28
29
```
29
30
30
-
> **OCR is optional.** The default install has zero CGO dependencies.
31
-
> To enable `kbr snapshot --ocr`, rebuild with `-tags=ocr` (requires Tesseract):
> **OCR is optional for go install.** The plain `go install` command has no CGO dependency.
49
+
> **Release binaries and Homebrew installs include OCR support.** To use OCR, make sure Tesseract is installed first: `brew install tesseract` on macOS, `apt install libtesseract-dev` on Linux.
0 commit comments