Repository navigation
Releases
Releases · IMROVOID/OpenCode2API
OpenCode2API-Proxy v1.1.0
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_PATHorADMIN_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(defaultadmin) and password viaADMIN_PASSWORD/WEBUI_PASSWORD(defaultadmin). - 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
AAAAedge pool discovery over DoH (1.1.1.1/dns-query). - Worker subrequest steering via
cf.resolveOverride. - Clean device identity generation (
ses_,msg_, 40-hexproject, 32-hexmachineId). - Automatic sniffer and hop on
429,403 FreeTierError, andQuotaExceededwalls (up to 8 transparent attempts). /64prefix blacklist with 200-block cap and oldest-block recycling.
- Live Cloudflare
- Kilo Free Gateway Failover: Secondary fallback lane via
KILO_API_KEYandKILO_API_BASEfor 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.tsto evaluateworker.jsin 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)
- Linux (
- Standalone pre-tested Cloudflare Worker script:
worker.js.
Full Commit Log
9fc9816ci(release): check out repository in release job for git tags and notes [release]a036267ci(release): package multi-arch archives using pure node zip builder [release]b9f93e6chore(release): bump version to 1.1.0 [release]92a37e8feat(worker): add control panel backend with custom path and credentials, draft release workflow, and updated docs515d8f7fix(unlimited): align OpenCode v2.2.5 wire fingerprint and add Kilo Free Gateway failover on 429642f1edci(worker): build, verify in global-scope sandbox, and publish worker.js via GitHub Actions00c9760fix(worker): defer UnlimitedGuard identity generation to request handler scopeca7652echore: track bundled worker/worker.js in repository