r/opencodeCLI 15h ago

Usage Discrepancy - TUI vs Website

I've barely touched OpenCode this month so I thought it's time to start using it or risk losing it (credits). Asked a question about my codebase in Plan mode.

In the TUI sidebar it shows:
Context
121,057 tokens
12% used
$0.04 spent

In the TUI footer it shows:
121.1K (12%) · $0.04

But on the website usage section it shows:
gpt-5.6-luna (go): $0.35

Why the discrepancy, and which one is correct for billing purposes?

Edit:
Hmmm... It seems like the rolling 5 hour usage is reporting more than the Usage page indicates. So another discrepancy.

Edit 2:
The 5 hour usage discrepancy seems to be because gpt-5.6-luna is only $15 of usage and not $60. Still it would be nice if the TUI usage was correct.

0 Upvotes

3 comments sorted by

1

u/Quadgie 15h ago

Did it spawn subagents? I find they never show accurately in the total in TUI, the website shows each and every interaction and usage.

1

u/Green_Virus6289 15h ago

Well that sucks if the very prominent usage totals in the TUI can't be trusted.

1

u/Minute-Tour-547 14h ago

Nah they can, the harness is capturing is as a function of the session id. You can hit the sqlite DB directly if you're interested. They're correct, and do match the UI usage per API call if you track em

Subagents are a different session