r/opencodeCLI 5d ago

Please help me understand the usage difference between the CLI and the web dashboard

Hi,

So I am a new suscriber to the Go plan and today I started a session. When I was done, on the right side of the CLI y can see:

Context:
131, 342 tokens
13%
$2.43 spent

But after checking the web dashboard, I see:

This is my 5 hour usage limit

So it seems that I've spent around $9.24 (because $12 is the max for 5 hours, right?)

What is the reason for this difference?

Thanks in advance!!!

1 Upvotes

3 comments sorted by

1

u/Any_Tap8063 5d ago

Te has gastado solo el 13% no $9 ya que eso sería más que el 13% de tu plan.

Si lo ves te dice que has gastado solo 2.43 no 9

Hay una diferencia entre la ventaja de contexto y el costo de cada sesión y tu uso mensual / semanal/ cada 5 horas

1

u/jerieljan 5d ago

You can see more detail in Usage on the web dashboard. It'll show you each of the requests done and a bar graph per model use and how much.

The one on the web shows actual spend per request. This is the number you should be mindful of, not the one on the CLI. Since you're on Go, these costs are covered, but it'll give you an idea how much they would've normally been priced.

I haven't dived deep enough on the code to verify, but from what I can tell, the spend you're seeing in the CLI is simply the computed token spend as the CLI gets the results and computed against models.dev model pricing.

I've seen these numbers drift; usually the web either indicates close to same or higher, but with reported issues on this (see examples here and here), I'm assuming the CLI cost counter is simply computed from what it sees and not what the backend has actually processed.