Skip to content

Latest commit

 

History

History
 
 

updates

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

OpenCode Updates

The updates Worker serves all selected artifacts for a channel.

curl 'https://update.opencode.ai/api/latest'
curl 'https://update.opencode.ai/api/latest/cli'
curl 'https://update.opencode.ai/api/latest/cli/npm'

The /admin* route must be protected by a Cloudflare Access self-hosted application. Configure the application with:

  • Public hostname: update.opencode.ai
  • Path: admin*
  • Policy: allow the OpenCode team identity group

The Worker has workers_dev and preview URLs disabled so the custom hostname is its only public entry point.

GitHub Actions publishes artifacts through POST /api/publish using a short-lived OIDC token with audience https://update.opencode.ai. The Worker accepts only tokens signed by GitHub for repository ID 975734319, owner ID 66570915, and .github/workflows/publish.yml on configured publishing refs.

Apply migrations and deploy from this directory:

bun run db:migrate
bun run deploy