tellmefrankie/news-engine/claude-cost-tracker

Claude Code and agent skill by tellmefrankie/news-engine

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install tellmefrankie/news-engine/claude-cost-tracker

SKILL.md

The same SKILL.md was published earlier as tellmefrankie/news-engine/claude-cost-tracker.

Claude API Cost Tracker

Track your Anthropic API spend by project, model, and task type. Know exactly what each feature costs before it ships.

What it does

  • Pulls usage data from Anthropic API billing endpoint
  • Breaks down cost by: project, model (Opus/Sonnet/Haiku), date range
  • Flags expensive operations (prompts > $0.10 per call)
  • Projects monthly spend from current daily burn rate
  • Identifies which tasks are best candidates for model downgrade (Opus → Sonnet)

Usage

Check my Claude API costs for this week.
Break down by: model, project tag, daily trend.
Flag any single calls over $0.05.
Project monthly spend at current rate.
Suggest which tasks could switch from Opus to Sonnet without quality loss.

Example Output

Claude API Cost Report — Week of May 13, 2026
TOTAL THIS WEEK: $4.23
Opus 4.5: $3.10 (73%) — news analysis pipeline
Sonnet 4.5: $0.89 (21%) — investment briefing
Haiku 4.5: $0.24 (6%) — price monitor checks
DAILY BURN: $0.60/day
MONTHLY PROJECTION: ~$18/month
TOP EXPENSIVE CALLS (this week):
$0.14 — filter.ts:45 — 50-article importance ranking prompt
$0.09 — analyze.ts:88 — per-article deep analysis (x5 articles)
$0.04 — briefing.ts:12 — portfolio summary generation
OPTIMIZATION SUGGESTIONS:
filter.ts ranking prompt: Switch to Sonnet — saves ~$0.06/day ($1.80/month)
Confidence: HIGH — filtering is structured JSON output, not nuanced reasoning
price monitor heartbeat: Already on Haiku — optimal

Model Downgrade Analysis

The skill evaluates each prompt type against downgrade criteria:

Task typeOpus needed?Recommendation
Structured JSON extractionNo→ Sonnet
Importance ranking (1-5)No→ Haiku
Nuanced sentiment analysisYesKeep Opus
Code generationSituationalTest Sonnet first
Multi-step reasoning chainsYesKeep Opus

Configuration

Track Claude costs:
API key: (reads from ANTHROPIC_API_KEY env)
Date range: last 7 days
Group by: model, then by file/prompt tag
Budget alert: warn if projected monthly > $30
Downgrade candidates: flag any Opus task where Sonnet could substitute

Requirements

  • ANTHROPIC_API_KEY in environment
  • Anthropic usage API access (available on all paid plans)

Free

Fully free and open source.

Part of the AI Investment Skills Bundle — $29 one-time. → https://jaehyunpark.gumroad.com/l/tcyahy

Author

Built after an Opus pipeline ran overnight and cost $12 for something Sonnet would have handled at $2. The downgrade analysis alone pays for itself in the first month.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tellmefrankie/news-engine/claude-cost-tracker/badge)](https://verified-skill.com/skills/tellmefrankie/news-engine/claude-cost-tracker)

Something wrong with this skill or its page? Tell us.