anomalyco / anomalyco/opencode

Billing bug: content filter blocks output but user is charged full generation cost

Open
#39,427 2 comments 0 reactions 1 assignee View on GitHub

@MrMushrooooom is already working on this.

Since Jul 29, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Opencode Zen charges users for API calls even when the platform's own content filter intercepts and blocks the response. The user receives zero output tokens but is billed at the full generation cost.

Plugins

None

OpenCode version

Zen (hosted) — latest

Steps to reproduce
  1. Make an API call where Opencode's content filter blocks the response
  2. Check the SQLite receipt DB — a line item appears with the full token cost
  3. Note that zero output tokens were delivered to the user
Screenshot and/or share link

SQLite evidence and full timeline: https://gist.github.com/arshbuttar426-hue/26f86e2e17d362053cc42083aab35cf8

Operating System

macOS

Terminal

iTerm2

@thdxr @fwang — this is the systemic billing bug: content filter blocks output, user still pays. Previous report in #35643.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.