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
In the opencode CLI, the request free model also prompts 403 #56368
OpenCode's free models can return a 403 for several different reasons, and the error text tells them apart. To narrow it down, could you share:
The exact error message as text, copied from the CLI. For example, does it say OpenCode's free tier can only be used from within OpenCode, mention a region or country, or show Forbidden: {"model": ...}?
Which free model you selected, e.g. opencode/deepseek-v4.1-flash-free or big-pickle.
Whether it still happens after upgrading to the latest 2.0.x release. You are on 2.0.19.
Whether you are signed in to OpenCode Console (opencode auth list), and whether you are using a VPN or proxy. If you can, try again without it or on another network.
You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.
These existing issues may already cover your problem. They are ordered by likelihood, most likely first:
OpenCode's free models can return a 403 for several different reasons, and the error text tells them apart. To narrow it down, could you share:
The exact error message as text, copied from the CLI. For example, does it say OpenCode's free tier can only be used from within OpenCode, mention a region or country, or show Forbidden: {"model": ...}?
Which free model you selected, e.g. opencode/deepseek-v4.1-flash-free or big-pickle.
Whether it still happens after upgrading to the latest 2.0.x release. You are on 2.0.19.
Whether you are signed in to OpenCode Console (opencode auth list), and whether you are using a VPN or proxy. If you can, try again without it or on another network.
You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.
These existing issues may already cover your problem. They are ordered by likelihood, most likely first:
You're in mainland China and some models were already returning "Your region is not supported", so this may be a regional restriction rather than a bug in the CLI. Those restrictions come from the hosted OpenCode Zen gateway, not from the app. To check whether that's what changed today, I still need the exact error text. Unfortunately I can't read the screenshot.
Could you run this in a terminal and paste the output here as text?
opencode run --print-logs -m opencode/deepseek-v4.1-flash-free "hi"
If that's inconvenient, just type out the red error line from the screenshot word for word. In particular, tell us whether it says something about your region/country, or OpenCode's free tier can only be used from within OpenCode, or something else.
Two questions from before are also still open:
Does it still happen after upgrading to the latest 2.0.x release? You're on 2.0.19.
Are you signed in to OpenCode Console? opencode auth list shows this.
You're in mainland China and some models were already returning "Your region is not supported", so this may be a regional restriction rather than a bug in the CLI. Those restrictions come from the hosted OpenCode Zen gateway, not from the app. To check whether that's what changed today, I still need the exact error text. Unfortunately I can't read the screenshot.
Could you run this in a terminal and paste the output here as text?
opencode run --print-logs -m opencode/deepseek-v4.1-flash-free "hi"
If that's inconvenient, just type out the red error line from the screenshot word for word. In particular, tell us whether it says something about your region/country, or OpenCode's free tier can only be used from within OpenCode, or something else.
Two questions from before are also still open:
Does it still happen after upgrading to the latest 2.0.x release? You're on 2.0.19.
Are you signed in to OpenCode Console? opencode auth list shows this.
PS C:\Users\ypshidifu> opencode run --print-logs -m opencode/deepseek-v4.1-flash-free "hi"
Error: OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building.
Thanks for running that, @ypsdf1. That's the error text we needed.
OpenCode's free tier can only be used from within OpenCode is not a region error. It's a rejection from the hosted OpenCode Zen gateway, and several people started seeing it around the same time with the official clients. I think this is a duplicate of #56324, which has the same error from the official CLI on Windows. It affects every free model, including deepseek-v4.1-flash-free, in fresh sessions too.
Free-tier 403 is network-dependent in official 2.0.32 and 1.18.35 clients #56334: the same error, but it depends on the network; it fails on one network and works on another. That may matter for you, since you connect directly from mainland China. If you can, adding your network/region details there would help the team.
Closing this as a duplicate of #56324, since we haven't heard back. Your error was OpenCode's free tier can only be used from within OpenCode, from the official CLI on Windows with every free model. That's the problem reported in #56324. Please follow that issue (or add a 👍) for updates. #56334, where the error depends on the network, may also be relevant to you.
Thanks for running the commands and sharing the details, @ypsdf1. If your problem turns out to be different, reply here and we'll take another look.
Activity
opencode-agent commentedon Oct 17, 2026
Thanks for the report, @ypsdf1!
OpenCode's free models can return a 403 for several different reasons, and the error text tells them apart. To narrow it down, could you share:
OpenCode's free tier can only be used from within OpenCode, mention a region or country, or showForbidden: {"model": ...}?opencode/deepseek-v4.1-flash-freeorbig-pickle.opencode auth list), and whether you are using a VPN or proxy. If you can, try again without it or on another network.You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.
These existing issues may already cover your problem. They are ordered by likelihood, most likely first:
Forbidden: {"model": ...}while others workypsdf1 commentedon Oct 17, 2026
Hello, here are my responses to your questions:
opencode-agent commentedon Oct 17, 2026
Thanks for the details, @ypsdf1!
You're in mainland China and some models were already returning "Your region is not supported", so this may be a regional restriction rather than a bug in the CLI. Those restrictions come from the hosted OpenCode Zen gateway, not from the app. To check whether that's what changed today, I still need the exact error text. Unfortunately I can't read the screenshot.
Could you run this in a terminal and paste the output here as text?
If that's inconvenient, just type out the red error line from the screenshot word for word. In particular, tell us whether it says something about your region/country, or
OpenCode's free tier can only be used from within OpenCode, or something else.Two questions from before are also still open:
opencode auth listshows this.Related issues:
ypsdf1 commentedon Oct 17, 2026
PS C:\Users\ypshidifu> opencode run --print-logs -m opencode/deepseek-v4.1-flash-free "hi"
Error: OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building.
opencode-agent commentedon Oct 17, 2026
Thanks for running that, @ypsdf1. That's the error text we needed.
OpenCode's free tier can only be used from within OpenCodeis not a region error. It's a rejection from the hosted OpenCode Zen gateway, and several people started seeing it around the same time with the official clients. I think this is a duplicate of #56324, which has the same error from the official CLI on Windows. It affects every free model, includingdeepseek-v4.1-flash-free, in fresh sessions too.Possible duplicates, ordered by likelihood:
--standalonedon't help.You don't need to do anything more here. Please follow #56324 (or add a 👍 there) for updates.
The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.
opencode-agent commentedon Oct 18, 2026
Closing this as a duplicate of #56324, since we haven't heard back. Your error was
OpenCode's free tier can only be used from within OpenCode, from the official CLI on Windows with every free model. That's the problem reported in #56324. Please follow that issue (or add a 👍) for updates. #56334, where the error depends on the network, may also be relevant to you.Thanks for running the commands and sharing the details, @ypsdf1. If your problem turns out to be different, reply here and we'll take another look.