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
OpenCode’s cost display is significantly inaccurate when using external providers (in this case Nebius Token Factory).
While OpenCode showed very low costs (around $0.50 – $0.75), the actual bill from the provider was $18.14 for the same usage period.
This creates a serious risk of unexpected charges for users, especially when using models with large context windows and agentic workflows.
What happened
I was using MiniMax-M3 (via Nebius Token Factory) as the main model in OpenCode.
OpenCode’s UI consistently showed costs in the range of $0.50 – $0.75.
After checking the Nebius Token Factory billing dashboard, the real cost was $18.14.
Almost the entire amount came from input tokens:
MiniMax-M3-NVFP4 Input: 58.92 million tokens → $17.67
Output tokens were negligible (~0.15M tokens).
Why this is problematic
Users rely on the cost indicator in the UI to control spending.
The displayed cost appears to be only a rough session estimate and does not reflect real provider billing.
With large-context models + multi-turn agent sessions, input tokens can explode very quickly, but OpenCode does not warn about this.
This mismatch can easily lead to unexpected charges (as happened to me).
Expected behavior
The cost shown in OpenCode should be much closer to the actual provider billing, or
There should be a clear warning that the displayed cost is only an approximate session estimate and may differ significantly from the real invoice.
Ideally, OpenCode should also show a more accurate cumulative cost when possible (or at least a stronger disclaimer).
Actual behavior
OpenCode showed ~$0.50–$0.75
Real Nebius bill: $18.14
Difference is roughly 25–35x
Plugins
None
OpenCode version
1.18.14
Steps to reproduce
Connect Nebius Token Factory as a provider in OpenCode and select MiniMax-M3 as the model.
Start an agentic coding session with a relatively large context (multiple files + multi-turn conversation).
Observe the cost indicator in the OpenCode UI (it showed approximately $0.50 – $0.75).
Check the actual billing in the Nebius Token Factory dashboard for the same period.
The real cost was $18.14, almost entirely from ~58.92 million input tokens of MiniMax-M3.
This is not just a minor display inaccuracy. When the UI shows $0.50–$0.75 while the actual provider bill is $18+, users can easily spend 20–30x more than they think. This creates a serious risk of unexpected charges, especially with large-context models and agentic workflows.
Activity
hasankirtas commentedon Aug 6, 2026
This is not just a minor display inaccuracy. When the UI shows $0.50–$0.75 while the actual provider bill is $18+, users can easily spend 20–30x more than they think. This creates a serious risk of unexpected charges, especially with large-context models and agentic workflows.
github-actions commentedon Oct 7, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.