Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

feat(team): read billed_input_tokens from the proxy token file

Jack Rudenko98e6d15988c5
diff --git a/packages/cli/src/team-stats.ts b/packages/cli/src/team-stats.ts
index 93cbe721..16484484 100644
--- a/packages/cli/src/team-stats.ts
+++ b/packages/cli/src/team-stats.ts
@@ -20,6 +20,11 @@ export interface ModelTokenStats {
output_tokens?: number;
total_tokens?: number;
total_cost?: number;
+ /**
+ * Cumulative input tokens billed across the session — the figure to pair with
+ * `total_cost`. Never `input_tokens`, which is the CURRENT context size.
+ */
+ billed_input_tokens?: number;
context_window?: number | string;
context_left_percent?: number;
provider_name?: string;