VibeCodingTracker: Track All Your AI Coding Costs in Real-Time

⬅️ Back to Tools

VibeCodingTracker: Know Exactly What Your AI Coding Costs

If you’re using AI coding assistants like Codex, Claude Code, Copilot, or Gemini, you’ve probably wondered: “How much did I actually spend today?” The official usage pages give you totals, but not a day-by-day breakdown. VibeCodingTracker https://github.com/Mai0313/VibeCodingTracker solves this by reading your local logs and spitting out a detailed table of exactly how many tokens you used each day—including input, output, reasoning, cache reads, and even the cost in USD.

If you’re using any AI coding CLI and haven’t run this yet, do it. You might be very surprised.

Key Features

💰 Real-Time Cost Tracking

Stop wondering how much your AI coding sessions cost. Get detailed cost breakdowns with automatic pricing updates pulled live from LiteLLM, so calculations stay accurate even when providers change rates:

  • Input tokens - Standard prompt tokens
  • Output tokens - Generated response tokens
  • Reasoning tokens - Chain-of-thought processing
  • Cache reads - Cached context hits
  • Total cost in USD - Live pricing from LiteLLM

📊 Interactive Dashboard

Launch a beautiful terminal UI that auto-refreshes with live updates:

vct usage

The dashboard shows your usage patterns at a glance, making it easy to spot trends and manage your AI budget.

🤖 Multi-Tool Support

Works with all major AI coding assistants:

  • Claude Code - Anthropic’s coding assistant
  • Codex CLI - OpenAI’s official CLI tool
  • Copilot - GitHub’s AI coding assistant
  • Gemini - Google’s AI coding assistant

Automatically detects and processes logs from any of these tools with zero configuration.

🎨 Flexible Output Modes

Choose how you want to see your data:

  • Interactive Dashboard - Auto-refreshing terminal UI with live updates
  • Static Reports - Professional tables for documentation (--table)
  • Script-Friendly - Plain text for automation (--text)
  • Full Precision - JSON for data processing (--json)

🔍 Deep Analysis

Analyze individual conversations or batch process all sessions:

# Analyze a specific conversation
vct analysis --path ~/.claude/projects/session.jsonl

# Batch analyze all sessions
vct analysis --table

Get Started

Installation

Choose the method that works best for you:

Option 1: Cargo (Rust)

cargo install vibe_coding_tracker

Option 2: npm (Node.js)

npm install -g vibe-coding-tracker
# Or the short alias:
npm install -g @mai0313/vct

Option 3: PyPI (Python)

pip install vibe_coding_tracker

Usage

Run the interactive dashboard to see your daily breakdown:

vct usage

The tool automatically finds your local AI assistant logs and displays:

  • Daily token usage totals
  • Cost per day in USD
  • Input/output/reasoning/cache breakdowns
  • Cumulative spending trends

Other useful commands:

# Static table output
vct usage --table

# Analyze all sessions
vct analysis --table

# Update to latest version
vct update

How It Works

VibeCodingTracker reads the JSONL session files that AI assistants create locally on your machine. It aggregates these events into comprehensive usage reports, pulling live pricing data from LiteLLM to ensure accurate cost calculations.

Scanned directories:

  • ~/.claude/projects/*.jsonl (Claude Code)
  • ~/.codex/sessions/*.jsonl (Codex)
  • ~/.copilot/history-session-state/*.json (Copilot)
  • ~/.gemini/tmp/*/chats/*.json (Gemini)

Note: Some CLI tools delete session files after 30 days by default. If you want to preserve your usage history long-term, consider backing up your log directories or adjusting your cleanup settings.

Alternative: codex_usage

If you prefer a simpler, Rust-only tool specifically for Codex and Claude Code, the original codex_usage is still available:

# Install via Cargo
cargo install codex_usage

# Run interactive dashboard
codex_usage usage

This is the predecessor to VibeCodingTracker and works great if you only need Codex/Claude support and prefer a minimal Rust-only installation.

🔗 VibeCodingTracker: github.com/Mai0313/VibeCodingTracker

🔗 codex_usage: github.com/Mai0313/codex_usage

Why This Tool Rocks

  • Universal Support - Works with Claude Code, Codex, Copilot, AND Gemini—all in one tool
  • Know Your Costs - Real-time cost tracking with automatic pricing updates from LiteLLM
  • Daily Breakdown - See exactly how much you spent each day, not just a monthly total
  • Zero Configuration - Automatically detects and processes logs from all supported tools
  • Privacy First - All processing happens locally; your data never leaves your machine
  • Beautiful Dashboard - Interactive terminal UI that makes tracking usage actually enjoyable
  • Multiple Install Options - Use Cargo, npm, or pip—whatever fits your workflow
  • Lightweight Alternative - Prefer Rust-only? Use codex_usage instead
  • Free & Open Source - MIT licensed, no subscriptions, no data collection

Crepi il lupo! 🐺