Repository navigation
Description
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-256colorfor embedded CLI - Shell: C:\WINDOWS\system32\cmd.exe (background service launched by Desktop)
- Install/channel: Release,
latestchannel. 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
- 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 istype: oauthwith a futureexpirestimestamp. - Start a new session and select any free-tier model, e.g.
opencode/space-bunny-freeoropencode/glm-5.3-flash-free. - Send any message.
- 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, serverhttps://opencode.ai/console,orgName: Personal, created 2026-10-17 06:55 UTC,expires2026-11-16 (30 days out, not expired). Re-authenticating (fresh device-code sign-in) did not resolve it. - Network:
https://opencode.aiandhttps://opencode.ai/consoleboth 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
opencode-agent commentedon Oct 17, 2026
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--standaloneall fail the same way, and it started around the same time.Possible duplicates and closely related issues, ordered by likelihood:
https://opencode.ai/zen/v1.AI.Error.Authenticationeven though your Console session is valid.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.
gramnaters commentedon Oct 17, 2026
Need it to be fixed soon, I rely on the free models only on daily basis
slep0y commentedon Oct 17, 2026
Не работает новая версия v2
Когда решите проблему?
opencode-agent commentedon Oct 18, 2026
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!