opencode/services/legacy/README.md
Dax Raad 36f559b0c6 chore: move the data site off sst
the stats site, its og worker and the sync workflow deploy from services/data with cf as
opencode-data-<stage>, opencode-data-og-<stage> and opencode-data-sync-<stage>. the beta
web app and the whole sst setup (sst.config.ts, infra/, sst-env.d.ts, the sst dependency)
are gone, so nothing deploys through sst anymore (security finding #920).
2026-11-10 22:46:25 -05:00

1.5 KiB

Legacy (deprecated)

Deprecated. What is left of V1's hosted services. Don't add features here. Each hostname can be dropped whenever we're fine breaking the old clients that still call it.

One Worker that answers by hostname:

  • opncd.ai (production) and dev.opncd.ai (development) are the retired session-sharing host. Session sharing was retired in #55716 and V2 has no sharing. They serve the "Session sharing has been discontinued" page, and the old /api/share endpoints still answer so V1 clients keep working (src/share.ts).
  • api.opencode.ai (production) and api.dev.opencode.ai (development) exchange a GitHub Actions OIDC token for a GitHub App installation token for the V1 GitHub Action (POST /exchange_github_app_token, src/api.ts).

cloudflare.config.ts defines the Worker. deploy:dev and deploy:production deploy it with cf from .github/workflows/deploy.yml. The deploy job reads the GITHUB_APP_ID and GITHUB_APP_PRIVATE_KEY Worker secrets from AWS Secrets Manager (opencode/<stage>/GITHUB_APP_*) and uploads them with --secrets-file.

Environment Worker Hostnames
Development opencode-legacy-dev dev.opncd.ai, api.dev.opencode.ai
Production opencode-legacy-production opncd.ai, api.opencode.ai
bun run typecheck
bun test