Vibe Coding Tracker — AI Coding Assistant Usage Tracker
Track your AI coding costs in real-time. Vibe Coding Tracker is a powerful CLI tool that helps you monitor and analyze your Claude Code, Codex, Copilot, and Gemini usage, providing detailed cost breakdowns, token statistics, and code operation insights.
Note: CLI examples use the short alias
vct. If you installed via npm/pip/cargo, the binary might be namedvibe_coding_trackerorvct. Create an alias or replacevctwith the full name when running commands if needed.
🎯 Why Vibe Coding Tracker?
💰 Know Your Costs
Stop wondering how much your AI coding sessions cost. Get real-time cost tracking with automatic pricing updates from LiteLLM.
📊 Beautiful Visualizations
Choose your preferred view:
- Interactive Dashboard: Auto-refreshing terminal UI with live updates
- Static Reports: Professional tables for documentation
- Script-Friendly: Plain text and JSON for automation
- Full Precision: Export exact costs for accounting
🚀 Zero Configuration
Automatically detects and processes logs from Claude Code, Codex, Copilot, and Gemini. No setup required—just run and analyze.
🎨 Rich Insights
- Token usage by model and date
- Cost breakdown by cache types
- File operations tracking
- Command execution history
- Git repository information
✨ Key Features
| Feature | Description |
|---|---|
| 🤖 Auto-Detection | Intelligently identifies Claude Code, Codex, Copilot, or Gemini logs |
| 💵 Smart Pricing | Fuzzy model matching + daily cache for speed |
| 🎨 4 Display Modes | Interactive, Table, Text, and JSON outputs |
| 📈 Comprehensive Stats | Tokens, costs, file ops, and tool calls |
| ⚡ High Performance | Built with Rust for speed and reliability |
| 🔄 Live Updates | Real-time dashboard refreshes every second |
| 💾 Efficient Caching | Smart daily cache reduces API calls |
🚀 Quick Start
Installation
Choose the installation method that works best for you:
👨💻 Developers: If you want to build from source or contribute to development, please see CONTRIBUTING.md.
Method 1: Install from npm
Prerequisites: Node.js v22 or higher
Choose one of the following package names (they are identical):
# Main package
# Short alias with scope
# Full name with scope
Method 2: Install from PyPI
Prerequisites: Python 3.8 or higher
# Or with uv
Method 3: Install from crates.io
Install using Cargo from the official Rust package registry:
First Run
# View your usage with the short alias (if available)
# Or run the binary built by Cargo/pip
# Analyze a specific conversation
📖 Command Guide
🔍 Quick Reference
# Replace with `vibe_coding_tracker` if you are using the full binary name
)
)
💰 Usage Command
Track your spending across all AI coding sessions.
Basic Usage
# Interactive dashboard (recommended)
# Static table for reports
# Plain text for scripts
# JSON for data processing
What You Get
The tool scans these directories automatically:
~/.claude/projects/*.jsonl(Claude Code)~/.codex/sessions/*.jsonl(Codex)~/.copilot/history-session-state/*.json(Copilot)~/.gemini/tmp/<project_hash>/chats/*.json(Gemini)
📊 Analysis Command
Deep dive into conversation files - single file or batch analysis.
Basic Usage
# Single file: Analyze and display
# Single file: Save to file
# Batch: Analyze all sessions with interactive table (default)
# Batch: Static table output with daily averages
# Batch: Save aggregated results to JSON
# Batch with provider grouping: Output complete records grouped by provider (JSON format)
# Save the grouped results to a file
🔄 Update Command
Keep your installation up-to-date automatically.
The update command works for all installation methods (npm/pip/cargo/manual) by directly downloading and replacing the binary from GitHub releases.
Basic Usage
# Check for updates
# Interactive update with confirmation
# Force update - always downloads latest version (even if already up-to-date)
💡 Smart Pricing System
How It Works
- Automatic Updates: Fetches pricing from LiteLLM daily
- Smart Caching: Stores pricing in
~/.vibe_coding_tracker/for 24 hours - Fuzzy Matching: Finds best match even for custom model names
- Always Accurate: Ensures you get the latest pricing
Model Matching
Priority Order:
- ✅ Exact Match:
claude-sonnet-4→claude-sonnet-4 - 🔄 Normalized:
claude-sonnet-4-20250514→claude-sonnet-4 - 🔍 Substring:
custom-gpt-4→gpt-4 - 🎯 Fuzzy (AI-powered): Uses Jaro-Winkler similarity (70% threshold)
- 💵 Fallback: Shows $0.00 if no match found
🐳 Docker Support
# Build image
# Run with your sessions