Track AI Token Usage Per Project

Published 16 May 2026

If you work on multiple projects with AI coding tools, you have probably asked yourself:

The API dashboards from OpenAI and Anthropic show you one global number. They do not split by codebase. TokenBBQ does.

1. The Problem: One API Key, Many Projects

Here is what a typical provider dashboard shows today:

Total tokens today: 142,000
Total cost today:     $0.87

That is it. No breakdown. No per-project split. No way to know if your side project just ate 80% of your daily budget while your main client work sat idle.

Real scenario: A freelancer uses Claude Code on three client projects in one day. The Anthropic dashboard says "120k tokens, $0.72". But which client owes what? Without project tracking, billing is a guess.

2. Why Per-Project Token Tracking Matters

3. What the Big Platforms Give You

PlatformProject Split?Real-Time?
OpenAI Usage DashboardNo — one global numberDelayed by minutes
Anthropic ConsoleNo — per-key onlyDelayed by minutes
TokenBBQYes — per projectReal-time

4. Project Tracking in TokenBBQ

TokenBBQ breaks down your token usage by project. The dashboard shows:

TokenBBQ dashboard showing per-project token usage breakdown
TokenBBQ dashboard — per-project token breakdown

The data comes from the log files that Claude Code, Codex, and other tools already write locally. TokenBBQ reads them and groups by the directory each tool was running in.

5. Quick Start

No install, no config, no API key:

npx tokenbbq@latest

This starts the web dashboard on http://localhost:3000. Run your AI tools from their respective project directories as usual. TokenBBQ picks up the log data and groups it by folder.

For terminal output with project grouping:

npx tokenbbq@latest daily
npx tokenbbq@latest monthly
npx tokenbbq@latest summary --json

6. Use Cases

Freelancer billing

Bill clients for actual AI usage instead of guessing. At the end of the week, check the project breakdown in the dashboard and attach the numbers to your invoice. Transparent, fair, and defensible.

Team budget management

A team of five developers shares one company API key. TokenBBQ shows which repository is consuming the quota. If the marketing site bot eats 60% of the budget, you know where to optimize.

Side-project discipline

Your main job pays the API bill, but your side project is where the fun is. Set a mental cap for the side project. TokenBBQ shows the daily numbers per project — so your hobby does not eat the quota meant for client work.

7. Related Guides

8. Summary

OpenAI and Anthropic give you a single total. TokenBBQ splits it by project.

If you run AI coding tools across multiple repositories, you need project-level tracking. It is the difference between guessing your costs and knowing them.

Start tracking tokens per project

Open-source · MIT · Local-only · No sign-up

Get TokenBBQ →