model-usage

Installation
SKILL.md

Model Usage

Overview

Track per-model usage, costs, and token consumption to understand spending and optimize model selection.

Quick Queries

Total cost across all sessions

total=0; for f in .codebuddy/sessions/*.json; do
  cost=$(jq -r '.usage.totalCost // 0' "$f" 2>/dev/null)
  total=$(echo "$total + $cost" | bc 2>/dev/null || echo "$total")
done; echo "Total: \$$total"

Cost per model

for f in .codebuddy/sessions/*.json; do
Related skills
Installs
2
GitHub Stars
7
First Seen
Mar 18, 2026