anomalyco / anomalyco/opencode
[FEATURE]: Support GITHUB_TOKEN in install script (API rate limit + private repos)
Open
@rekram1-node is already working on this.
Since Aug 5, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
The install script makes three anonymous GitHub requests:
- Version detection:
curl -s https://api.github.com/repos/anomalyco/opencode/releases/latest - Release existence check:
curl -sI .../releases/tag/v<ver> - Release asset download:
curl -L .../releases/download/...
Anonymous calls to api.github.com are rate-limited to 60/hour per IP. On shared CI runners this limit is often exhausted, so the version fetch fails and the install aborts (same root cause as #35120 for github/action.yml). Anonymous requests also make it impossible to install opencode from a private fork or mirror.
Proposal: if $GITHUB_TOKEN is set, send an Authorization: Bearer $GITHUB_TOKEN header on all three curl calls. Behavior is unchanged when the variable is empty.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.