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
More from phuetz/code-buddy
blender
Blender 3D modeling, animation, and rendering automation via Python bpy scripting and CLI
19figma
Automate Figma design workflows via REST API, Plugin API, and MCP integration
3github
Interact with GitHub using the gh CLI for issues, PRs, CI runs, releases, and API queries
3gif-search
Search and download GIFs from Tenor and Giphy APIs
3ableton-live
Ableton Live music production automation via OSC protocol, MIDI, and Max for Live
3gitlab
GitLab DevOps platform with CI/CD pipelines, API automation, and glab CLI control
3