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
4
2
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
4
Sep 25 '26
[removed] — view removed comment
0
u/SolidAlternative1646 Sep 25 '26
Yes, the 429 is not solved by this patch it doesn't bypass rate limits
18
u/someoneyouknow23 Sep 25 '26
yay, youre making it worse for everyone else.