Skip to content

free tier: valid Console session rejected as 'not within OpenCode' on official Desktop app #56341

Closed as duplicate

Description

@melodiw82

Summary

OpenCode's free-tier models (opencode/..., e.g. space-bunny-free, glm-5.3-flash-free, deepseek-v4.1-flash-free) are rejected with an AI.Error.Authentication reading "OpenCode's free tier can only be used from within OpenCode," even when running the official Desktop app with a valid, non-expired OpenCode Console session. The same free-tier models worked until ~Oct 10 and began failing ~Oct 17, with no client-side change.

Environment

  • opencode version: 2.0.32
  • OS: Windows_NT 10.0.26200 (win32 x64)
  • Terminal: Desktop app (OpenCode Desktop); TERM=xterm-256color for embedded CLI
  • Shell: C:\WINDOWS\system32\cmd.exe (background service launched by Desktop)
  • Install/channel: Release, latest channel. Installed via the official Desktop installer (opencode-desktop-win-x64.exe). Background service is the Desktop-bundled CLI (opencode-cli.exe).
  • Active plugins: None found in config

Reproduction

  1. Launch the official OpenCode Desktop app (v2.0.32) and sign in to an OpenCode Console Personal workspace (OAuth, methodID: device). Confirm the stored Console credential is type: oauth with a future expires timestamp.
  2. Start a new session and select any free-tier model, e.g. opencode/space-bunny-free or opencode/glm-5.3-flash-free.
  3. Send any message.
  4. Observe the request fail immediately with the error below.

Expected Behavior

Free-tier models should be usable from within the official OpenCode Desktop app when signed in with a valid Console session.

Actual Behavior

The request fails immediately with:

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

The error originates client-side as AI.Error.Authentication. Every recent session using an opencode/* free model fails with outcome: failed and 0 tokens.

Additional Context

Verified on the local machine (all checks pass, yet the free tier still rejects):

  • Genuinely "within OpenCode": the official Desktop app (OpenCode.exe) runs the shared background service (opencode-cli.exe, PID confirmed via /api/info). No third-party or npm client is involved.
  • Signed in: a valid Console OAuth credential is stored — type: oauth, server https://opencode.ai/console, orgName: Personal, created 2026-10-17 06:55 UTC, expires 2026-11-16 (30 days out, not expired). Re-authenticating (fresh device-code sign-in) did not resolve it.
  • Network: https://opencode.ai and https://opencode.ai/console both return HTTP 200.
  • Timeline: free-tier models worked through ~Oct 10 and began failing ~Oct 17. The user's own configured providers (custom API-key providers and local models) are unaffected and continue to work.

The "Download it at opencode.ai" message appears to be a generic eligibility error that is also returned when a genuinely-embedded, signed-in client is rejected server-side. Please investigate why a valid Console session from the official Desktop app is being refused for free-tier models — this may be an account- or server-side eligibility restriction. Happy to share account details privately if needed for debugging.

Activity

  1. opencode-agent commented on Oct 17, 2026

    @opencode-agent
    Contributor

    Thanks for the thorough report, @melodiw82! I think this is a duplicate of #56324. It's the same error with free opencode/* models in the official client on v2.0.32. There, signing in again, signing out, fresh sessions and --standalone all fail the same way, and it started around the same time.

    Possible duplicates and closely related issues, ordered by likelihood:

    If you want to follow progress or add details, #56324 is the best place. Please don't post account details publicly; if the team needs them, help@anoma.ly is the place for them.

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.

  2. gramnaters commented on Oct 17, 2026

    @gramnaters

    Need it to be fixed soon, I rely on the free models only on daily basis

  3. slep0y commented on Oct 17, 2026

    @slep0y
    Image Image

    Не работает новая версия v2

    Когда решите проблему?

  4. opencode-agent commented on Oct 18, 2026

    @opencode-agent
    Contributor

    Closing this as a duplicate of #56324. We didn't hear back about how this differs. It's the same "free tier can only be used from within OpenCode" error with free opencode/* models in the official v2.0.32 client, and in that issue it fails both signed in and signed out. Please follow #56324 for updates, and add anything new there, like timestamps or whether a different network helps (see #56334). Keep account details out of public issues and send them to help@anoma.ly if the team asks for them. Thanks, @melodiw82!

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