🔧 AI Nachrichten OpenAI pauses $200 Pro tier as Astra demand strains capacity(11.09.2026 um 11:23 Uhr)
🔧 AI Nachrichten OpenAI seeks tougher AI rules. CIOs may feel the ripple effects(10.09.2026 um 12:11 Uhr)
🔧 AI Nachrichten The quiet reason CIOs are slowing AI down(11.09.2026 um 11:00 Uhr)
🔧 AI Nachrichten OpenAI pauses $200 Pro tier as Astra demand strains capacity(11.09.2026 um 11:19 Uhr)
🪟 Windows TippsWindows XP's Cursor Indicator Is Getting a Windows 11 Refresh(25.08.2026 um 13:00 Uhr)
🔧 AI Nachrichten OpenAI pauses $200 Pro tier as Astra demand strains capacity(11.09.2026 um 11:23 Uhr)
🔧 AI Nachrichten OpenAI seeks tougher AI rules. CIOs may feel the ripple effects(10.09.2026 um 12:11 Uhr)
🔧 AI Nachrichten The quiet reason CIOs are slowing AI down(11.09.2026 um 11:00 Uhr)
🔧 AI Nachrichten OpenAI pauses $200 Pro tier as Astra demand strains capacity(11.09.2026 um 11:19 Uhr)
🪟 Windows TippsWindows XP's Cursor Indicator Is Getting a Windows 11 Refresh(25.08.2026 um 13:00 Uhr)

🔧 Programmierung 🕛 vor 4 Monaten 9 Min Lesezeit
0

How I Track AI Coding Costs Across 4 Platforms with One Tool

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

Last month I got a surprise. My credit card statement showed I'd spent significantly more on AI coding tools than I thought. The problem wasn't that I was using too much — the problem was I had no idea how much I was using. I had Claude Code open in one terminal, Gemini CLI in another, and Cursor handling a side project. Three separate tools, three separate billing pages, zero unified view.



So I built one.






The Problem with AI Coding Cost Visibility



Every major AI coding tool stores session data locally. Claude Code writes JSONL files to ~/.claude/projects/. Gemini CLI logs to ~/.gemini/tmp/. Codex uses ~/.codex/sessions/. Cursor keeps everything in a SQLite database.



None of them talk to each other. And if you use more than one — which most developers do these days — you're left doing mental arithmetic across four different dashboards.



Existing monitoring tools weren't much help either. The most popular ones only support Claude Code. That's fine if you're a Claude-only shop, but not if you're like me and reach for whatever tool fits the task.






The Solution: cc-statistics



project, which hooks into Claude Code's process state to drive animations. Seeing a tiny pixel character respond to your AI actually working is a small thing, but it makes the experience feel less like staring at a text terminal.









CLI Power Features



The CLI is where cc-statistics earns its keep for power users. A few commands I use every day:




CODE
# What did I spend in the last 7 days, across all platforms?
cc-stats --all --since 7d

# List every project cc-statistics has found (all platforms)
cc-stats --list

# Drill into the last 3 sessions for a specific project
cc-stats my-project --last 3

# Compare token spend across projects in the last week
cc-stats --compare --since 1w

# Open the web dashboard in a browser
cc-stats-web






The --compare flag is particularly useful at the end of a sprint. It shows a side-by-side breakdown of token consumption per project, which quickly reveals where the expensive work happened.






Session Search and Resume



This one came out of a real frustration: I'd have a productive Claude Code session, close the terminal, and then realize two days later that I needed to pick up exactly where I left off — but I couldn't remember which session it was.



cc-statistics indexes session content and lets you search by keyword:




CODE
cc-stats --search "database migration"






It returns matching sessions with timestamps and a ready-to-run resume command:




CODE
claude --resume <session-id>






One copy-paste and you're back in context. This works across all historical sessions, not just recent ones.









Beyond Cost Tracking



Token counts and dollar amounts are the obvious metrics. But cc-statistics surfaces several others that I've found surprisingly useful.






Tool Call Analysis



For Claude Code users, every tool call is logged — file reads, shell commands, web searches, and all your MCP tools. cc-statistics aggregates these and shows you a Top 10 breakdown by tool name, with Skill-type and MCP tools expanded to their specific names rather than grouped together.



This turns out to be a useful debugging signal. If mcp__filesystem__read_file is dominating your tool calls, maybe your agent is doing too many redundant reads. If a specific MCP tool is called 200 times in a session, you have a concrete number to reason about.






Code Change Statistics



Using git log --numstat on your project directories, cc-statistics tracks lines added and deleted by language per session. You get a breakdown like: "This week, 3,400 lines of TypeScript and 800 lines of Python were written in AI-assisted sessions."



This is useful for understanding where AI coding is actually generating output, not just consuming tokens. A session with high token usage but zero code changes probably means you spent the time in discussion or planning — which is fine, but worth knowing.






AI Time vs. User Time



cc-statistics measures how long Claude is "thinking" versus how long it spends waiting for you to respond. This ratio tells you something about your workflow efficiency. A high AI time percentage in short sessions usually means you're prompt-and-wait; a more balanced ratio might mean you're doing more interactive back-and-forth.



I've found this metric helpful for spotting sessions where I should have batched more work into a single prompt rather than going back and forth ten times.









Reports and Notifications






Automatic Weekly and Monthly Reports






CODE
cc-stats --report week
cc-stats --report month






These generate Markdown files summarizing your usage across all platforms for the period: total tokens, cost by model, most active projects, top tool calls, and code changes by language. Useful for personal accountability, or for justifying your AI tooling budget to a manager.






Webhook Push



If you're on a team, you can push reports to a channel:




CODE
cc-stats --notify https://hooks.slack.com/services/your-webhook-url






Slack, Feishu, and DingTalk webhooks all work. I have a weekly cron job that pushes a summary to a personal Slack channel so I have a permanent record. You could use this for team-wide visibility into AI tooling costs, or just for your own history.









Usage Alerts



You can set daily and weekly spending limits, and cc-statistics will fire a macOS system notification when you're close to or over the threshold. This lives in the app's Settings panel.



The notification goes through the standard macOS notification system, so it respects your Focus modes and doesn't require the app to be in the foreground. Combined with the status bar turning red, it's hard to miss.









Web Dashboard






CODE
cc-stats-web






This opens a browser-based dark-themed dashboard — useful on non-Mac platforms or when you want a larger view than the menu bar panel provides. It shows the same data as the native app: sessions, tokens by model, daily trends, tool call breakdowns.









Getting Started in 3 Steps



1. Install




CODE
# uv (fastest)
uv tool install cc-statistics

# or pipx
pipx install cc-statistics

# or Homebrew
brew install androidZzT/tap/cc-statistics






2. Run your first report




CODE
cc-stats --all --since 7d






This scans all detected platforms and prints the last 7 days of activity. If you only use Claude Code, it'll show Claude Code. If you have Gemini CLI sessions too, those appear automatically.



3. Launch the menu bar app (macOS)




CODE
cc-stats-app






Enable "Launch at Login" in Settings once, and you'll have a persistent cost gauge from then on.









What's Next



A few things on the roadmap that I'm working toward:





  • Rate limit progress bar — visual indicator of how close you are to Claude's session limits, similar to what claude-usage does for Pro/Max subscribers


  • Hourly activity distribution — see which hours of the day you use AI coding tools most, and whether those overlap with peak throttling windows


  • Budget forecasting — project end-of-month spend based on current usage velocity









Links




  • GitHub:



If you're using multiple AI coding tools and want a single place to see what they're actually costing you, give it a try. And if something doesn't work or you want a platform added, open an issue — the project is actively maintained.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
2 Quellen
OpenAI pauses $200 Pro tier as Astra demand strains capacity
1 Quelle
Swiss government explores replacing Microsoft 365 with open-source software
1 Quelle
OpenAI seeks tougher AI rules. CIOs may feel the ripple effects
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How I Track AI Coding Costs Across 4 Platforms with One Tool

Thematisch verwandte Begriffe: Track, Coding, Costs, Across · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...