Skip to content

In the opencode CLI, the request free model also prompts 403 #56368

Closed as duplicate

Description

@ypsdf1

Description

Image

In the screenshot, it's the message I sent to the model in the opencode CLI, and I still got a 403 error.

Plugins

No plugins were used

OpenCode version

2.0.19

Steps to reproduce

In the opencode CLI, start a new session and then just send any message.

Screenshot and/or share link

No response

Operating System

windows 11

Terminal

windows terminal

Activity

  1. opencode-agent commented on Oct 17, 2026

    @opencode-agent
    Contributor

    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:

    1. 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": ...}?
    2. Which free model you selected, e.g. opencode/deepseek-v4.1-flash-free or big-pickle.
    3. Whether it still happens after upgrading to the latest 2.0.x release. You are on 2.0.19.
    4. 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:

  2. ypsdf1 commented on Oct 17, 2026

    @ypsdf1
    Author

    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:

    1. 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": ...}?
    2. Which free model you selected, e.g. opencode/deepseek-v4.1-flash-free or big-pickle.
    3. Whether it still happens after upgrading to the latest 2.0.x release. You are on 2.0.19.
    4. 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:

    Hello, here are my responses to your questions:

    1. I haven't used any proxy software or network. All requests are directly connected to OpenCode official.
    2. The model I used is mimo-2.6-flash-free, and I also tested other models, like deepseek-v4.1-flash-free.
    3. The only complete error is that one screenshot; there are no other errors.
    4. I'm in Hunan, China. Previously, only some models showed 'Your region is not supported,' but today I get 403 for all of them.
  3. opencode-agent commented on Oct 17, 2026

    @opencode-agent
    Contributor

    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?

    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.

    Related issues:

  4. ypsdf1 commented on Oct 17, 2026

    @ypsdf1
    Author

    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?

    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.

    Related issues:

    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.

  5. opencode-agent commented on Oct 17, 2026

    @opencode-agent
    Contributor

    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.

    Possible duplicates, ordered by likelihood:

    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.

  6. opencode-agent commented on Oct 18, 2026

    @opencode-agent
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions