Skip to content

[URGENT] Zen paid balance still hits FreeUsageLimitError / daily free usage limit. #33318

Description

@anomalic1

Description

After adding a paid Zen balance of "$20", OpenCode Zen still returns:

Free usage exceeded, add credits https://opencode.ai/zen

This happens barely under 1 hour of usage, even though the account has billing/credits enabled. My understanding is that the daily free usage limit should apply only to accounts without billing/credits, not paid-balance accounts.

Expected behavior

Once Zen billing/credits are added, the request should be charged normally or fail with a proper paid-account/balance/model/provider error, not "FreeUsageLimitError".

Actual behavior

Zen still appears to apply the free/daily/IP usage limit and blocks usage with "Free usage exceeded", despite available paid balance.

Why this looks like a bug

The limiter path appears related to:

packages/console/app/src/routes/zen/util/ipRateLimiter.ts

Older/current related code paths throw "FreeUsageLimitError" from the Zen IP rate limiter. This suggests the free usage limiter may still be checked before billing/account state, or the request is being classified as free/anonymous even when using a paid Zen API key.

Possible cause

The paid API key/account/billing state may not be bypassing the IP/free-tier limiter, or the request may be missing/losing the authenticated Zen user/session context and falling back to IP-based free usage tracking.

Steps to reproduce

  1. Add "$20" credits/balance to OpenCode Zen.
  2. Use a Zen API key in OpenCode / API gateway.
  3. Use Zen models for normal coding-agent requests.
  4. Continue for under ~1 hour.
  5. Observe "Free usage exceeded, add credits https://opencode.ai/zen".

Additional context

This seems similar to previous reports where users had credits/balance but still received "Free usage exceeded". Please clarify whether paid Zen users are still subject to the same free daily/IP limiter, or whether this is an auth/billing-state bug.

Plugins

NA

OpenCode version

NA

Steps to reproduce

  1. After 1 hour worth of usage
  2. This Error will happen
  3. When changing Devices it works like normal
  4. Then again hit limit. Weird

Screenshot and/or share link

NA

Operating System

Python server

Terminal

NA

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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