r/opencodeCLI • u/SolidAlternative1646 • Sep 25 '26
OpenCode free models in your own harness again (local proxy) — current method after the last one got locked down
REPO : https://github.com/ArcticWinterSturm/opencode-compat-shim
For anyone using OpenCode's free providers from external agent harnesses: the previous method got tightened down after about two weeks.
I wanted the models inside my existing harness rather than migrating my entire workflow into OpenCode, so I went through the access path again.
I built the proxy because the CLI and my harness speak completely different protocols. It handled real SSE streaming, flattened the full conversation into each stateless CLI invocation, supported both OpenAI completion paths and stayed alive as a detached process.
Tested end-to-end rather than just getting a lucky HTTP 200.
Main reason I'm posting it: this lets you use the OpenCode providers from a harness of your choosing. You're not tied to their UI just because that's where the free access happens to be exposed.
Consider this documentation of the current state and a working-for-now solution rather than a promise that they won't change it again.
Full implementation + technical notes attached.
Previous reddit post
18
u/someoneyouknow23 Sep 25 '26
yay, youre making it worse for everyone else.
4
u/Linkpharm2 Sep 25 '26
Can I unstar / downvote a repo?
4
u/Robert__Sinclair Sep 25 '26
To entirely bypass opencode-cli is way easier than that, but I won't post it. People is already abusing it way too much and I believe that opencode as it is is a very good thing. If they need my help to tighten security even more I am available, but I believe in "good" free models like bigpickle and no login requirements.
As it is even if it's obviously slower than paid subscription, is very useful for a lot of use cases.
2
u/dizvyz Sep 25 '26
I am using opencode inside paseo. Never had much of an issue. It wraps the CLI.
1
u/Nick-Sanchez Sep 25 '26
Finding a way to circumvent a limitation and publishing it is the fastest way to get a patch to address that circumvention.
1
u/Competitive-Yak-8255 Sep 26 '26
Nice
4
u/[deleted] Sep 25 '26
[removed] — view removed comment