You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
OpenCode's free tier can only be used from within OpenCode while usign Opencode? #49610
As described on the tittle opencode bugs out in compaction automatically saying:
"Error from provider (Console): OpenCode's free tier can only be used from within OpenCode"
Plugins
None
OpenCode version
Latest
Steps to reproduce
Just use /compaction or wait for the model itself to run it
I noticed another pattern. Starting a new session sometimes works for a short while, but after some usage (often when compaction happens) the same error comes back.
This makes me wonder if some requests sent by OpenCode (especially compaction-related requests) are missing the expected validation headers or session information, causing the backend to treat them as if they weren't coming from the official OpenCode Desktop app.
I noticed another pattern. Starting a new session sometimes works for a short while, but after some usage (often when compaction happens) the same error comes back.
This makes me wonder if some requests sent by OpenCode (especially compaction-related requests) are missing the expected validation headers or session information, causing the backend to treat them as if they weren't coming from the official OpenCode Desktop app.
hmmm, might be that but still, people who had a task are now hard locked and cant do anything 🤷♂️
Sure, here are the steps I took:
Set Big Pickle.
Encountered the error upon reaching the "compact" stage.
Closed OpenCode Desktop.
Opened the command prompt and ran the command opencode auth login.
Selected the OpenCode Zen API.
Logged in at https://opencode.ai/auth
Retrieved my API key and pasted it in the command prompt.
Closed the prompt and opened the desktop client.
My agent is back to work.
Sure, here are the steps I took: Set Big Pickle. Encountered the error upon reaching the "compact" stage. Closed OpenCode Desktop. Opened the command prompt and ran the command opencode auth login. Selected the OpenCode Zen API. Logged in at https://opencode.ai/auth Retrieved my API key and pasted it in the command prompt. Closed the prompt and opened the desktop client. My agent is back to work.
We've been tightening our logic to fight abuse, we did temporarily have an issue where compaction was impacted and marked as not from OpenCode it has been resolved.
Guys, I found a solution that fixes the issue. I know it’s not the best solution, but it works correctly for me.
Just downgrade OpenCode to version 1.18.28:
npm uninstall -g opencode-ai
npm install -g opencode-ai@1.18.28
After that, restart OpenCode and the free tier should work again.
Hope this helps someone!)
well, i think they fixed it cause its now working again! thanks fo rall the recommendations
Activity
github-actions commentedon Sep 17, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is the same, please add a reaction or comment on one of the above rather than opening a new report.
onelpawarai-X commentedon Sep 17, 2026
I noticed another pattern. Starting a new session sometimes works for a short while, but after some usage (often when compaction happens) the same error comes back.
This makes me wonder if some requests sent by OpenCode (especially compaction-related requests) are missing the expected validation headers or session information, causing the backend to treat them as if they weren't coming from the official OpenCode Desktop app.
iy26adchak commentedon Sep 17, 2026
It's not getting fixed and every report gets flagged with need:compliance, so yes, ill open a new report for the people who can't :)
iy26adchak commentedon Sep 17, 2026
hmmm, might be that but still, people who had a task are now hard locked and cant do anything 🤷♂️
SakonLight90 commentedon Sep 17, 2026
I was able to get it to work just by using the cli command for auth.
opencode auth login
iy26adchak commentedon Sep 17, 2026
interesting... would you mind being more specific so i can try it too please
SakonLight90 commentedon Sep 17, 2026
Sure, here are the steps I took:
Set Big Pickle.
Encountered the error upon reaching the "compact" stage.
Closed OpenCode Desktop.
Opened the command prompt and ran the command
opencode auth login.Selected the OpenCode Zen API.
Logged in at https://opencode.ai/auth
Retrieved my API key and pasted it in the command prompt.
Closed the prompt and opened the desktop client.
My agent is back to work.
iy26adchak commentedon Sep 17, 2026
thank you very much, ill try it out
Haimanot25 commentedon Sep 17, 2026
Best workaround for you: disable automatic compaction
Your global config currently is:
{
"$schema": "https://opencode.ai/config.json"
}
change it to
{
"$schema": "https://opencode.ai/config.json",
"compaction": {
"auto": false
}
}
run :notepad "$env:USERPROFILE.config\opencode\opencode.jsonc"
zenviko commentedon Sep 17, 2026
Guys, I found a solution that fixes the issue. I know it’s not the best solution, but it works correctly for me.
Just downgrade OpenCode to version 1.18.28:
After that, restart OpenCode and the free tier should work again.
Hope this helps someone!)
iy26adchak commentedon Sep 17, 2026
well, i think they fixed it cause its now working again! thanks fo rall the recommendations
thedrachengaming-cmd commentedon Sep 17, 2026
if we implement compliance layers, there will never be any real issues!
rekram1-node commentedon Sep 18, 2026
We've been tightening our logic to fight abuse, we did temporarily have an issue where compaction was impacted and marked as not from OpenCode it has been resolved.
paulpas commentedon Sep 21, 2026
This did not fix my issue. It remains.