r/opencode • u/Dry_Scientist_5984 • Sep 28 '26
"OpenCode's free tier can only be used from within OpenCode" i am in opencode
what the heck do i do?
7
u/RiceEvening4211 Sep 28 '26
That's exactly what OpenCode-Wrap fixes. It exposes OpenCode's free models through an OpenAI-compatible endpoint so you can use them from any client. https://github.com/Fast-Editor/OpenCode-Wrap
1
u/Dry_Scientist_5984 Sep 29 '26
hey man, this really helps even after i solved the problem, thanks for sharing!
1
u/Juvetube72 Sep 28 '26
I wonder if you could help me: I have an opencode go subscription but I'm unable to generate the API key like before to use it in my laptop. I've emailed support (from the payment receipt) but I've had no answer. Because of this I paid for another subscription in openrouter but I find it a lot more expensive. Does anyone know how to find out which is the API key? Thanks.
2
u/Dry_Scientist_5984 Sep 29 '26
Hey, i think you need to create a post for this, im really not an expert here.
1
u/npc7068 Sep 29 '26
I cleared cache, deleted all related files and reinstalled opencode, yet i am still facing this issue. Any suggestions 😢
1
u/Dry_Scientist_5984 Sep 29 '26
Hey dude, you might wanna check the comments, they have pretty good solutions, i even typed my solution too.
1
3
u/Beksito Sep 28 '26
For me it was solved using:
rm -rf ~/.cache/opencode # Delete the cache
opencode auth logout # Just disconnect from Opencode Zen
opencode auth login # Connect again to Opencode Zen through the same or new api key2
u/Otagamo Sep 28 '26
There's a known bug, if you deny read or shell permissions this error shows up.
1
1
u/Comfortable_Dig_2224 Oct 01 '26
eso me pasaba en sesiones muy grandes, pero se resolvÃa con /compact y reiniciando
-1
5
u/Dry_Scientist_5984 Sep 28 '26
Yeah what a simple fix, fixed it by deleting the OpenCode config folders, deleting the old
auth.json, and then runningopencode auth loginto authenticate again. Basically, I cleared all the old/invalid credentials and logged in again.