Skip to content

"Error from provider (Console): OpenCode's free tier can only be used from within OpenCode" in latest version of Open Code #49678

Closed as duplicate

Description

@alanbork

Description

been getting this since about 2pm PST. not sure what's going on. thought maybe it was related to running an old version so I I updated latest version and it persists. I'd share what version but you've not bothered to report that anywhere standard, like "help > about", etc.

Image

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. GOKUCODES-DEV commented on Sep 18, 2026

    @GOKUCODES-DEV

    same issue.

  2. prititaliya commented on Sep 18, 2026

    @prititaliya

    same issue when i use the custom agents.

  3. alanbork commented on Sep 18, 2026

    @alanbork
    Author

    no custom agents. only non-default setting I have is disabling cmd/powershell

  4. sekedus commented on Sep 18, 2026

    @sekedus

    see my comment here.

  5. alanbork commented on Sep 18, 2026

    @alanbork
    Author

    see my comment here.

    Interesting you're suggesting that it's now required to have the TUI installed in addition to the GUI? That's bonkers if true.

  6. ogerardin commented on Sep 23, 2026

    @ogerardin

    Same here, suddenly got this error in the TUI. Weirdly only in plan mode, build mode works normally.

    Definitive evidence this is a server-side misclassification, not a client/auth problem.

    Setup

    • OpenCode CLI v1.18.32, macOS 26
    • Paying account (Go subscription) + positive balance
    • Model: opencode/big-pickle

    Symptom

    • Build mode with opencode/big-pickle: works
    • Plan mode, same model, same client/session: every request rejected with
      Error from provider (Console): OpenCode's free tier can only be used from within OpenCode

    Server-side log of a rejected plan-mode request

    {
      "event": {
        "id": "4da00865-62b0-43d8-b7a2-a745761198b7",
        "requestID": "4da00865-62b0-43d8-b7a2-a745761198b7",
        "workspaceID": "wrk_01KJ1C8DEJBV25S2HS3F4CGMT1",
        "startedAt": 1790202247220,
        "finishedAt": 1790202247281,
        "durationMs": 61,
        "outcome": "rejected",
        "category": "inference",
        "protocol": "openai-chat",
        "product": "standard",
        "path": "/inference/openai/v1/chat/completions",
        "method": "POST",
        "stream": true,
        "app": "cli",
        "sessionID": "ses_f2fa18c58ffexKMjAQFym6hcI1",
        "userAgent": "opencode/1.18.32 ai-sdk/provider-utils/4.0.23 runtime/bun/1.3.14",
        "userID": "acc_01KJ1C8CR1GDYDE3P2E2VWSW6J",
        "requestedModel": "big-pickle",
        "provider": "opencode",
        "statusCode": 403,
        "errorCode": "Generation.FreeTierError",
        "errorMessage": "OpenCode's free tier can only be used from within OpenCode",
        "requestHeaders": {
          "accept": "*/*",
          "content-length": "383159",
          "content-type": "application/json",
          "user-agent": "opencode/1.18.32 ai-sdk/provider-utils/4.0.23 runtime/bun/1.3.14",
          "x-opencode-client": "cli",
          "x-opencode-session": "ses_f2fa18c58ffexKMjAQFym6hcI1"
        },
        "responseHeaders": {
          "content-length": "120",
          "content-type": "application/json"
        },
        "metadata": {},
        "attemptCount": 0,
        "attempts": []
      }
    }

    Why this proves server-side misclassification

    1. Genuine official client: userAgent: opencode/1.18.32 ..., x-opencode-client: cli, valid x-opencode-session
    2. Authenticated paying account — not anonymous
    3. Rejected pre-inference: 61 ms, attemptCount: 0, outcome: rejected — the free-tier gate blocked it before any model call

    Two details that may explain why only Plan mode fails

    Trace IDs

    • requestID: 4da00865-62b0-43d8-b7a2-a745761198b7
    • sessionID: ses_f2fa18c58ffexKMjAQFym6hcI1
    • workspaceID: wrk_01KJ1C8DEJBV25S2HS3F4CGMT1
    • timestamp: epoch ms 1790202247220 (2026-09-23T22:24:07Z)

    Related: #49588 #49590 #49610 #49621 #33318

  7. orangeguitar commented on Sep 23, 2026

    @orangeguitar

    Cross-linking a controlled repro that may explain non-third-party reports of this error:

    #49433 (comment)

    TL;DR: On 1.18.32, a custom agent with permission.bash: deny reliably fails Zen free models with "can only be used from within OpenCode"; the same agent with bash: ask succeeds (A/B/A/B). Built-in plan/build are fine. Not an external harness / missing-UA case. Workaround: use bash: ask (or omit bash) on agents that need free-tier models.

  8. ogerardin commented on Sep 23, 2026

    @ogerardin

    Cross-linking a controlled repro that may explain non-third-party reports of this error:

    Setting bash to "ask" in plan mode fixed it.
    Cheers!

  9. alanbork commented on Sep 23, 2026

    @alanbork
    Author

    Cross-linking a controlled repro that may explain non-third-party reports of this error:

    #49433 (comment)

    TL;DR: On 1.18.32, a custom agent with permission.bash: deny reliably fails Zen free models with "can only be used from within OpenCode"; the same agent with bash: ask succeeds (A/B/A/B). Built-in plan/build are fine. Not an external harness / missing-UA case. Workaround: use bash: ask (or omit bash) on agents that need free-tier models.

    wow, that's exactly my config. deny bash. Only change from vanilla. what a silly rule/mistake to hinge all of this on! Note: have not confirmed yet this fixes the problem on my computer.

  10. copi143 commented on Oct 18, 2026

    @copi143
    Image

    Same issue; using the official client, no plugins installed.

  11. vasilvestre commented on Oct 20, 2026

    @vasilvestre

    Happens to me in opencode v2, dual installed with opencode v1

  12. copi143 commented on Oct 21, 2026

    @copi143

    Some people say it depends on the version of OpenCode; others say it’s related to whether you’re using Plan or Build mode, or which tools are supported. But in my testing, none of those factors made a difference.

    I suspect it has something to do with the network environment. OpenCode works fine on my home network, but I run into this issue on some public Wi-Fi networks.

    Switching between v1 and v2, changing Plan or Build mode, using the original client, or installing plugins doesn’t seem to affect it. In my case, the issue appears to be network-related.

  13. alanbork commented on Oct 21, 2026

    @alanbork
    Author

    It's clearly some kind of decision model heuristic, no single factor but some weighted combo. But they've tuned to fire too easily! Uninstalling completely and reinstalling with the newest version did get it back to working for me. But now that Muse 1.3 is gone it's a lot less useful, anyway.

  14. vasilvestre commented on Oct 22, 2026

    @vasilvestre

    So.. headroom was the culprist. Worked with opencode1

  15. neriousy commented on Oct 27, 2026

    @neriousy
    Member

    Closing this as a duplicate of #59387, the main issue for free tier problems.

    Most of these reports come from OpenCode v1 (0.x / 1.x), which no longer supports free models. Updating to the latest v2 from https://opencode.ai/v2/docs fixes it for many people. The v1 Desktop updater keeps you on 1.x, so download v2 manually.

    If you still have the problem on the latest v2, please comment on #59387 with the details listed there. For account, billing or Go subscription problems, email help@anoma.ly.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions