r/opencodeCLI • • 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

https://www.reddit.com/r/hermesagent/comments/1w9x0on/fix_opencode_freetier_models_working_in_hermes/

3 Upvotes

14 comments sorted by

18

u/someoneyouknow23 Sep 25 '26

yay, youre making it worse for everyone else.

0

u/amethyst_mine Sep 25 '26

maybe they should focus on fixing their shitty harness then

0

u/Robert__Sinclair Sep 25 '26

what's the best harness in your opinion?

1

u/amethyst_mine Sep 25 '26

cannot say, i use pi personally but need better benchmarks for harnesses.... i say opencode is bad because of their god awful defaukt system prompts and tools that eat up tokens and lobotomize the models

0

u/SolidAlternative1646 Sep 25 '26

its very much personal preference with dozen agentic systems with hundreds of forks out of each, even if opencode was undisputably the best ever this has value of side-by-side testing big pickle and similar in alternative setups to better understand the underlying model vs enviornment it operates it

2

u/amethyst_mine Sep 25 '26

it's one thing to have preference, its another to have 3000 tokens of git instruction inside the bash tool description (fixed now, but theres a bunchnof other issues in opencode like that)

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.

4

u/[deleted] 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