ccstats 0.2.64

Fast token and cost usage statistics CLI for Claude Code, OpenAI Codex, Cursor, and Grok
Documentation
1
2
3
4
5
6
7
8
9
/// Model pricing info (per token, not per million)
#[derive(Debug, Clone, Default)]
pub(super) struct ModelPricing {
    pub(super) input: f64,
    pub(super) output: f64,
    pub(super) reasoning_output: f64,
    pub(super) cache_read: f64,
    pub(super) cache_create: f64,
}