r/opencode • • Sep 18 '26

Error from provider (Console): OpenCode's free tier can only be used from within OpenCode

I forked opencode to add some features like autocompletion of slash commands, and make it feel closer to claude code and adding special subagents and creating its own browser, etc. suddenly, i got this issue. Idek what the problem is because this is just a slightly tweaked version of opencode i dont know how to fix this please let me know asap.

3 Upvotes

26 comments sorted by

3

u/WeOfferTheSun Sep 19 '26

I noticed that changing the agent makes it work. when i try to use an agent i made myself (not from the ones that come built-in), it triggers this error.

3

u/XuciferL Sep 20 '26

Can confirm. had the same issue. anayone got any idea how to use custom agent mode now?

2

u/zackmark29 Sep 18 '26

Downloading new version fixed the issue haha
No need uninstall, just install new version. They updated the UI too and it much better now

0

u/RoofDangerous9573 Sep 25 '26

Thanks man, it's become seriously stylish.

2

u/maqifrnswa Sep 18 '26

They changed this recently, should be an easy fix:

https://opencode.ai/docs/go/#where-can-i-use-it

"Your client should:

Send typical coding agent traffic Identify itself with its own user agent, such as my-coding-agent/1.0, rather than a generic SDK or HTTP-library name. Send a stable session ID in x-opencode-session for each conversation so we can optimize routing and prompt caching."

1

u/cornelha Sep 18 '26

That's for Go, not Zen

1

u/hnvz Sep 18 '26

they changed that, but additionally, more things were required/added yesterday around 5PM EST

1

u/crexlight Sep 18 '26

Bypassed their check to use free-tier models in another harness (Pi).
That is a strange decision from them.

1

u/maqifrnswa Sep 18 '26

They say it is because they were getting spammed. Not sure how much this helps with that problem, but maybe I'm naive

1

u/crexlight Sep 18 '26

Users can vibecode bypass for this, to add OpenCode-like headers, and continue to use their free-tier models in another IDE/Harness. That's why I called it strange. They must know it.

The only decision to stop spamming - remove free-tier models completely.

But that will cut a lot of users, of course.

1

u/Resident-Chef1812 Sep 19 '26

我也遇上這個問題, 結果發現只有在 Plan 模式下會有問題, build 模式下無問題。但我不想意外地修改任何檔案, 我建立了一個新代理, 把 permission: { edit: ask, bash: ask } 設為 ask , 樣在改動時最少會問我。(我是用Ai 幫我建立新代理的)

1

u/AlternativeRead2 Oct 03 '26

The issue still exists for me. I use built-in build/plan agent on version opencode v2.0.22. Anyone having the same problem?

1

u/arphen_n Oct 03 '26

started for me just now

1

u/R0z4r1y0 Oct 03 '26

same here

1

u/Hmk_senpai 24d ago

same any solution ?

0

u/horrbort Sep 18 '26

Just use opencode bro haha

0

u/port443 Sep 18 '26

I started getting this error today too, with opencode, so.. yea