Skip to content

ccusage / debug / detectMismatches

Function: detectMismatches()

ts
function detectMismatches(claudePath?): Promise<MismatchStats>;

Analyzes usage data to detect pricing mismatches between stored and calculated costs Compares pre-calculated costUSD values with costs calculated from token usage

Parameters

ParameterTypeDescription
claudePath?stringOptional path to Claude data directory

Returns

Promise<MismatchStats>

Statistics about pricing mismatches found

Released under the MIT License.