Skip to content

Unpriced models silently contribute $0 to totals; warning is off by default #638

Closed

Description

@avs-io

Problem

When a model has no pricing data, calculateCost returns 0 (src/models.ts:722) and the only warning is gated behind CODEBURN_VERBOSE=1 (src/models.ts:694). By default every call on an unpriced model adds $0 to all totals, breakdowns, exports, and MCP responses with no indication anywhere. A new model id shipping ahead of our pricing table (the #629 scenario, 27 models at $0) undercounts real spend and looks identical to a genuinely free model.

Evidence

  • src/models.ts:694: if (process.env['CODEBURN_VERBOSE'] !== '1') return false
  • src/models.ts:708-722: unknown model returns cost 0
  • Verified on main at 1a75484.

Proposed fix

Track unpriced token volume during aggregation and surface it in the product itself, independent of the stderr warning:

  • overview/report/dashboard: a line like N calls / M tokens unpriced (model X). Map it: codeburn model-alias ...
  • JSON output and MCP: an unpriced field
  • At minimum, emit the stderr warning once per run by default instead of only under CODEBURN_VERBOSE.

This turns silent undercounting into a visible, self-serve fixable state and should deflect a chunk of the wrong-numbers issue class.

Activity

  1. added 4 commits that reference this issue on Jul 9, 2026
    231e7cc
    e6162f6
    bf6eee0
    4018a0b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions