anomalyco / anomalyco/opencode
Billing bug: content filter blocks output but user is charged full generation cost
Open
@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
- Make an API call where Opencode's content filter blocks the response
- Check the SQLite receipt DB — a line item appears with the full token cost
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.