Skip to content

Usage page doesn't disclose what the cost estimate excludes (Engine spend) or over-counts (cache) #270

Description

@serge-ivo

The gap

store/console/src/pages/Usage.tsx says:

Token usage and estimated cost across all your agents. Cost is estimated from list prices on your own key (BYOK) — not a bill.

Good as far as it goes — it is honest that the figure is an estimate. It does not say in which direction, or what is missing, and both are now known:

  1. It excludes Coder Engine spend entirely (Coding Engine spend is invisible in the usage ledger — the largest real cost isn't recorded #267). The coding line reads $0.70/67 calls, which is only the cloud-side Pilot; the Engine on the user's own machine is never recorded. For a Coder user the page understates real spend substantially while looking complete.
  2. Cached tokens are over-priced ~10× (Cache-read tokens are priced at the full input rate — overstates cost ~10x on the cached path #268), which pushes the other way on chat-heavy accounts.

A user reading $40.92 reasonably concludes "that is what my keys were billed". It isn't, in two directions at once, and nothing on the page says so.

Build

Acceptance

  • No user can read the total as a bill.
  • The Engine exclusion is stated while it is true, and removed when it stops being true.

Small, and worth doing before #267/#268 rather than after — the disclosure is correct right now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions