[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114626":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":27,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},114626,"Opencode-Unlimited-Limit-Bypass-","ShadowySphinX\u002FOpencode-Unlimited-Limit-Bypass-","ShadowySphinX","Just a simple OpenCode free limit bypass. Leave it a STAR ✨ if it works for you ( I know it would). You guys asked for Open Source. So, I released the source, please give proper credits thanks.","",null,"Python",235,44,6,14,0,20,137,156,94,94.9,"MIT License",false,"main",true,[],"2026-11-21 01:44:11","2026-11-23 17:44:53","# PLEASE GIVE PROPER CREDITS. JUST DONT REBRAND AND LAUNCH IT AS YOURS.\n# NEW VERSION-3.0 (Fixed:503,ECONNRESET, keeper flapping, quota resets, drafts.sqlite unlock, WireGuard enforcement, auto-resume and some other BUGS)\n# Opencode-Unlimited-Limit-Bypass (`Remember all burnt IPs reset around midnight of your region`)\n\n[![Version](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FVersion-v3.0-22c55e?style=for-the-badge&logo=semver)](https:\u002F\u002Fgithub.com\u002FShadowySphinX\u002FOpencode-Unlimited-Limit-Bypass-)\n[![Author](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAuthor-Avatar%20%28ShadowySphinX%29-22d3ee?style=for-the-badge&logo=github)](https:\u002F\u002Fgithub.com\u002FShadowySphinX)\n[![Repository](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGitHub-Opencode--Unlimited-blue?style=for-the-badge&logo=github)](https:\u002F\u002Fgithub.com\u002FShadowySphinX\u002FOpencode-Unlimited-Limit-Bypass-)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-yellow.svg?style=for-the-badge)](https:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT)\n\nAutomatic rate-limit rotator, multi-egress proxy router, and autonomous session auto-resume for **OpenCode Desktop** and **OpenCode CLI**.\n\n![OpenCode Unlimited Dashboard](assets\u002Fui-preview.png)\n\nOpenCode's free-tier limits are applied to the inbound public IP address (`\u002F64` prefix on IPv6, `\u002F32` on IPv4). The rotator changes that address and clears the matching client-side lockout.\n\nThis tool monitors OpenCode logs for quota and rate-limit errors, cycles the active identity (fresh IPv6 `\u002F64`, Tor circuit, or proxy pool node), and tries to continue the running session without starting a new chat.\n\n---\n\n## Table of Contents\n1. [What's New in v3.0](#whats-new-in-v30)\n2. [Prerequisites & Downloads](#prerequisites--downloads-what-you-need)\n3. [Quick Start (Windows)](#quick-start-windows)\n4. [Recommended Settings for Every Method](#recommended-settings-for-every-method)\n5. [How Limit Reset Works on Existing Chats](#how-limit-reset-works-on-existing-chats)\n6. [Restricted Regions Guide (Russia, Iran, China)](#restricted-regions-guide-russia-iran-china)\n7. [Troubleshooting Playbook (\"What to do when something happens\")](#troubleshooting-playbook-what-to-do-when-something-happens)\n8. [Routing Architecture](#routing-architecture)\n9. [Linux Setup (Headless & VPS)](#linux-setup-headless--vps)\n10. [Building from Source](#building-from-source)\n\n---\n\n## What's New in v3.0\n\n* **Long responses survive flaky edges (Windows):**\n  * Fixed a relay bug where the proxy's buffered header reader could swallow the first TLS bytes after `CONNECT`, leaving the tunnel waiting for a response that had already arrived.\n  * The relay is now unbuffered, enables `TCP_NODELAY` and TCP keepalive on both sockets, and drains the client briefly when the upstream sends FIN. Windows closes with FIN instead of turning a completed response into an `ECONNRESET`.\n  * Mid-stream resets are recorded as `stream_reset` and counted separately from connection failures when the client was still waiting for data. A response that already completed before the server sent RST is not counted. The Proxy tab and health panel now distinguish \"the route never came up\" from \"a live stream was cut\".\n  * A pinned Cloudflare edge that cuts two live streams within five minutes is retired for new connections. Existing streams are left alone.\n  * If WARP reconnects with a new local IPv6 while a request is connecting, the proxy detects the stale bind (`WinError 10049` \u002F `EADDRNOTAVAIL`) and retries once with the fresh address instead of failing every edge.\n  * WARP tunnel repair is deferred while another proxy tunnel is active, so a repair cannot kill a response that is still generating. The failed request gets one quick retry first.\n* **Connection Recovery & Diagnostics:**\n  * The local proxy fails over to another Cloudflare edge instead of stalling on one dead address.\n  * A dropped WARP tunnel or proxy route is recorded, repaired, and surfaced in the dashboard instead of returning an empty `503`.\n  * **Auto-Repair** is on by default and only performs safe actions: start or restart a stopped proxy, reconnect WARP, repair the tunnel, or re-roll the edge. It never changes the selected mode, clears chats, restarts OpenCode, or deletes the WARP registration, and it respects workers you deliberately disabled.\n  * The **Proxy** log tab shows edge failover, `stream_reset`, direct fallback, and tunnel repair events.\n  * A local `EPIPE: broken pipe` from OpenCode's own console pipe is no longer reported as an upstream network error.\n  * Standard mode still permits a direct fallback so OpenCode stays usable; the health panel labels it **Using a direct connection** and offers a one-click repair. This now also applies to `opencode.ai` traffic in TUN mode, which previously changed the route without recording it.\n* **Honest IP rotation (new):**\n  * A hop only counts when the **public** IPv6 address changes. The WARP adapter keeps its old IPv6 when the tunnel stops carrying traffic, so the old check could report a successful rotation while requests were really leaving over IPv4. Users then saw \"rotated\" followed by the same free-limit error, which looks like the method was patched.\n  * `hop_once` checks that WARP is connected before rotating, and a hop that cannot be confirmed waits 10 minutes instead of reconnecting the tunnel every 75 seconds.\n  * If two confirmed new IPv6 addresses still hit the free wall, rotation pauses until the allowance resets at 00:00 UTC and the dashboard explains why. Press **Try now** to force one more address.\n* **WARP Keeper Stability:**\n  * A connected tunnel is left alone unless the selected WARP scope changed; the keeper repairs disconnected or error states.\n  * Routine repairs renew the WireGuard session keys instead of deleting the device registration.\n  * In-flight `Connecting` \u002F `Reconnecting` states get a longer grace period before a repair starts.\n  * Non-destructive key rotation (`tunnel rotate-keys`) is used for quota rotation.\n* **Linux Lane Fixed:**\n  * Linux now runs the same hardened Python HTTP CONNECT proxy as Windows, on an ephemeral loopback port. Bun\u002FOpenCode ignores `socks5:\u002F\u002F` proxy variables, so pointing `HTTPS_PROXY` at WARP's SOCKS listener was never enough.\n  * The installer deploys `ouc_common.py`, `zen_proxy.py`, `proxy_chain.py`, and `tor_manager.py` to `$DEST\u002Fpython`, and `zen-lane.sh` wires the launched OpenCode process to that proxy. There is no dead `41987` fallback on Linux.\n  * Isolated proxy mode remains the installer default. `OUC_WARP_MODE=warp` is the explicit opt-in for full TUN.\n  * Rotation pauses the keeper with a pause file plus a service stop\u002Fstart, so a keeper tick cannot reconnect WARP underneath a rotation.\n  * `opencode-unlimited-doctor` now checks the Python proxy modules, WARP port `40000`, resolved iptables paths, both services, the shim, and stale pause files.\n* **Install\u002FRepair on non-English Windows:**\n  * The `.cmd` shims are written as UTF-8 with `chcp 65001` when the Windows profile path contains non-ASCII characters. Previously the app stopped with `UnicodeEncodeError: 'ascii' codec can't encode characters ...` on those systems.\n  * ASCII-only paths keep the previous plain shims and do not touch the console code page.\n* **Existing Chat Auto-Unlock & History Preservation:**\n  * Removes client-side rate limit lockouts (`free-limit`, `go-upsell`) from `%APPDATA%\\ai.opencode.desktop\\drafts.sqlite` after a successful rotation.\n  * Leaves the chat history and session tables untouched.\n  * Reloads the Desktop window and sends `continue` when the window can be focused safely; otherwise it falls back to a CLI resume.\n* **Detached Desktop Launching:**\n  * OpenCode Desktop now launches as an independent detached process (`os.startfile`), so it stays open even if the launcher or terminal is closed.\n\n---\n\n## Prerequisites & Downloads (What You Need)\n\nInstall these components before setup:\n\n| Component | Purpose | Requirement | Official Link |\n| :--- | :--- | :---: | :--- |\n| **OpenCode (Desktop or CLI)** | The AI coding assistant | **Required** | [Download OpenCode](https:\u002F\u002Fopencode.ai\u002F) or [GitHub Releases](https:\u002F\u002Fgithub.com\u002Fopencode-ai\u002Fopencode) |\n| **Cloudflare WARP** | Egress IPv6 `\u002F64` provider | **Required** (for WARP modes) | [Download Cloudflare WARP (1.1.1.1)](https:\u002F\u002Fone.one.one.one\u002F) |\n| **Microsoft WebView2 Runtime** | Powers the modern dashboard UI | **Pre-installed** on Win 10\u002F11 | [WebView2 Evergreen Bootstrapper](https:\u002F\u002Fdeveloper.microsoft.com\u002Fen-us\u002Fmicrosoft-edge\u002Fwebview2\u002F) |\n| **Python 3.10+** | Only needed if running from source | Optional (binary is standalone) | [Download Python](https:\u002F\u002Fwww.python.org\u002Fdownloads\u002F) |\n| **Tor Expert Bundle** | Decentralized IP circuit rotation | Optional (for Tor mode) | [Tor Project Downloads](https:\u002F\u002Fwww.torproject.org\u002Fdownload\u002Ftor\u002F) *(or use in-app 1-click download)* |\n| **xdotool** | Linux window focus & reload | Optional (Linux GUI users) | `sudo apt install xdotool` \u002F `sudo dnf install xdotool` |\n\n---\n\n## Quick Start (Windows)\n\n> You do **not** need Python installed. Everything is bundled into a single standalone program.\n\n1. **Download & Run:**\n   * Download **`OpencodeUnlimited-Multi.exe`** from the repository root, or clone the source and build it.\n   * Double-click to launch the dashboard.\n2. **Verify Protection Controls (Left Panel):**\n   * Ensure these switches are **ON** (they are on by default):\n     * **WARP Keeper:** ON\n     * **Zen Guard:** ON\n     * **Desktop App Proxy:** ON\n     * **Auto-Resume on Bypass:** ON (continues the session after a rotation)\n3. **Use OpenCode Normally:**\n   * Open OpenCode Desktop or run `opencode` in your command prompt\u002Fterminal.\n   * Work normally. When you hit a free-tier rate limit, the app rotates the egress address and tries to resume the session, which avoids waiting for the quota timer.\n\n---\n\n## Recommended Settings for Every Method\n\nSelect the method that best matches your network environment:\n\n### Method 1: Cloudflare WARP (Default)\n* **Best for:** General use with IPv6 `\u002F64` rotation.\n* **Recommended Settings:**\n  * **Scope (Windows):** `Full System TUN` (keeps the WARP adapter active; recommended if App-Only mode shows no adapter).\n  * **Scope (Linux \u002F VPS):** `App Only (Isolated)` on port `40000` (leaves the system's normal routing and SSH access in place).\n  * **Protocol:** `WireGuard` (MASQUE uses UDP 443, which some ISPs throttle or block).\n  * **Switches:** Turn ON **WARP Keeper**, **Zen Guard**, **Auto-Resume**, and **Auto-Repair**.\n  * **Strict mode:** Leave it OFF for normal use. It is only for users who prefer a failed request over a direct fallback.\n\n### Method 2: Clean WireGuard Endpoints (Best for ISP Throttling \u002F Restricted Countries)\n* **Best for:** Users in Russia, Iran, China, or university\u002Fcorporate networks where Cloudflare's default Anycast IPs are throttled or blocked (`CF_HAPPY_EYEBALLS_MITM_FAILURE`).\n* **Recommended Settings:**\n  1. Open the dashboard and click the **Clean Endpoint** tab.\n  2. Click **Ping Test** (benchmarks the built-in Anycast endpoint list).\n  3. Select the node with the lowest ping (e.g. `162.159.192.1:2408` or port `500` \u002F `4500`).\n  4. Click **Apply Endpoint**. WireGuard connects to the selected endpoint.\n\n### Method 3: Tor Network (Best for Strict Censorship & Maximum Privacy)\n* **Best for:** Users whose networks completely block UDP \u002F WireGuard traffic, or who require decentralized exit nodes.\n* **Recommended Settings:**\n  1. Click the **Tor Network** tab on the dashboard.\n  2. Click **Start Tor Daemon** (launches an isolated portable Tor daemon on `127.0.0.1:9050` with control port `9051`).\n  3. If you already run **Tor Browser**, the app automatically hooks into port `9150`.\n  4. On rate limits, a `SIGNAL NEWNYM` command requests a new circuit and waits for a different IPv4 exit address.\n\n### Method 4: Custom Proxy Pool (Clash \u002F V2Ray \u002F Xray \u002F sing-box \u002F Residential)\n* **Best for:** Users with established proxy subscriptions or local proxy clients.\n* **Recommended Settings:**\n  1. Click the **Custom Proxy** tab.\n  2. Paste your local proxy address (e.g. `127.0.0.1:7890` or `127.0.0.1:10808`).\n  3. Format supported: Single address or multi-line pool (separated by newlines, commas, or semicolons).\n  4. Choose protocol: **SOCKS5** or **HTTP**.\n  5. On a rate limit, the guard switches to the next pool node and verifies its exit IP before reporting success.\n\n---\n\n## How Limit Reset Works on Existing Chats\n\nA common concern is whether rotating limits requires starting a brand-new chat. It does not. The reset clears the lockout and continues the existing chat.\n\n```\n[ User Active Chat \u002F Session ]\n           |\n           v\n+------------------------------------+\n| Layer 1: Client SQLite Lock        |  -> %APPDATA%\\ai.opencode.desktop\\drafts.sqlite\n|        ('free-limit' key)          |     disables the input bar and shows the upsell banner\n+------------------+-----------------+\n                   | purged by Zen Guard \u002F Deep Reset\n                   v\n+------------------------------------+\n| Layer 2: Upstream Cloudflare       |  -> evaluated per egress IP (CF-Connecting-IP)\n|        Server Rate Limit           |     applies to the egress IP, not the conversation ID\n+------------------------------------+\n```\n\n1. **Server-Side Quota (IP-Based):** OpenCode's backend applies free-tier limits to the incoming public IP address, and the allowance is shared across the free models. Rotating the IPv6 `\u002F64` presents a different address, which is the behavior the rotator relies on. The check now uses the address seen from outside, not the local WARP adapter. If WARP cannot carry IPv6, requests leave over IPv4 or a direct route and no amount of `\u002F64` rotation changes the server-side bucket. The dashboard reports that case instead of claiming success.\n2. **Client-Side Lockout Removal:** When OpenCode Desktop hits a rate limit, the local Electron app writes a lockout timestamp into `%APPDATA%\\ai.opencode.desktop\\drafts.sqlite` (`state` table). Zen Guard deletes this key (`DELETE FROM state WHERE key IN ('free-limit', 'go-upsell')`).\n3. **History Preservation:** The reset only touches those lockout keys. Chat history, system prompts, code blocks, and context in the `document` and `session_v2` tables are left unchanged.\n4. **Window Reload & Resume:** The app reloads OpenCode Desktop, which refreshes the view and clears the banner, then sends `continue{ENTER}`. If the window cannot be focused safely, it falls back to a CLI resume.\n\n---\n\n## Troubleshooting Playbook (\"What to do when something happens\")\n\n### 1. What to do when you hit a rate limit wall\n* **Automatic Behavior:** With Zen Guard and Auto-Resume on, the guard rotates the egress address, clears the client lockout, and attempts to resume the session. A rotation usually completes within a minute.\n* **If the limit comes back on a confirmed new address:** the free allowance is not following your IP. After two confirmed new IPv6 addresses, rotation pauses until 00:00 UTC so it stops reconnecting WARP and cutting live streams. Use another provider (`\u002Fconnect`), subscribe to OpenCode Go, or press **Try now** to force another address.\n* **Manual Override:** To rotate now, click the hop button on the dashboard. Its label follows the active mode: **Rotate \u002F64 Now (Hop)** for WARP, **Rotate Circuit (Hop)** for Tor, and **Rotate Proxy (Hop)** for a custom pool.\n\n### 2. What to do if OpenCode shows \"You've reached your free usage limit\" banner in an existing chat\n* **Cause:** The client-side Electron app is still holding the lockout timestamp in `drafts.sqlite`.\n* **Fix:** Click **Deep Reset** on the dashboard, or press `Ctrl+R` in OpenCode Desktop. This usually clears the banner and unlocks the input bar.\n\n### 3. What to do if you get `Connection lost while reading the response: ECONNRESET`\n* **What it means:** OpenCode had already received part of a response when the TCP stream ended abruptly. Common causes are a Cloudflare edge recycling a long-lived connection, an ISP or WARP path reset, or the provider closing an idle stream. It is not automatically a quota error, and it does not prove that WARP is down.\n* **What v3.0 changed:**\n  1. The proxy no longer buffers bytes past the `CONNECT` header. That bug could leave the TLS tunnel half-open until the client timed out or reset.\n  2. Both sockets use TCP keepalive and `TCP_NODELAY`, and the proxy drains the client briefly when the upstream sends FIN. This makes Windows close with FIN instead of RST.\n  3. A reset after response bytes started, while the client was still waiting for data, is logged as `stream_reset` (not `reset`) and counted in `stream_resets_5m`. A completed response that ends with a server RST after the client closed is not counted.\n  4. If the same pinned edge cuts two live streams within five minutes, new connections move to another edge. The current stream is not force-killed.\n  5. Tunnel repair waits while another proxy tunnel is active, so a repair cannot tear down a response that is still generating.\n* **If it keeps happening:**\n  1. Open the **Proxy** tab. `stream_reset` lines on different edges point at the provider or the local network; repeated lines on one edge are what the reroll handles.\n  2. Press **Rotate route** (or **Re-roll**) to move to a fresh exit. In Tor mode, restart the circuit instead.\n  3. Keep **Auto-Repair** on. It retires a repeatedly failing edge without changing your selected mode.\n  4. Do not delete the WARP registration for this error. If WARP itself is disconnected, use **Fix WARP (Reset Keys)**.\n  5. If you use Full TUN, make sure no third-party VPN is bound to the same Wintun adapter. If you use App-Only mode, confirm `127.0.0.1:40000` is listening.\n* **Honest limit:** a single reset can still come from the provider side. v3.0 makes it visible and recovers the route; it cannot make a remote server keep a stream open indefinitely.\n\n### 3.1 What to do if OpenCode returns `503 Service Unavailable`\n* **Cause:** The selected Cloudflare edge or WARP tunnel stopped answering. A stale edge, ISP UDP drop, or a proxy that is not running can all produce a 503.\n* **Fix:**\n  1. Open the **Proxy** log tab and check the last event.\n  2. Press **Fix WARP (Reset Keys)** if the tunnel is down, or **Re-roll** if only the edge is failing.\n  3. Leave **Auto-Repair** on. It retries safe fixes with cooldowns instead of looping.\n  4. If the health panel says **Using a direct connection**, the app kept OpenCode online through a fallback; press **Repair route** to put it back on your selected egress.\n\n### 4. What to do if WARP keeps reconnecting or looping (`Connecting...`)\n* **Cause:** ISP UDP packet drops or corrupt local WireGuard keys.\n* **Fix:**\n  1. Click **Fix WARP (Reset Keys)** on the dashboard. This rotates cryptographic keys without deleting your device identity.\n  2. Switch to the **Clean Endpoint** tab, run a **Ping Test**, and click **Apply Endpoint** to bind to a reliable IP\u002Fport (e.g. port `2408` or `500`).\n\n### 5. What to do if WARP shows \"Network: unstable\"\n* **Notice:** Cloudflare WARP can report `Network: unstable` when latency is high or during initial packet bursts. It does not necessarily mean your internet is down.\n* In v3.0, the app treats \"unstable\" as healthy traffic. Do not disconnect or delete your registration.\n\n### 6. What to do if you get `CF_HAPPY_EYEBALLS_MITM_FAILURE`\n* **Cause:** MASQUE protocol (UDP 443) blocked by ISP or stale Anycast routing.\n* **Fix:** Click **Fix WARP (Reset Keys)** on the dashboard. The app automatically locks the tunnel into WireGuard mode, which bypasses MASQUE MITM checks.\n\n### 7. What to do if port 42914 or 41987 is already in use\n* **Cause:** OpenCode's managed service (42914) or this proxy (41987) did not release its socket, usually after a forced shutdown.\n* **Fix:** Click **Fix Port Conflict** on the dashboard. The app stops and restarts the OpenCode service through its own CLI, then re-wires and verifies the local proxy.\n\n### 8. Windows SmartScreen or antivirus warning\n* **Cause:** PyInstaller one-file executables are occasionally flagged by heuristics or reputation checks. This is more common for unsigned binaries.\n* **What the build does:** The build uses `--noupx` and embeds a version resource to reduce avoidable heuristic triggers.\n* **Options:** Build from source, verify the downloaded file's SHA-256 hash, or sign the executable with your own code-signing certificate (`OUC_SIGN_PFX` + `OUC_SIGN_PASSWORD`, or `OUC_SIGN_THUMBPRINT`). A trusted signature is the reliable way to clear SmartScreen reputation warnings.\n\n---\n\n## Routing Architecture\n\n```\n[ OpenCode Desktop \u002F CLI ]\n            |\n            v  HTTP \u002F HTTPS via service.json\n[ 127.0.0.1:41987  Zen Proxy (TCP keepalive, edge failover) ]\n            |\n   +--------+------------------------------------------------------+\n   | Active egress mode                                            |\n   +--------+------------------------------------------------------+\n            |\n            +-- [1] WARP Full TUN      -> Wintun adapter -> system-wide Cloudflare VPN\n            +-- [2] WARP Isolated      -> 127.0.0.1:40000 SOCKS5 -> Cloudflare edge \u002F fresh \u002F64\n            +-- [3] Clean Endpoint     -> clean WireGuard IP:2408 -> selected Anycast edge\n            +-- [4] Tor Network        -> 127.0.0.1:9050 \u002F 9150 -> 3-hop circuit \u002F fresh IPv4\n            +-- [5] Custom Proxy Pool  -> node #1 -> node #2 -> ... -> verified upstream\n```\n\nOn Linux the lane starts this same proxy on an ephemeral loopback port and exports it only to the launched OpenCode process. Port `41987` is the Windows service proxy.\n\n---\n\n## Linux Setup (Headless & VPS)\n\nRun the automated one-shot installer:\n```bash\nbash install.sh\n```\n\n* **Compatibility:** Debian, Ubuntu, Fedora, Arch Linux, NixOS, and openSUSE.\n* **Where things go:** state and workers live in `${XDG_DATA_HOME:-$HOME\u002F.local\u002Fshare}\u002Fopencode-unlimited`; the `opencode` shim goes to `${XDG_BIN_HOME:-$HOME\u002F.local\u002Fbin}`. The installer deploys the lane proxy modules to `$DEST\u002Fpython`.\n* **Lane proxy:** `zen-lane.sh` starts `zen_proxy.py` on an ephemeral loopback port and exports `HTTP_PROXY`, `HTTPS_PROXY`, and `ALL_PROXY` to it for the launched OpenCode process. This is required because Bun\u002FOpenCode ignores `socks5:\u002F\u002F` proxy variables. The lane fails closed if the proxy cannot start; it does not fall back to a dead `41987`.\n* **WARP mode:** the installer pins both units to `OUC_WARP_MODE=proxy`, WARP's isolated SOCKS listener on `127.0.0.1:40000`. This keeps SSH and normal host routing intact. Full TUN is an explicit opt-in: set `OUC_WARP_MODE=warp` in the keeper and guard units, then restart them.\n* **Systemd Daemons:** Installs `opencode-unlimited-keeper.service` (root) and `opencode-unlimited-guard.service` (user). The installer enables lingering where possible so the user guard survives logout on a headless VPS.\n* **Cloud VPS Safe:** Adds firewall rules that allow SSH (port 22 and custom ports) and keeps WARP in isolated proxy mode so the system's normal routing stays in place.\n* **Sudoers:** only the exact commands used by the workers are passwordless: `warp-cli`, `systemctl stop\u002Fstart opencode-unlimited-keeper`, and the resolved `iptables` \u002F `ip6tables` list checks. The guard never falls back to interactive `sudo`, which would hang without a TTY.\n* **Rotation:** the guard writes `$DEST\u002Fkeeper.pause`, stops the keeper, rotates, then removes the pause file and starts the keeper. A keeper tick cannot reconnect WARP in the middle of a rotation.\n* **Existing Chat Unlock:** Clears the lockout keys from `~\u002F.config\u002Fai.opencode.desktop\u002Fdrafts.sqlite` and runs `nohup opencode run --continue \"continue\" &` after a successful rotation.\n\n### If something fails on Linux\n* Run `opencode-unlimited-doctor`. It checks the lane proxy import from `$DEST\u002Fpython`, WARP port `40000`, the kill-switch (TUN only), both services, the shim, and stale pause files.\n* `WARP proxy port 40000 is not listening` → restart the keeper: `sudo systemctl restart opencode-unlimited-keeper`.\n* `Linux lane proxy missing` → rerun `bash install.sh`; the Python modules were not deployed.\n* A stuck `$DEST\u002Fkeeper.pause` after a killed rotation → remove it, then restart the keeper. The doctor warns about this file.\n* Do not point OpenCode directly at `socks5:\u002F\u002F127.0.0.1:40000`. Use the `opencode` shim; it starts the HTTP CONNECT proxy that Bun actually honors.\n\n---\n\n## Building from Source\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FShadowySphinX\u002FOpencode-Unlimited-Limit-Bypass-.git\ncd Opencode-Unlimited-Limit-Bypass-\npip install -r requirements.txt\n```\n\nTo compile the standalone Windows executable:\n```powershell\npowershell -ExecutionPolicy Bypass -File .\\build_multi_exe.ps1\n```\n\nThe build disables UPX, embeds file version metadata, and publishes the result with a retrying file swap so an open executable produces a clear error instead of a Windows `WinError 5`. To sign the result, set `OUC_SIGN_PFX` and `OUC_SIGN_PASSWORD` (or `OUC_SIGN_THUMBPRINT`) before building; `signtool.exe` must be on `PATH`.\n\n---\n\n## Author & Credits\n\n- Built & Maintained by **[Avatar (ShadowySphinX)](https:\u002F\u002Fgithub.com\u002FShadowySphinX)**.\n- Official Project Repository: [ShadowySphinX\u002FOpencode-Unlimited-Limit-Bypass-](https:\u002F\u002Fgithub.com\u002FShadowySphinX\u002FOpencode-Unlimited-Limit-Bypass-)\n\n---\n\n## License\n\nMIT License. Copyright (c) 2026 Avatar (ShadowySphinX).\n","这是一个用于绕过 OpenCode 桌面端与 CLI 工具免费版使用限制的自动化工具。它通过动态轮换出口 IP（支持 IPv6 \u002F64 前缀、Tor 电路及代理节点）、监控日志中的配额错误（如 503、ECONNRESET）、自动恢复会话并解锁客户端锁止状态，实现对 OpenCode 服务端基于源 IP 的限流机制的规避。项目采用 Python 实现，具备多出口路由、连接保活、断点续传式会话恢复等能力，适用于需长期高频调用 OpenCode 免费 API 的开发测试、本地 IDE 插件集成或轻量级自动化编程场景。",2,"2026-11-24 04:49:14","CREATED_QUERY"]