Skip to content

Releases

OpenCode2API-Proxy v1.1.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 23:24

OpenCode2API-Proxy v1.1.0 introduces a Cloudflare Worker control panel with session authentication, a self-healing dual-lane unlimited architecture, multi-architecture packaging, and automated Worker global-scope verification.


What's New

1. Cloudflare Worker Control Panel

  • Embedded WebUI on Workers: The greyscale dark control panel is now fully functional on Cloudflare Workers.
  • Custom URL Routing: Configure WEBUI_PATH or ADMIN_PATH (e.g. /admin). When configured, / serves API health JSON while the WebUI runs on the custom route.
  • Session Authentication: Secure HTTP-only cookie authentication backed by src/worker/admin.ts.
  • Configurable Credentials: Custom username via ADMIN_USERNAME (default admin) and password via ADMIN_PASSWORD / WEBUI_PASSWORD (default admin).
  • Management Endpoints: Integrated endpoints for overview metrics, model catalogs, rotation groups, API keys, and Playground testing.

2. Dual-Lane Self-Healing & Quota Bypass

  • OpenCode v2.2.5 Direct Lane:
    • Live Cloudflare AAAA edge pool discovery over DoH (1.1.1.1/dns-query).
    • Worker subrequest steering via cf.resolveOverride.
    • Clean device identity generation (ses_, msg_, 40-hex project, 32-hex machineId).
    • Automatic sniffer and hop on 429, 403 FreeTierError, and QuotaExceeded walls (up to 8 transparent attempts).
    • /64 prefix blacklist with 200-block cap and oldest-block recycling.
  • Kilo Free Gateway Failover: Secondary fallback lane via KILO_API_KEY and KILO_API_BASE for zero-quota completions when OpenCode free pools are saturated.
  • Diagnostic Endpoints:
    • GET /v1/unlimited/doctor — Cloudflare egress verification and blacklist telemetry.
    • POST /v1/unlimited/hop — Instant manual edge and identity rotation.

3. Cloudflare Workers Global-Scope Safety

  • Resolved Cloudflare Workers initialization error by strictly deferring asynchronous I/O and cryptographic random generation into request handler scope.
  • Added scripts/verify-worker.ts to evaluate worker.js in a synthetic Worker sandbox prior to publishing.

4. Automated Multi-Platform Packaging & Release Pipeline

  • Automated GitHub Actions release workflow supporting manual trigger (workflow_dispatch) and commit message flag ([release]).
  • Dependency-free pure Node zip packager (scripts/build-release.ts) generating cross-platform archives.
  • Pre-built packages for 6 platform targets:
    • Linux (x64, arm64)
    • Windows (x64, arm64)
    • macOS (x64, arm64)
  • Standalone pre-tested Cloudflare Worker script: worker.js.

Full Commit Log

  • 9fc9816 ci(release): check out repository in release job for git tags and notes [release]
  • a036267 ci(release): package multi-arch archives using pure node zip builder [release]
  • b9f93e6 chore(release): bump version to 1.1.0 [release]
  • 92a37e8 feat(worker): add control panel backend with custom path and credentials, draft release workflow, and updated docs
  • 515d8f7 fix(unlimited): align OpenCode v2.2.5 wire fingerprint and add Kilo Free Gateway failover on 429
  • 642f1ed ci(worker): build, verify in global-scope sandbox, and publish worker.js via GitHub Actions
  • 00c9760 fix(worker): defer UnlimitedGuard identity generation to request handler scope
  • ca7652e chore: track bundled worker/worker.js in repository