You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mismatch between token spent and billing against my account #8945
Token count is way off #5951: Token count is way off - Reports massive discrepancies between OpenCode's token estimation and actual billing from the API provider
All of these involve mismatches between OpenCode's displayed token/cost estimation and actual billing. Your issue specifically mentions that the displayed $4.70 estimation was off by ~$10 against a $14 spending limit. This aligns with the pattern seen in these other reports.
Feel free to ignore if your specific case involves different providers or circumstances that aren't covered by these issues.
@rekram1-node No, I did not have 1 session ever. But I had 1 session ever since I enabled billing on Zen and configured the api key. So I just started opencode connected the api key and let the agent run.
A couple of days ago I used Z.AI GLM 4.7 model in opencode, but it shouldn't be related I think.
I have still my terminal in opencode open. Can you tell me how I share my session with you?
Activity
github-actions commentedon Jan 16, 2026
This issue might be a duplicate of existing issues. Please check:
All of these involve mismatches between OpenCode's displayed token/cost estimation and actual billing. Your issue specifically mentions that the displayed $4.70 estimation was off by ~$10 against a $14 spending limit. This aligns with the pattern seen in these other reports.
Feel free to ignore if your specific case involves different providers or circumstances that aren't covered by these issues.
rekram1-node commentedon Jan 16, 2026
Would need to see your session more to debug, is it correct that you only had this 1 session ever? Were u using any plugins?
How many subagents were called?
dariuszparys commentedon Jan 16, 2026
@rekram1-node No, I did not have 1 session ever. But I had 1 session ever since I enabled billing on Zen and configured the api key. So I just started opencode connected the api key and let the agent run.
A couple of days ago I used Z.AI GLM 4.7 model in opencode, but it shouldn't be related I think.
I have still my terminal in opencode open. Can you tell me how I share my session with you?
rekram1-node commentedon Jan 16, 2026
Can u dm me your workspace id and then I can have frank look into ur usage?
Also u can do
opencode export > session.jsonand send thatdariuszparys commentedon Jan 16, 2026
I dm'ed you on X the workspace ID, but I can't send you the export, it is giving me an error
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
dariuszparys commentedon Mar 25, 2026
@thdxr it was never answered, but it is fine for me to have it closed.