[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114052":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":29,"discoverSource":30},114052,"OpenCode-Unlimited","Tazmyan\u002FOpenCode-Unlimited","Tazmyan","Bypasses OpenCode's daily free message limit.",null,"JavaScript",136,37,2,10,0,3,31,48,16,68.04,false,"main",true,[],"2026-11-17 18:59:05","2026-11-23 19:37:13","# OpenCode-Unlimited\n\nFixes OpenCode's daily free-message limit from the command line: shows the real meter, watches the log for the exact moment a limit lands, clears the stale limit banner, rotates a local device id, and moves you onto a fresh network exit when you ask it to. Works natively on macOS, Linux, and Windows 10\u002F11.\n\nNothing here writes to your registry, deletes a chat, or loses a message.\n\n```bash\nopencode-unlimited on        # one command, then forget about it\n```\n\nOr drive it by hand:\n\n```bash\nopencode-unlimited usage\nopencode-unlimited reset \"\u002Fpath\u002Fto\u002Fproject\"\n```\n\n---\n\n## Install\n\n### macOS \u002F Linux\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FTazmyan\u002FOpenCode-Unlimited.git\ncd OpenCode-Unlimited\nchmod +x install.sh\n.\u002Finstall.sh\n```\n\n### Windows\n\n```powershell\ngit clone https:\u002F\u002Fgithub.com\u002FTazmyan\u002FOpenCode-Unlimited.git\ncd OpenCode-Unlimited\npowershell -ExecutionPolicy Bypass -File .\\install.ps1\n```\n\nOpen a new terminal afterwards so `opencode-unlimited` is on PATH.\n\n- No admin rights.\n- No registry writes.\n- No proxy set behind your back.\n- The plugin is only installed by `opencode-unlimited on`, and `off` takes it back out.\n\nNeeds Node.js 22.5 or newer, only because the session tools use Node's built-in SQLite reader.\n\n---\n\n## One command: `on`\n\n```powershell\nopencode-unlimited on\n```\n\nIt runs one pass and leaves the machine in a working state:\n\n1. Checks Node and finds your OpenCode install and database.\n2. Mints a fresh virtual device id, in a local file only.\n3. Picks a free model so you are not paying for the retry.\n4. Loads a proxy list if the pool is empty.\n5. Hunts for an exit whose address block is not spent, screening every candidate before it touches OpenCode.\n6. Clears the stored \"free limit\" rows in **every** session, not just the current folder, then re-ids the sessions in this folder without touching messages.\n7. Installs the shield plugin, starts the background watcher, and registers it to start at logon.\n\nThen it prints the address you are leaving from and stops. From that point the watcher reads the log and rotates on its own when a limit line lands.\n\n```powershell\nopencode-unlimited on -KeepId      # keep the current device id\nopencode-unlimited on -NoProbe     # do not spend a probe message on the route\nopencode-unlimited on -NoStart     # set everything up, do not start the watcher\nopencode-unlimited on -KeepRoute   # leave the network path alone\nopencode-unlimited off             # stop watcher, remove autostart, direct egress\n```\n\n`off` stops the watcher, removes the logon task, unlists the plugin and puts the service back on a direct connection. It does not touch sessions, messages, or the identity file.\n\n---\n\n## Auto mode, honestly\n\nWhat runs by itself:\n\n- The watcher tails `opencode.log` and only reacts to a real `level=ERROR` limit line, so it spends zero messages while idle.\n- On a hit it walks the pool, screens each candidate, and restarts the service once at the end.\n- Each proxy keeps a health record: failures, last latency, and a quarantine. Two failures in a row park a proxy for 5 minutes, doubling up to 6 hours.\n- A route slower than 3500 ms is treated as bad even when it answers.\n- Ranking is fast-healthy first, then untested, then slow, then parked.\n\nWhat it will not do: invent an exit address. Public proxy lists are mostly dead, so a hunt can walk a dozen entries and come up empty. When that happens it says so and leaves you on the direct connection instead of silently half-applying a dead proxy.\n\n---\n\n## Hit the message limit? Do this\n\nYou get this in the chat:\n\n```\nYou've used today's free messages. They reset at 2:00 AM - 10\u002F27\u002F2026\n```\n\nStep by step:\n\n1. **Close OpenCode.** The desktop app, the TUI, and `opencode serve` if it is running. Anything still open keeps the old connection warm.\n2. **Change your IP.** Pick one:\n   - Disconnect and reconnect your VPN, and pick a different server.\n   - Turn your phone hotspot on and connect to it.\n   - Power-cycle your router until the ISP hands you a new address.\n\n   Check that it actually changed with `opencode-unlimited block` — it prints the address you are leaving from right now.\n3. **Run the reset.**\n\n   ```powershell\n   opencode-unlimited reset \"C:\\my\\project\"\n   ```\n\n   That rotates the local device id, removes the stored limit errors, re-ids the sessions in that folder without touching their messages, and switches to the next proxy in your pool if you added one. It also prints the egress address before and after, so you can see whether the IP really moved.\n4. **Open OpenCode again.** The banner is gone and you are on the new block.\n\nIf step 3 says `same egress block`, step 2 did not work. Same block means same bucket, and that bucket stays spent until 00:00 UTC. Change the connection again, then re-run `reset`.\n\nDo not use a 121 MB chat for the first test message after a reset. A long session replays its whole history, which costs a lot more than a fresh one.\n\n### Or let it watch for you\n\nYou do not have to notice the limit yourself:\n\n```powershell\nopencode-unlimited watch            # read the log once, spend nothing\nopencode-unlimited watch -follow    # keep tailing it\nopencode-unlimited watch -follow -auto   # tail, and rotate the moment it lands\n```\n\n`watch` reads OpenCode's own log, so it costs zero messages. It only treats a line as a real limit when the line starts with `level=ERROR` — the log also records command text, and a naive text match would fire on any command that mentions the phrase. `-auto` verifies the new route with one probe message, deletes the probe session afterwards, and stops once the route is open. Rotation is capped at five moves per thirty minutes.\n\nRunning `opencode-unlimited on` starts exactly this watcher in the background and adds the logon task, so you do not have to keep a terminal open.\n\n### The shield plugin\n\n`on` installs one small plugin and lists it in `~\u002F.config\u002Fopencode\u002Fopencode.jsonc`. It hooks the two places OpenCode builds an outgoing request and stamps the virtual project id and a stable session affinity on it.\n\nIt is not a quota lever — the limit is per address block, as the section below explains. What it does is keep the request identity consistent with the identity file the CLI rotates, so a freshly minted device id is actually the one on the wire.\n\nCheck it directly instead of trusting a file on disk:\n\n```powershell\nopencode-unlimited plugin          # state, path, config entry, live hook list\nopencode-unlimited plugin install  # install and list it again\nopencode-unlimited plugin off      # unlist it and park the file\n```\n\nOpenCode reloads its config on save, so the plugin appears without a restart. `plugin status` asks the running server, and the answer includes the hook names it registered.\n\n---\n\n## Commands\n\n| Command | What it does |\n|---|---|\n| `opencode-unlimited on` | Full auto: identity, model, pool, verified route, sessions, plugin, watcher, autostart |\n| `opencode-unlimited on -KeepId -NoProbe` | Same, but keep the identity and skip the probe message |\n| `opencode-unlimited off` | Stop watcher, remove autostart, unlist plugin, direct egress |\n| `opencode-unlimited usage` | Meter state for today and the reset clock |\n| `opencode-unlimited usage -check` | Same, plus one real message through the app |\n| `opencode-unlimited watch` | Read the log for a limit line, no message spent |\n| `opencode-unlimited watch -follow` | Keep tailing the log |\n| `opencode-unlimited watch -follow -auto` | Tail, then rotate when a limit lands |\n| `opencode-unlimited hunt` | Rotate until the probe says the route is open |\n| `opencode-unlimited hunt -Country DE -Prefix 2a00:` | Steer the search |\n| `opencode-unlimited token` | Show the local `auth.json` snapshot state |\n| `opencode-unlimited token save` | Keep a local copy of `auth.json` |\n| `opencode-unlimited token restore` | Put it back after the app drops it |\n| `opencode-unlimited block` | Egress addresses seen today and which are spent |\n| `opencode-unlimited block check` | Is the address you are on now still usable |\n| `opencode-unlimited reset` | New device id, clear stored errors, verify |\n| `opencode-unlimited reset \"C:\\path\"` | Same, plus re-id every session in that folder |\n| `opencode-unlimited reset \"C:\\path\" -Dry` | Preview everything, write nothing |\n| `opencode-unlimited reset \"C:\\path\" -KeepIds` | Rotate the device id only |\n| `opencode-unlimited identity` | Show the virtual device id and its generation |\n| `opencode-unlimited identity rotate` | Mint a new virtual device id |\n| `opencode-unlimited identity restore` | Remove the shim file, registry untouched |\n| `opencode-unlimited sessions` | List sessions with ids, folders and sizes |\n| `opencode-unlimited sessions \"C:\\path\"` | Only that folder |\n| `opencode-unlimited reid ses_abc...` | New session id, every message kept |\n| `opencode-unlimited reid \"C:\\path\"` | Re-id every session in that folder |\n| `opencode-unlimited reid \"C:\\path\" -Dry` | Show old ids, sizes and row counts |\n| `opencode-unlimited model` | Providers with credentials and their free models |\n| `opencode-unlimited model provider\u002Fmodel` | Switch this folder |\n| `opencode-unlimited model ses_abc... provider\u002Fmodel` | Switch one session |\n| `opencode-unlimited clear` | Strip stored \"free limit\" errors everywhere |\n| `opencode-unlimited clear \"C:\\path\"` | Same, scoped to a folder |\n| `opencode-unlimited verify` | Check for orphaned rows and invalid state |\n| `opencode-unlimited verify -fix` | Repair what it found |\n| `opencode-unlimited status` | Runtime, identity, network, ledger |\n| `opencode-unlimited doctor` | Node, service, schema, plugin, egress |\n| `opencode-unlimited version` | Tool version plus detected OpenCode version |\n| `opencode-unlimited proxy set socks5:\u002F\u002Fhost:port` | Route OpenCode through a proxy |\n| `opencode-unlimited proxy off` | Back to a direct connection |\n| `opencode-unlimited proxy pool add socks5:\u002F\u002Fhost:port` | Queue a proxy for `reset` to cycle to |\n| `opencode-unlimited proxy pool fetch \u003Curl>` | Pull a free proxy list into the pool |\n| `opencode-unlimited proxy pool refresh` | Refetch the list now |\n| `opencode-unlimited proxy stats` | Per-proxy health, latency, failure count, quarantine |\n| `opencode-unlimited proxy test -Top 20` | Probe the pool and park the dead ones |\n| `opencode-unlimited proxy healthreset` | Forget every health record |\n| `opencode-unlimited plugin` | Is the shield loaded, and where it lives |\n| `opencode-unlimited plugin install\\|off` | List or unlist it in the OpenCode config |\n| `opencode-unlimited proxy next` | Jump to the next pooled proxy now |\n| `opencode-unlimited warp on\\|off\\|rotate` | Optional Cloudflare WARP path |\n| `opencode-unlimited run \u003Cargs...>` | Run OpenCode, record a free-limit hit |\n| `opencode-unlimited uninstall` | Remove slash commands, plugin and local state |\n\nInside the chat, the same actions as slash commands:\n\n```\nopencode-unlimited\nopencode-unlimited:reset C:\\Users\\you\\projects\\my-app\nopencode-unlimited:identity rotate\nopencode-unlimited:block\nopencode-unlimited:usage\nopencode-unlimited:watch -follow -auto\nopencode-unlimited:hunt -Country DE\nopencode-unlimited:token save\nopencode-unlimited:reid C:\\Users\\you\\projects\\my-app\nopencode-unlimited:model openrouter\u002Fdeepseek\u002Fdeepseek-v4.1-flash\nopencode-unlimited:clear C:\\Users\\you\\projects\\my-app\n```\n\nColon separator, so they sort together and do not collide with other plugins.\n\n---\n\n## The limit is per IP, not per account or device\n\nThe free budget is counted per egress block, per UTC day:\n\n- IPv4: one address, `\u002F32`\n- IPv6: one prefix, `\u002F64`\n- Resets at exactly **00:00 UTC** — 2:00 AM in central Europe, 1:00 AM in the UK, 7:00 PM the previous day on the US east coast.\n\nIt is not per project, not per session, not per model, not per device and not per machine id. Rotating `x-opencode-project` or the session id changes nothing. The refusal is about the address you leave from.\n\nSo the two honest levers are:\n\n1. Leave through a different address block — VPN, hotspot, router reconnect, or `proxy pool`.\n2. Switch the session to a provider that does not bill through this gateway: `opencode-unlimited model`.\n\nThe window is a wall clock, not a rolling one. `Retry-After` always lands on the next midnight UTC.\n\n---\n\n## Proxy pool\n\nManual IP changes work fine. If you have a few proxies and want `reset` to walk them for you:\n\n```powershell\nopencode-unlimited proxy pool add socks5:\u002F\u002F127.0.0.1:1080\nopencode-unlimited proxy pool add http:\u002F\u002Fuser:pass@10.0.0.1:3128\nopencode-unlimited proxy pool\n```\n\nFrom then on, `reset` and `hunt` walk it: each candidate is measured through the proxy *before* OpenCode is touched, so a dead entry costs about six seconds and no service restart. Only the working one is applied, and the service is restarted once at the end. If the new address lands in the same block as the old one it moves to the next proxy instead of pretending it worked.\n\nEvery proxy also carries a health record:\n\n```powershell\nopencode-unlimited proxy stats        # ranking, latency, failures, quarantine\nopencode-unlimited proxy test -Top 20 # probe now, park what is dead\nopencode-unlimited proxy healthreset  # clean slate\n```\n\nTwo failures in a row park a proxy for five minutes, and the wait doubles on every further failure up to six hours. Anything slower than 3500 ms counts as bad even when it answers. The order is: fast and healthy, then untested, then slow, then parked at the back.\n\nYou can also point it at a public list and let it shuffle:\n\n```powershell\nopencode-unlimited proxy pool fetch https:\u002F\u002Fexample.com\u002Fproxies.txt\nopencode-unlimited proxy pool refresh\n```\n\nThe list is parsed for every `ip:port` in it, capped at 200 candidates, cached for six hours, and health-tested one at a time as rotation walks it. An empty or truncated response is rejected instead of poisoning the pool.\n\n```powershell\nopencode-unlimited proxy next        # walk one step now\nopencode-unlimited proxy pool clear  # forget the pool and the cached list\n```\n\nSOCKS5 proxies go through a small local bridge, because the OpenCode service speaks HTTP proxies. HTTP proxies are used directly. Proxies are never set globally on the machine — only in the service environment.\n\n---\n\n## What `reset` rotates, and what it refuses to touch\n\n`reset` does six things:\n\n1. **Device id** — a virtual id stored in `~\u002F.config\u002Fopencode\u002Funlimited-identity.json` and `%LOCALAPPDATA%\\opencode-unlimited\\shim\\machine-guid.txt`. It **never** writes `HKLM\\SOFTWARE\\Microsoft\\Cryptography\\MachineGuid`. `identity restore` deletes the shim and your real machine guid is still exactly where it was.\n2. **Stored limit errors** — removes the `provider.free-limit` rows a failed prompt left in your history, and flips the session outcome back to succeeded. No rows deleted.\n3. **Session ids** — one transaction per session, every message and part row re-pointed, the event counter moved along with the id so the app keeps numbering above the messages it kept, row counts compared before and after, rollback on mismatch.\n4. **Egress route** — next proxy in the pool, if you have one. With `-Hunt`, it keeps rotating until a probe answers, instead of taking the next entry on trust.\n5. **Egress block** — measures the address you are leaving from, records it with its country in a local ledger, and compares the `\u002F32` or `\u002F64` block, not the literal string. Two addresses in one IPv6 `\u002F64` are the same bucket and are now reported as such.\n6. **Database** — `verify -fix`: invalid idle flags, duplicate project folders.\n\nRestarting the background service never touches sessions. `clear` never deletes a session or a message row. A re-id is not a refill; it gives the session a clean new identity and keeps its content.\n\n---\n\n## Troubleshooting\n\n**`usage` says the block is spent but prompts still work.**\nRemaining budget is not linear. A long session replays its whole history, so a heavy chat can burn dozens of calls for one visible turn while a fresh session still gets through.\n\n**The banner is still there after `clear`.**\nRestart the app so the session reloads from disk.\n\n**`reset` says `same egress block`.**\nYour VPN, hotspot, or router handed you an address inside the same block — for IPv6 that means the same `\u002F64`, which string comparison would have missed. Same block, same bucket. Change the connection and run it again, or wait for 00:00 UTC.\n\n**`watch` finds nothing.**\nIt starts at the end of the log on the first run, so it only sees what happens next. Pass `-all` to rescan the recent backlog, and make sure OpenCode has written a log at least once.\n\n**`watch -auto` rotated but the prompt still fails.**\nThe watcher moved the route and verified it with a probe. If the chat was open the whole time, it kept the old connection; send the prompt again or restart the app.\n\n**`sessions` prints nothing for a folder.**\nRun `opencode-unlimited doctor`. It prints the database path and the detected session table. Folder matching ignores case and slash direction.\n\n**A re-id felt slow on a big folder.**\nEach session is its own transaction and the history is rewritten in place. A 200 MB folder takes a few seconds. Use `-Dry` first.\n\n**An old session fails with a SQLite `insert into \"session_message\"` error after a re-id.**\nA re-id from an older build moved the session id but left its event counter behind, so the app restarted numbering at 1 and collided with a message it had already kept. Close OpenCode, run `opencode-unlimited verify -fix`, then reopen the chat. `verify` alone shows the drift without writing anything.\n\n**Everything looks fine but prompts fail.**\nCompare `opencode-unlimited usage` with the exit address your VPN reports. Leaking DNS or an IPv6 route can keep you on the old block.\n\n**I want my machine id back.**\nNothing was changed. `opencode-unlimited identity restore` deletes the shim and the state file.\n\n---\n\n## Issues and help\n\nOpen an issue with the command you ran and the output. That is enough to start. Small pull requests are welcome.\n\n> [!TIP]\n> Faster answers in the Discord: **https:\u002F\u002Fdiscord.gg\u002F8RfQBJh5JZ**\n\n---\n\n## Disclaimer\n\nEducational and research use only. Not affiliated with, endorsed by, or supported by OpenCode or any of their partners; all trademarks belong to their owners.\n\n- It unlocks no entitlement. The free limit is enforced by OpenCode's servers and stays in force.\n- It does not modify your machine id, your registry, or any system identifier. The identity it rotates is a local file the tool owns.\n- Using it may break a provider's terms of service. That is your responsibility, and so is any consequence, including account restrictions.\n- Provided \"as is\", with no warranty and no liability for damage, data loss or account action. Use at your own risk.\n- Rights holder and want it gone? Open an issue and it gets removed promptly, no argument.\n","OpenCode-Unlimited 是一个用于绕过 OpenCode 编程辅助工具每日免费消息限额的命令行工具。它通过监控 OpenCode 日志、动态轮换本地设备 ID、自动切换网络出口节点、清除会话中的限额标记等方式，实现限额重置与持续可用；所有操作均在本地完成，不修改注册表、不删除聊天记录、不劫持代理或覆盖用户数据。支持 macOS、Linux 和 Windows 10\u002F11，依赖 Node.js 22.5+，安装后仅需一条命令即可启用后台自动响应。适用于高频使用 OpenCode 免费版进行代码补全、调试辅助或批量开发任务的开发者场景。","2026-11-24 04:47:49","CREATED_QUERY"]