opencode/services/legacy
Dax 33123b1c42
Some checks are pending
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Waiting to run
bot-nix-hashes / hash (macos-latest, aarch64-darwin) (push) Waiting to run
bot-nix-hashes / compute (push) Blocked by required conditions
bot-nix-hashes / publish (push) Blocked by required conditions
check-nix / nix-eval (push) Waiting to run
Process daemon / Miri (callback ownership) (push) Waiting to run
Process daemon / Core (macos-15) (push) Waiting to run
Process daemon / Core (ubuntu-22.04) (push) Waiting to run
Process daemon / Windows (arm64) (push) Waiting to run
Process daemon / Windows (x64) (push) Waiting to run
check / typecheck (push) Waiting to run
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
ci: deploy dev workers in anomaly-dev (#63379)
2026-11-11 16:17:46 -05:00
..
src chore: move the api worker into the legacy service 2026-11-10 22:32:16 -05:00
test chore: move the api worker into the legacy service 2026-11-10 22:32:16 -05:00
.gitignore chore: move the api worker into the legacy service 2026-11-10 22:32:16 -05:00
cloudflare.config.ts ci: deploy dev workers in anomaly-dev (#63379) 2026-11-11 16:17:46 -05:00
package.json chore: move the api worker into the legacy service 2026-11-10 22:32:16 -05:00
README.md chore: move the data site off sst 2026-11-10 22:46:25 -05:00
tsconfig.json chore: move the api worker into the legacy service 2026-11-10 22:32:16 -05:00

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