Repository navigation
|
Is it compatible with OpenCode or some other good Free LLM? |
Replies: 4 comments 1 reply
|
Yes — OpenCode is supported directly on current Minimal setup: npm install -g @alibaba-group/open-code-review
ocr config provider
ocr config model
ocr llm test
mkdir -p ~/.config/opencode/plugins
curl -fsSL \
https://raw.githubusercontent.com/alibaba/open-code-review/main/plugins/open-code-review/opencode/open-code-review.ts \
-o ~/.config/opencode/plugins/open-code-review.ts
cd ~/.config/opencode
npm init -y # skip if package.json already exists
npm install @opencode-ai/plugin # OpenCode 1.x
# OpenCode 2.x also needs: @opencode/plugin@betaRestart OpenCode, then use For a free/local model, configure OCR with a custom endpoint via References: native OpenCode integration and supported model protocols/custom endpoints. |
|
No need to apologize — and no, this does not go into CI/CD for your current setup. Because you run OpenCode from IntelliJ IDEA:
If that succeeds, review the current project with: The terminal command One caveat: this requires the actual OpenCode agent/plugin runtime. If “IDEA AI with OpenCode” means a different JetBrains plugin that merely uses an OpenAI-compatible model, tell me its exact plugin name; that may not load files from |
|
I can't run the ocr commands.
Here's our sandbox https://github.com/Bearsampp/sandbox and here's our actual production repo |
|
The install completed, but there are two separate checks: npm did not approve the package's For a global install, npm uninstall -g @alibaba-group/open-code-review
npm install -g --allow-scripts=@alibaba-group/open-code-review @alibaba-group/open-code-review@latest
$prefix = npm prefix -g
$prefix
Get-ChildItem $prefix -Filter "ocr*"
Get-Command ocr
ocr --versionIf If npm still refuses to run the installer, use the project's official Windows installer after inspecting it: Invoke-WebRequest https://raw.githubusercontent.com/alibaba/open-code-review/main/install.ps1 -OutFile install.ps1
Get-Content .\install.ps1
.\install.ps1
ocr --versionOnce References: npm global install-script approval, OCR package postinstall/bin definition, and official Windows installer. |

Yes — OpenCode is supported directly on current
main.Minimal setup:
Restart OpenCode, then use
/ocr-healthand/ocr-review.For a free/local model, configure OCR with a custom endpoin…