Skip to content

Error from provider (Console): OpenCode's free tier can only be used from within OpenCode #50366

Closed as duplicate

Description

@scaner511
No description provided.

Activity

  1. userhubgitia commented on Sep 21, 2026

    @userhubgitia

    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": []
    }
    }

  2. Twilight0 commented on Sep 21, 2026

    @Twilight0

    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.

  3. michael-newsrx commented on Sep 21, 2026

    @michael-newsrx

    Unable to use the free tier in the OpenCode desktop app. sudo snap install opencode+desktop

  4. sekedus commented on Sep 22, 2026

    @sekedus

    duplicate of #49433

  5. marcosoluzionidigitali-sys commented on Oct 14, 2026

    @marcosoluzionidigitali-sys
    Image

    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.

  6. s4lish commented on Oct 18, 2026

    @s4lish

    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.

  7. neriousy commented on Oct 20, 2026

    @neriousy
    Member

    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.

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