name = "unlimited-transfer-api" main = "src/worker.js" compatibility_date = "2025-11-21" # Store the upstream key as a secret instead of committing it here: # wrangler secret put UNLIMITED_SURF_API_KEY # # Optional: protect this Worker with your own client-facing key: # wrangler secret put WORKER_API_KEY # When WORKER_API_KEY is set, clients must send it as Authorization: Bearer , # x-api-key: , or anthropic-api-key: . If it is not set, the Worker # keeps the old behavior and accepts any client key. # # Clients can also send their own key as Authorization: Bearer # or x-api-key: ; the Worker forwards it upstream when no secret is set. [vars] UPSTREAM_BASE_URL = "https://unlimited.surf" DEFAULT_MODEL = "gateway-gpt-5-5" DEFAULT_CLAUDE_MODEL = "claude-opus-4-7-20260101"