Dev.to
7/25/2026

The original title is: "AICostTracker v0.1.2: automatic API call logging wrapper for OpenAI and Anthropic clients"
Original: Stop manually logging your AI API calls — one-line auto-logging for OpenAI and Anthropic
Short summary
AICostTracker v0.1.2 introduces a track() middleware that wraps OpenAI and Anthropic clients to automatically log every API call with project tags. The wrapper intercepts responses, extracts usage data, and logs costs silently without adding latency. A summary command shows cost breakdowns by project and model, solving the problem of inconsistent manual logging.
- •track() wraps OpenAI/Anthropic clients for automatic per-call cost logging
- •Project tagging enables cost attribution across multiple agents or codebases
- •Summary command shows breakdown by project and model with zero added latency
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



