Error: OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building. · Issue #55432 · anomalyco/opencode · GitHub
Skip to content

Error: OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building. #55432

Closed as not planned

Description

@vspcoderz

Description

Image

Plugins

none

OpenCode version

2.0.27

Steps to reproduce

open opencode cli
select space bunny free model
send prompt
it throw a error

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. opencode-agent commented on Oct 14, 2026

    @opencode-agent
    Contributor

    Thanks for the report! This error has a few different known causes on v2, so we need a bit more detail to work out which one you're hitting:

    1. Your OS and how you installed OpenCode (npm @opencode/cli, install script, Homebrew, AUR, etc.). Please also paste the exact output of opencode --version.
    2. When it happens: on the very first message of a new session, or partway through a session (for example during compaction)?
    3. Which agent you're using: the built-in build/plan agent or a custom agent? Do you have any permission or tool settings in your config (global or project opencode.json, or .opencode/agents/*.md), especially rules that deny shell/bash, read or edit? If so, please paste them.
    4. Login state: does opencode auth list show an opencode credential? Does the error go away after running opencode auth login opencode (or /connect)?
    5. Other free models: do they fail the same way?

    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 when you're done.

    These existing issues may already cover your problem (ordered by likelihood):

  2. Introvert-Byte commented on Oct 14, 2026

    @Introvert-Byte

    "opencode auth login opencode"

    the command fix this for me , thanks

  3. rroblf01 commented on Oct 17, 2026

    @rroblf01

    the same thing happens to me
    Version: opencode v2.0.32
    OS: Arch Linux x86_64
    Kernel: Linux 6.18.57-1-lts
    Terminal: Kitty

  4. SamMasHack207 commented on Oct 17, 2026

    @SamMasHack207
    Image

    Same error here on v2.0.32 (and v2.0.22), Windows 11, installed via npm i -g @opencode/cli.

    • Logged in: opencode auth list -> OpenCode Console / Personal / stored
    • Same error with Big Pickle, Nemotron 3.5 Super VL Free and DeepSeek V4 Flash Free
    • Same error with opencode run --standalone, from an empty directory, and with my opencode.jsonc (plugins + MCP) removed
    • The Console inference log shows my requests tied to my account, rejected with 403 (inference_failed) in ~40-120 ms, no tokens. A paid model call made by the client at the same time (GPT-6 Luna) shows 402.
    • Log line: "Failed to drain Session ... AI.Error.Authentication: OpenCode's free tier can only be used from within OpenCode"

    Is there a server-side requirement for the free tier on accounts without billing/credits, or a known client regression in 2.0.x?

  5. opencode-agent commented on Oct 17, 2026

    @opencode-agent
    Contributor

    Closing this for now because we haven't heard back. This error has several different causes on v2, so we can't tell which one you're hitting without the details we asked for: your OS and install method, whether it happens on the first message, your agent and permission config, and your login state.

    In the meantime, these issues cover the most common causes and may help:

    If it still happens, reply here with those details and we'll reopen it. Thanks!

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions