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 }}
Repository navigation
Error from provider (Console): OpenCode's free tier can only be used from within OpenCode #50366
Environment
opencode version: 1.18.31
app: Desktop (x-opencode-client: desktop)
user-agent: opencode/1.18.31 ai-sdk/provider-utils/4.0.23 runtime/node.js/24
OS: Windows
requestedModel: big-pickle (provider opencode)
stream: true, path /inference/openai/v1/chat/completions
country: BR
Details
The request is sent from the official Desktop app and still gets rejected with HTTP 403:
Generation.FreeTierError: OpenCode's free tier can only be used from within OpenCode
The x-opencode-client: desktop, x-opencode-session and x-opencode-request-id headers are present, so the client is clearly identifiable as official OpenCode. It behaves exactly like an external/curl request with a wrong User-Agent.
Reproduction: authenticate in Desktop 1.18.31, pick big-pickle, send any message.
I'm experiencing the same issue on Windows with OpenCode Desktop 2.0.29.
I was using the free-tier Muse Spark model when the error appeared in the middle of an existing conversation:
OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building.
I updated OpenCode Desktop from v1.19 to v2.0.29, but the error persists. The original conversation is still visible, and my project files are intact. I also made a backup of the project before troubleshooting.
The issue seems to affect the free-tier model even when using the official OpenCode Desktop application. Could this be related to authentication, provider configuration, or a regression in the free-tier access check?
Please let me know what diagnostic information would help identify the root cause. I would prefer not to lose the existing conversation or reset my configuration while troubleshooting.
same problem in opencode v2 get error :
OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building.
Thanks for the report. We're tracking this same free-tier rejection inside OpenCode in #49678, so I'm closing this as a duplicate. Please follow that issue for updates.
Activity
userhubgitia commentedon Sep 21, 2026
Same issue here.
Environment
opencode version: 1.18.31
app: Desktop (x-opencode-client: desktop)
user-agent: opencode/1.18.31 ai-sdk/provider-utils/4.0.23 runtime/node.js/24
OS: Windows
requestedModel: big-pickle (provider opencode)
stream: true, path /inference/openai/v1/chat/completions
country: BR
Details
The request is sent from the official Desktop app and still gets rejected with HTTP 403:
Generation.FreeTierError: OpenCode's free tier can only be used from within OpenCode
The x-opencode-client: desktop, x-opencode-session and x-opencode-request-id headers are present, so the client is clearly identifiable as official OpenCode. It behaves exactly like an external/curl request with a wrong User-Agent.
Reproduction: authenticate in Desktop 1.18.31, pick big-pickle, send any message.
Event metadata
{
"event": {
"id": "3b7a01ac-f0a8-47a5-bc5e-86ede6f03bdd",
"requestID": "msg_0c3e7a17b001jq7ajm0mTzPl20",
"workspaceID": "wrk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"startedAt": 1789993129648,
"finishedAt": 1789993129679,
"durationMs": 31,
"outcome": "rejected",
"category": "inference",
"protocol": "openai-chat",
"product": "standard",
"path": "/inference/openai/v1/chat/completions",
"method": "POST",
"stream": true,
"app": "desktop",
"sessionID": "ses_f3c185e88ffeAvrYnUKKarZS3k",
"userAgent": "opencode/1.18.31 ai-sdk/provider-utils/4.0.23 runtime/node.js/24",
"serviceAccountID": "svcacct_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"serviceAPIKeyID": "key_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"requestedModel": "big-pickle",
"provider": "opencode",
"statusCode": 403,
"errorCode": "Generation.FreeTierError",
"errorMessage": "OpenCode's free tier can only be used from within OpenCode",
"country": "BR",
"region": "São Paulo",
"city": "São Paulo",
"requestHeaders": {
"accept": "/",
"content-length": "35137",
"content-type": "application/json",
"user-agent": "opencode/1.18.31 ai-sdk/provider-utils/4.0.23 runtime/node.js/24",
"x-opencode-client": "desktop",
"x-opencode-request-id": "msg_0c3e7a17b001jq7ajm0mTzPl20",
"x-opencode-session": "ses_f3c185e88ffeAvrYnUKKarZS3k"
},
"responseHeaders": {
"content-length": "120",
"content-type": "application/json"
},
"metadata": {},
"attemptCount": 0,
"attempts": []
}
}
Twilight0 commentedon Sep 21, 2026
Same issue, suddenly when started compacting chat I got the error and I had been working on that a project for a couple of hours.
michael-newsrx commentedon Sep 21, 2026
Unable to use the free tier in the OpenCode desktop app.
sudo snap install opencode+desktopsekedus commentedon Sep 22, 2026
duplicate of #49433
marcosoluzionidigitali-sys commentedon Oct 14, 2026
I'm experiencing the same issue on Windows with OpenCode Desktop 2.0.29.
I was using the free-tier Muse Spark model when the error appeared in the middle of an existing conversation:
OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building.I updated OpenCode Desktop from v1.19 to v2.0.29, but the error persists. The original conversation is still visible, and my project files are intact. I also made a backup of the project before troubleshooting.
The issue seems to affect the free-tier model even when using the official OpenCode Desktop application. Could this be related to authentication, provider configuration, or a regression in the free-tier access check?
Please let me know what diagnostic information would help identify the root cause. I would prefer not to lose the existing conversation or reset my configuration while troubleshooting.
Thanks for looking into this.
s4lish commentedon Oct 18, 2026
same problem in opencode v2 get error :
OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building.
neriousy commentedon Oct 20, 2026
Thanks for the report. We're tracking this same free-tier rejection inside OpenCode in #49678, so I'm closing this as a duplicate. Please follow that issue for updates.