Home / Blog / Pricing

Pricing

OpenCode "Free Tier Can Only Be Used From Within OpenCode": Fix

OpenCode says its free tier "can only be used from within OpenCode" even inside the official app? What triggers it in v2 and the fixes the issues point to.

8 min read

Error text, maintainer and triage replies checked Nov 10, 2026 in OpenCode’s official GitHub repo (#56324, #49433, #49580, pinned #59387) and on the releases page. Free-model list and Go prices checked Nov 10, 2026 in OpenCode’s Console models docs and Go docs. Every source is listed at the bottom. No affiliate links on this page (how we work).

Short answer: OpenCode’s free-model gateway decided your request didn’t come from the official OpenCode client. That’s by design if you’re using another app, a proxy or the API directly: OpenCode’s docs say “Free-tier chat models require OpenCode; use paid models or Go from other clients” (verified Nov 10, 2026). If you are in the official app, the usual culprits are a denied bash or read permission, an old provider override, a missing Console login, or an outdated build. And in October 2026 there was a wave of cases that OpenCode’s own triage bot traced to the gateway treating some networks differently.

We haven’t run into this error ourselves. Everything below is quoted from OpenCode’s docs and its official GitHub repo, with dates. User-reported workarounds are labeled as such.

The exact error: OpenCode's free tier can only be used from within OpenCode

Here it is from #56324 (OpenCode v2.0.32 on Windows, verified Nov 10, 2026):

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

On OpenCode v1 and in some logs it shows up shorter, as in #49433:

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

One report in #56324 shows it as HTTP 403 with Generation.FreeTierError; one user’s debug log shows AI.Error.Authentication. Either way, the refusal comes from OpenCode’s side (“This error comes from the Zen gateway”, per its triage bot), not from your network dropping.

The galling part is the advice. “Download it at https://opencode.ai” is fine for someone on a third-party app, and lousy for someone who downloaded it from opencode.ai an hour ago. The gateway is running a Blade Runner Voight-Kampff test on every request, and some real OpenCode installs keep failing it.

Who sees it

1. Other apps, proxies and direct API calls: by design

This is the intended case. The pinned free-tier thread, #59387, opened by an OpenCode maintainer on Oct 26, 2026, says: “Free models only work inside OpenCode. Other clients, proxies and direct API calls can’t use them. Use a paid model or Go there instead.”

An OpenCode contributor put it more bluntly in #49580 on Sep 18, 2026, replying to someone using a third-party desktop front end: “You cannot use the free tier in other harnesses (this is only a limitation for the free tier nothing else).” And: “Our free tier is only meant to be used in opencode.” The same reply says OpenCode had “been tightening our logic to fight abuse”, and that “The logic in place may not work properly if you have a very custom setup.”

If this is you, there’s no fix. Use a paid model, Go or your own API key in that app.

2. The official OpenCode app: usually config, sometimes the gateway

This is the confusing case. The #56324 reporter was on the official v2 TUI, re-authenticated, started fresh sessions, tried several free models, and still failed every request.

OpenCode’s triage bot (a repo contributor account) answered on Oct 17, 2026: “This error comes from the Zen gateway, and it has several known causes that have nothing to do with where you run OpenCode.” The causes it listed:

  • read or bash/shell denied anywhere, “in any form”: "deny", {"*": "deny"}, an agent-level permission, or an old-style "tools": { "bash": false }.
  • A provider entry pointing at https://opencode.ai/zen/v1 (a leftover override from older setups). “Each of these is known to cause exactly this error.”
  • Leftover plugins from tools you uninstalled.
  • No stored Console credential, which “opencode auth login opencode fixes” (citing #52917).
  • A free model switched off for your account in the Console (citing #56112). Only OpenCode’s team can check that, by email.

Then it got stranger. The bot couldn’t reproduce the failure on v2.0.32 at the same moments users were failing, and wrote: “It looks more like the gateway treats some networks, regions or times differently. That check runs on the gateway, not in the client code here.” The bot closed the issue on Oct 20, 2026 for missing logs. As of Nov 10, 2026, #56324 is open again.

Users in #56324 (user reports, Oct 17–18, 2026) said it cleared after switching networks or getting a new IP address and fully restarting OpenCode; two said it worked again on Oct 18 without changes. Some got a different message, which reads as the same gate made more explicit: “OpenCode’s free models aren’t available from your current network because we’ve detected abusive traffic from this IP address. This isn’t related to your account. If you’re on a VPN or proxy, turn it off and try again, or subscribe to OpenCode Go at https://opencode.ai/go to keep building.”

It’s Invasion of the Body Snatchers for software: your genuine copy of OpenCode, on your machine, being treated like a pod-person clone.

3. Older v1 patterns (for context)

In the v1-era thread #49433 (closed Oct 11, 2026 with other v1 issues), users reported that non-release builds (such as a -git package) were rejected while the official release worked. An OpenCode contributor confirmed one server-side bug from that period in #49580: “we did temporarily have an issue where compaction was impacted and marked as not from OpenCode it has been resolved.”

Fixes, in order

1. Update to the latest v2

The pinned thread says “Most free tier reports come from OpenCode v1” and that v1 “no longer supports free models”. Check with opencode --version (or Settings → About in Desktop). The latest release on GitHub is v2.2.6, published Nov 6, 2026 (UTC), as of Nov 10, 2026. The pinned thread’s text still says 2.2.1, so go by the releases page.

The v1 Desktop updater “keeps you on 1.x”, so download v2 manually from opencode.ai/v2/docs. On macOS and Linux the thread gives curl -fsSL https://opencode.ai/v2/install | bash, or npm install -g @opencode/cli. Chocolatey and Scoop don’t support v2. Use an official release build, not a git or dev build.

2. Check your permissions

Run opencode debug config and look for any deny on read, bash or shell, including "*": "deny" and agent-level rules. That’s the most specific known cause from OpenCode’s triage bot. User-reported workaround: "bash": "ask" worked where "deny" failed (#49433, Sep 23, 2026), and another user said removing "bash": "deny" fixed it (#49580, Sep 19, 2026). ask still prompts you before every command.

3. Remove old provider overrides and plugins

Delete any provider entry pointing at https://opencode.ai/zen/v1, and any leftover plugin entries or plugin files from tools you no longer use.

4. Re-authenticate

Run opencode auth login opencode. OpenCode’s bot says a missing Console credential causes exactly this error.

5. Run OpenCode’s own diagnostic

The bot’s suggested test in #56324: try once on a different network, “for example a phone hotspot, with any VPN or proxy turned off”, and run:

opencode run -m opencode/deepseek-v4.1-flash-free "Say hello in one word" --print-logs --log-level debug

Note the UTC time and the lines around the error. It’s a diagnostic, not a workaround. If it works on one network and not the other, the problem is on the gateway side, and OpenCode needs your timestamps.

6. Report it in the pinned thread

Don’t open a new issue; OpenCode closes duplicates and points them at #59387. Post your version, OS, Desktop/TUI/CLI, the free model, the exact error and the time. For anything about your account or billing, the thread says to email [email protected].

7. Switch to a paid route if you need to keep working

  • OpenCode Go: $10/month, Go Plus $40/month, Go Teams $20 per member/month (Go docs, verified Nov 10, 2026). Run /connect, choose OpenCode Go, paste your key, and pick an opencode-go/... model, not an opencode/...-free one. Limits are per model and dollar-based; see OpenCode Go limits.
  • Your own key: /connect any provider you already pay for. See Is OpenCode free? for what the app does without the free tier.

What not to do: route free models through a proxy, relay or VPN to get past the gate. OpenCode’s pinned thread says proxies can’t use free models.

How it differs from the other free-tier errors

ErrorMeansFix
free tier can only be used from within OpenCodeGateway didn’t accept the request as official OpenCodeUpdate, check permissions, re-auth, report
Free usage exceededFree-model usage cap hitWait for reset, Go or a key (OpenCode free usage exceeded)
OpenCode 1.18.0 or newer is required to use the free tierClient version too oldUpdate (1.18.0 or newer is required)

For reference, the Console models doc lists 14 free models as of Nov 10, 2026, including Big Pickle, DeepSeek V4.1 Flash Free, GLM-5.3-Flash Free and Nemotron 3.5 Lightning Free. Each is free “for a limited time”.

Here’s what I’d do

Start with opencode --version. If it starts with 0 or 1, stop and install v2; that’s the fix for most people.

On v2 and still blocked, I’d open opencode debug config next and hunt for a deny on bash or read. A cautious permission setup is good practice, and it’s frustrating that it can lock you out of the free tier with an error that blames your client. Then re-auth and try once more.

If it still fails, run the hotspot test, post the result with UTC times in #59387, and move on with Go or your own key for the day. The free tier is a gift with a bouncer, and you can’t argue with the bouncer from GitHub. If you’d rather leave OpenCode entirely, see Claude Code alternatives or AI coding tools compared.

FAQ

Why does OpenCode say its free tier can only be used from within OpenCode? OpenCode’s free-model gateway refused the request as not coming from the official client, which is by design for other apps and proxies, and in the official app is usually a denied bash or read permission, an old provider override, a missing login or an old build.

Does OpenCode's free tier can only be used from within OpenCode mean I’m banned? No account ban is stated in any OpenCode reply we read; the error is a client check on free models, and paid models, Go or your own key still work.

Can I use OpenCode free models in another editor? No, OpenCode’s docs say free-tier chat models require OpenCode, and other clients, proxies and direct API calls must use paid models or Go.

Sources

  1. OpenCode GitHub issue #56324 (v2.0.32 error text; triage causes; network/region note; reopened): https://github.com/anomalyco/opencode/issues/56324 (verified 2026-11-10)
  2. OpenCode GitHub issue #49433 (v1 error form; user reports on version strings and bash deny): https://github.com/anomalyco/opencode/issues/49433 (verified 2026-11-10)
  3. OpenCode GitHub issue #49580 (contributor: no free tier in other harnesses; compaction bug resolved): https://github.com/anomalyco/opencode/issues/49580 (verified 2026-11-10)
  4. OpenCode pinned free-tier thread #59387 (update to v2, install commands, free models only inside OpenCode, reporting checklist, [email protected]): https://github.com/anomalyco/opencode/issues/59387 (verified 2026-11-10)
  5. OpenCode releases (v2.2.6, Nov 6, 2026 UTC): https://github.com/anomalyco/opencode/releases (verified 2026-11-10)
  6. OpenCode Console models docs (free-tier rule, free-model list): https://opencode.ai/v2/docs/console/models/ (verified 2026-11-10)
  7. OpenCode Go docs (Go, Go Plus, Go Teams prices; setup): https://opencode.ai/v2/docs/console/go/ (verified 2026-11-10)

Related reading