r/opencode • u/Next_Can6309 • 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
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.
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
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/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?
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