# opencode-resilient-net 一个 opencode 网络重连小插件

Author: Tiger | URL: https://goagi.top/projects/opencode-resilient-net-opencode

## 结论与核心摘要（直接答案与证据）
开源地址： https://github.com/ThisIsTiger/opencode-resilient-net [https://github.com/ThisIsTiger/opencode-resilient-net]

Evidence from the source:
- 一个 opencode 上的小插件，丢给 AI 自己安装就好。
- 为什么做这个插件呢？

## 正文
开源地址： https://github.com/ThisIsTiger/opencode-resilient-net

一个 opencode 上的小插件，丢给 AI 自己安装就好。

为什么做这个插件呢？

opencode 中会经常会有一些免费的模型出来（一般来自于 openrouter ），但因为是免费，所以白嫖的特别多，导致网络经常不稳定。 特别是一段时间牛来、bunny 之类模型发布前，官方的客户端虽然有重试机制，但只是短时重试几次，如果还不行就直接中断停止。

所以，经常是你想白嫖模型，提交一个任务人出去带娃或者晚上睡下了，满心期待着回来后能跑完，结果发现是因为网络原因，刚开始了 3 分钟就停了。浪费了大量时间。

这个插件就是解决这个问题，通过多次重试，通过降幂的算法等（具体忘记了，过来两三个月了）会不断检查断点的模型是否恢复，恢复了就继续执行任务。实测下来，基本上完美的解决了模型因为网络、负载等断断续续，导致任务中断的情况。

now，你可以放开膀子免费白嫖，不要担心人不在场模型中断了。

Source evidence: [https://goagi.top/projects/opencode-resilient-net-opencode](https://goagi.top/projects/opencode-resilient-net-opencode)

## Related topic hubs
- https://goagi.top/geo-middleware/topics/agi-workflow.geo.md