Run OpenCode 2 from the stable Homebrew formula

Declare the opencode formula with link = false so it never replaces the
npm-installed OpenCode 1.x CLI at /opt/homebrew/bin/opencode. Drop the npm
beta install from home.activation.opencode2, point home/bin/oc2 at the keg
binary, and correct the related notes.
This commit is contained in:
Lap Tran committed 2026-11-08 12:15:22 -05:00
1 parent ec34fc005c
commit 1fda5c09b7
5 files changed
+18 -26

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ else
fi
# Install OpenCode 1.x (stable CLI, binary "opencode") if absent.
# Required for free-tier models; opencode2 beta returns HTTP 426 on those endpoints.
# Required for free-tier models; OpenCode 2 is the separate stable `oc2` build.
# Uses Homebrew's npm (not Nix's npm) to avoid EACCES on the store.
# Skip if npm is unavailable (e.g., network issues preventing fetch).
OPENCODE_BIN=/opt/homebrew/bin/opencode