r/opencode • • 14d ago

I made a free and open-source tool to help the community with the new OpenCode CLI time limit

Hey guys, how are you? My name is Berg! šŸ‘‹
Those who here use OpenCode CLI on a daily basis probably felt the impact of the last update. They put that time limit that interrupts the code right when we are most productive, forcing us to wait hours or have to sign a paid plan just to be able to finish a job.
I went through this same headache and decided to create a solution: CodeOpenFreedom. I did this from developer to developer and I’m making it available 100% for free to add to our community! Very directly: it resets the OpenCode time limit. When the tool crashes due to request limit or time error, the script renews its route and you can continue programming normally, without having to wait for the blocking time to pass.

The code is all open on GitHub for those who want to use, study, suggest improvements or contribute to the project:

šŸ‘‰ https://github.com/Oficina-do-Berg/CodeOpenFreedom

I sincerely hope that this tool will help you maintain the pace of work and studies without interruptions. If you have any questions about the installation or want to give ideas, feel free to comment here and I will answer with the greatest pleasure!
A big hug and good codes to everyone!

0 Upvotes

10 comments sorted by

8

u/torrso 14d ago

This is a tool to circumvent free tier limits by changing IP.

I had a look at the repository, and this is ridiculous on several levels.

You're consuming a service someone else is paying to provide, then deliberately evading the restrictions they put on its free usage. I don't see how that's helping the community. Maybe the guild of thieves. Parasites unite.

The implementation is arguably even more ridiculous.

You've built an entire Python application with a TUI, a connection manager, a log monitor, an orchestrator, a rotation engine, and a bunch of other machinery around what essentially amounts to repeatedly reconnecting Cloudflare WARP and deleting local state.

  1. It's windows only with no good reason.
  2. IP rotation reports success even when the IP hasn't changed. rotate_warp_ip() explicitly considers a renewed WARP registration successful without actually obtaining a new IP address.
  3. Several subprocess calls aren't properly checked. warp_up() continues regardless of whether critical WARP commands succeed, while disconnect_warp() reports success without checking the command's exit status.
  4. The process management is questionable. You launch start opencode through a Windows shell and then track the resulting PID, which isn't necessarily the PID of the actual OpenCode process. Yet you rely on that PID for process management.
  5. The log monitor can stop permanently. _monitor_loop() returns after detecting a matching error, but doesn't reset the monitoring flag. A subsequent attempt to start monitoring can therefore refuse to do anything because it thinks the monitor is still running.
  6. The "deep reset" is potentially destructive. It moves OpenCode's SQLite database, WAL and SHM files individually, moves session storage, deletes authentication files and clears caches. There's no atomic operation or rollback if something fails halfway through. And clear_cache() simply ignores filesystem errors.
  7. There's apparently leftover infrastructure for Tor and public proxy lists.
  8. The installer upgrades the user's pip installation and installs dependencies directly into their Python environment, without a virtual environment.

And the README dresses all this up as a "Connectivity & Resilience Management Layer", with "Dynamic Connection Failover", "Automated Tunnel Orchestration" and "High-Performance TUI". It's an impressive amount of enterprise architecture vocabulary for a script that disconnects and reconnects a VPN.

You need to start paying to get better AI. Your slop is wack.

2

u/Worried_Matter4443 14d ago

ā˜ ļø

2

u/No_Advance3911 14d ago

OpenCode developers have definitely gone too far with the restrictions on their free models. But this policy is also a response to people abusing the free limits.

If someone can't afford to spend $10 a month, what are they even doing sitting at a computer using AI in the first place? What's the point? Wouldn't it be better to spend that time improving your life and finding a way to earn more than $10 a month?

1

u/TheWebalorian 14d ago

No time to earn, need to troll more!

1

u/deniedmessage 14d ago

Either my reading comprehension took a hit today or something is wrong with your writing. It takes me extra cognitive load to understand what is going on.

Quote from git:

Overview

CodeOpenFreedom is an automated resilience and connectivity management layer engineered for software developers utilizing the OpenCode CLI on Windows systems.
Operating transparently between the local console and external API endpoints, the application provisions a dedicated local proxy tunnel via Cloudflare WARP (local port 40000), monitors runtime telemetry streams in real time, and automatically mitigates disruptions caused by temporary request rate limits (HTTP 429), ensuring seamless continuity in engineering workflows.

1

u/Competitive-Ebb3899 14d ago

Either my reading comprehension took a hit today or something is wrong with your writing. It takes me extra cognitive load to understand what is going on.

AI slop.

It won't do miracles, but I took this skill turned it into a rule by rewriting a few things in it), and since then output is significantly more ground-to-earth and easier to consume: https://github.com/cursor/plugins/blob/main/pstack/skills/unslop/SKILL.md

Not an ad, I heard good about pstack skills, but probably any other similar unslop skill would be a good base for this.

0

u/Takeoded 14d ago

This targets Opencode free limits, right? or does it also target Opencode Go limits?

2

u/Ailton_berg 14d ago

Only for free

-2

u/LuLBaBa 14d ago

Hey man, check your repo. Crazy stuff but is there any way to use it on Mac? I just saw the installation for Windows

1

u/torrso 14d ago

This is like 20 lines of shell script if you want to make your own. The agent can do it in one prompt. And it will be better.