Skip to content

Commit 4533b07

Browse files
ci: switch review bot to OpenCode Zen free tier (keyless) (#219)
Use deepseek-v4-flash-free via the anonymous "public" token — the same keyless mechanism opencode itself uses when no API key is configured. Cost is $0; the endpoint is rate-limited per IP. Verified end-to-end with a local ocr review run (completed, 2 tool calls). Known upstream caveats (anomalyco/opencode#40479, #39204): the free route can intermittently hang or truncate; failed runs upload artifacts for debugging.
1 parent 65110e7 commit 4533b07

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎.github/workflows/ocr-review.yml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ concurrency:
55
cancel-in-progress: true
66

77
on:
8-
# pull_request_target so secrets are available even for PRs from forks.
8+
# pull_request_target so the job can post comments even on fork PRs
9+
# (GITHUB_TOKEN is read-only for pull_request events from forks).
910
# Safe because OCR only reads the diff and never executes PR code.
1011
pull_request_target:
1112
types: [opened, synchronize]
@@ -23,9 +24,12 @@ jobs:
2324
# alibaba/open-code-review v1.8.8, pinned by SHA (tags are mutable).
2425
uses: alibaba/open-code-review@6dc3eb067071c01e7234ac6032a9f7d656a29f84
2526
with:
26-
llm_url: https://opencode.ai/zen/go/v1/chat/completions
27-
llm_auth_token: ${{ secrets.OPENCODE_GO_API_KEY }}
28-
llm_model: deepseek-v4-flash
27+
# OpenCode Zen free tier: keyless anonymous access via the special
28+
# "public" token (same mechanism opencode itself uses when no key
29+
# is configured). $0 per token; rate-limited per IP.
30+
llm_url: https://opencode.ai/zen/v1/chat/completions
31+
llm_auth_token: public
32+
llm_model: deepseek-v4-flash-free
2933
llm_use_anthropic: 'false'
3034
llm_extra_body: '{"enable_thinking": false}'
3135
language: 'Japanese'

0 commit comments

Comments
 (0)