Skip to content
Discussion options

You must be logged in to vote

Yes — OpenCode is supported directly on current main.

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@beta

Restart OpenCode, then use /ocr-health and /ocr-review.

For a free/local model, configure OCR with a custom endpoin…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@N6REJ
Comment options

Answer selected by lizhengfeng101
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants