r/opencode • • Sep 28 '26

"OpenCode's free tier can only be used from within OpenCode" i am in opencode

Post image

what the heck do i do?

69 Upvotes

19 comments sorted by

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 running opencode auth login to authenticate again. Basically, I cleared all the old/invalid credentials and logged in again.

1

u/Strict-Growth3180 Sep 29 '26

In my case, i removed graphify. As simple as that.

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

u/npc7068 Sep 30 '26

Sure, I'll check then out. Thanks!

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 key

2

u/Otagamo Sep 28 '26

There's a known bug, if you deny read or shell permissions this error shows up.

1

u/Qwen3-8-27b Sep 28 '26

If ur using Linux Type sudo rm -a

1

u/Comfortable_Dig_2224 Oct 01 '26

eso me pasaba en sesiones muy grandes, pero se resolvía con /compact y reiniciando

-1

u/jelloeater85 Sep 28 '26

Use OmniRoute? Idk...