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
OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building. #55737
OpenCode Desktop 1.19.0 is OpenCode v1. Development now happens on OpenCode v2 (2.x), and v1 only gets fixes for critical bugs, so this is unlikely to be fixed in v1. We'd encourage upgrading to v2.
Other users who hit this error got free models working again in one of two ways:
If you think this is critical, or it still happens on v2 after trying the steps above, please reply here with your v2 version, OS and the free model you selected.
Closing this as not planned. It was reported on OpenCode Desktop 1.19.0 (v1), which only gets critical fixes, and we haven't heard back about it being critical or happening on v2.
If you still see the free-tier error, other users fixed it by connecting the OpenCode Zen provider with an API key (/connect or opencode auth login), or by removing a leftover https://opencode.ai/zen/v1 provider from your opencode.json. You can find more details in #55443 and #55435.
If it still happens on OpenCode v2, please open a new issue with your version, OS and the free model you used. Thanks, @hdmanmoscow!
Additional reproduction on Ubuntu/WSL — OpenCode v1.18.35
I can independently reproduce the same free-tier error on an Ubuntu/WSL environment using OpenCode v1.18.35. The failure occurs in both the interactive TUI and the CLI.
Environment
OpenCode version:1.18.35
Platform: Ubuntu on WSL, Linux x64
Provider:opencode
Configured API endpoint:https://opencode.ai/inference/openai/v1
Tested model:opencode/space-bunny-free
Reproduction
1. Interactive TUI
Starting a session and sending a prompt to a free model produces the reported error:
OpenCode's free tier can only be used from within OpenCode.
Download it at https://opencode.ai and keep building.
2. CLI
Command:
opencode run -m opencode/space-bunny-free "Say hello in one word"
Output:
> build · space-bunny-free
Error: OpenCode's free tier can only be used from within OpenCode.
Download it at https://opencode.ai and keep building.
The same error in both entry points suggests that the problem is not limited to the interactive TUI.
Additional observations
opencode models opencode lists multiple free-tier models, including deepseek-v4.1-flash-free, glm-5.3-flash-free, nemotron-3.5-lightning-free, and space-bunny-free.
opencode auth list reports 0 credentials in ~/.local/share/opencode/auth.json.
The resolved configuration shows masked provider credential and organization fields. I have not established whether these values are related to the failure.
A process check did not find a persistent OpenCode process at the time of testing.
Relation to other reports
This reproduction is consistent with the reports in this issue describing the same error on Linux and Windows, including reports that the failure persists across multiple free models and after authentication or client updates.
Those reports make a provider-side authorization or request-validation problem plausible, but I cannot independently verify the gateway-side observations.
Questions for the maintainers
Is OpenCode v1.18.35 still expected to access these free models, or is this version affected by a known compatibility issue?
Is there a known Zen gateway incident or change in free-tier request validation that could explain the same error across different operating systems and client versions?
What specific diagnostic output would help distinguish a client/configuration issue from a gateway-side rejection?
I have not modified the provider configuration, installed a User-Agent override plugin, or attempted to bypass the gateway restrictions. I can provide a redacted log excerpt if needed.
Activity
opencode-agent commentedon Oct 15, 2026
Thanks for the report, @hdmanmoscow!
OpenCode Desktop 1.19.0 is OpenCode v1. Development now happens on OpenCode v2 (2.x), and v1 only gets fixes for critical bugs, so this is unlikely to be fixed in v1. We'd encourage upgrading to v2.
Other users who hit this error got free models working again in one of two ways:
/connectin the app oropencode auth loginin a terminal (see the comments on OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building. #55443 and OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building. #55616).https://opencode.ai/zen/v1from~/.config/opencode/opencode.json(or.jsonc), if you have one.Related reports, ordered by likelihood of being the same problem:
If you think this is critical, or it still happens on v2 after trying the steps above, please reply here with your v2 version, OS and the free model you selected.
opencode-agent commentedon Oct 16, 2026
Closing this as not planned. It was reported on OpenCode Desktop 1.19.0 (v1), which only gets critical fixes, and we haven't heard back about it being critical or happening on v2.
If you still see the free-tier error, other users fixed it by connecting the OpenCode Zen provider with an API key (
/connectoropencode auth login), or by removing a leftoverhttps://opencode.ai/zen/v1provider from youropencode.json. You can find more details in #55443 and #55435.If it still happens on OpenCode v2, please open a new issue with your version, OS and the free model you used. Thanks, @hdmanmoscow!
Charles-X-Core commentedon Oct 17, 2026
Additional reproduction on Ubuntu/WSL — OpenCode v1.18.35
I can independently reproduce the same free-tier error on an Ubuntu/WSL environment using OpenCode v1.18.35. The failure occurs in both the interactive TUI and the CLI.
Environment
1.18.35opencodehttps://opencode.ai/inference/openai/v1opencode/space-bunny-freeReproduction
1. Interactive TUI
Starting a session and sending a prompt to a free model produces the reported error:
2. CLI
Command:
opencode run -m opencode/space-bunny-free "Say hello in one word"Output:
The same error in both entry points suggests that the problem is not limited to the interactive TUI.
Additional observations
opencode models opencodelists multiple free-tier models, includingdeepseek-v4.1-flash-free,glm-5.3-flash-free,nemotron-3.5-lightning-free, andspace-bunny-free.opencode auth listreports0 credentialsin~/.local/share/opencode/auth.json.Relation to other reports
This reproduction is consistent with the reports in this issue describing the same error on Linux and Windows, including reports that the failure persists across multiple free models and after authentication or client updates.
Those reports make a provider-side authorization or request-validation problem plausible, but I cannot independently verify the gateway-side observations.
Questions for the maintainers
I have not modified the provider configuration, installed a User-Agent override plugin, or attempted to bypass the gateway restrictions. I can provide a redacted log excerpt if needed.
Thank you for investigating this.