Vibe Coding Tracker - AI coding assistant telemetry/usage parser, aggregate JSONL events into CodeAnalysis results
Project description
Track your AI coding costs in real-time. Vibe Coding Tracker is a lightweight, high-performance CLI tool built in Rust that monitors and analyzes your Claude Code, Codex, Copilot, and Gemini usage — with detailed cost breakdowns, token statistics, and code operation insights, all while keeping the memory footprint minimal.
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.
🪶 Ultra-Lightweight
Built with Rust for minimal resource footprint. The interactive TUI dashboard typically sits at under ~50 MB of resident memory once the first refresh is done, even with hundreds of long-context sessions on disk — no Electron, no bloated runtimes. The usage path parses each session file in a lean usage-only mode and bypasses the cache, and we tune glibc's arena count at startup to keep long-running RSS honest.
📊 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 (read / create)
- File operations tracking (edit, read, write lines)
- Tool call history (Bash, Edit, Read, Write, TodoWrite)
- Per-provider daily averages
✨ Key Features
| Feature | Description |
|---|---|
| 🤖 Multi-Provider | Claude Code, Codex, Copilot, and Gemini — all in one place |
| 💵 Smart Pricing | Fuzzy model matching + daily cache from LiteLLM |
| 🎨 4 Display Modes | Interactive TUI, static table, plain text, and JSON |
| 📈 Dual Analysis | Token/cost stats (usage) + code operation stats (analysis) |
| 🪶 Ultra-Lightweight | Under ~50 MB RSS in the TUI, streaming JSONL parse — built with Rust |
| 🔄 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
npm install -g vibe-coding-tracker
# Short alias with scope
npm install -g @mai0313/vct
# Full name with scope
npm install -g @mai0313/vibe-coding-tracker
Method 2: Install from PyPI
Prerequisites: Python 3.8 or higher
pip install vibe_coding_tracker
# Or with uv
uv pip install vibe_coding_tracker
Method 3: Install from crates.io
Install using Cargo from the official Rust package registry:
cargo install vibe_coding_tracker
First Run
# View your usage with the interactive dashboard
vct usage
# Or run the binary built by Cargo/pip
vibe_coding_tracker usage
# Analyze code operations across all sessions
vct analysis
📖 Command Guide
🔍 Quick Reference
vct <COMMAND> [OPTIONS]
# Replace with `vibe_coding_tracker` if you are using the full binary name
Commands:
analysis Analyze JSONL conversation files (single file or all sessions)
usage Display token usage statistics
version Display version information
update Update to the latest version from GitHub releases
help Print this message or the help of the given subcommand(s)
Time range flags (shared by usage and analysis, mutually exclusive, default --all):
| Flag | Window |
|---|---|
--daily |
Sessions modified today |
--weekly |
Current ISO week (Monday → today) |
--monthly |
Current calendar month |
--all |
Every session on disk (default) |
💰 Usage Command
Track your spending across all AI coding sessions.
Flags
| Flag | Purpose |
|---|---|
| (none) | Interactive TUI dashboard (default) |
--table |
Static table, no TUI |
--text |
Plain text, script-friendly |
--json |
JSON with enriched pricing metadata |
--daily / --weekly / --monthly / --all |
Time range filter (see table above) |
Basic Usage
# Interactive dashboard (recommended)
vct usage
# Static table for reports
vct usage --table
# Plain text for scripts
vct usage --text
# JSON for data processing (includes cost_usd and matched_model fields)
vct usage --json
# Combine time range with output format
vct usage --weekly
vct usage --table --monthly
vct usage --json --daily
[!NOTE] Model rows are sorted by cost in ascending order, so the highest-spending model sits right above the
TOTALrow. This applies to the interactive dashboard,--table, and--textoutput;--jsonpreserves the same order.
Preview: Interactive Dashboard (vct usage)
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ 📊 Token Usage Statistics │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ Model Input Output Cache Read Cache Create Total Cost │
│ │
│ gemini-3.1-pro-preview 129,115 10,339 67,385 0 $0.40 │
│ claude-haiku-4-5-20251001 5,567 19,769 4,627,938 619,816 $1.34 │
│ claude-opus-4-6 25,651 179,066 40,830,154 2,572,258 $77.59 │
│ TOTAL 160,333 209,174 45,525,477 3,192,074 $79.33 │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ Provider Tokens / Day Cost / Day Active Days │
│ │
│ 🤖 Claude Code 16,293,406 $26.31 3 │
│ ✨ Gemini 206,839 $0.40 1 │
│ ⭐ All Providers 16,362,353 $26.44 3 │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ 💰 Total: $79.33 | 🔢 Tokens: 49,087,058 | 📊 Models: 3 | 🧠 Memory: 42.8 MB │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
Press 'q', 'Esc', 'Ctrl+C' to quit | Press 'r' to refresh
What It Scans
The tool automatically scans these directories:
~/.claude/projects/**/*.jsonl(Claude Code)~/.codex/sessions/**/*.jsonl(Codex)~/.copilot/session-state/<sessionId>/events.jsonl(Copilot CLI)~/.gemini/tmp/<project_hash>/chats/*.jsonl(Gemini CLI)
📊 Analysis Command
Deep dive into code operations — see exactly what your AI assistant did.
Flags
| Flag | Purpose |
|---|---|
| (none) | Interactive TUI dashboard over all sessions |
--path <FILE> |
Analyze a single JSONL/JSON conversation file (prints JSON) |
--table |
Static table with per-provider daily averages |
--output <FILE> |
Save results as pretty-printed JSON |
--by-provider |
Group rows by provider (claude / codex / copilot / gemini) as JSON |
--daily / --weekly / --monthly / --all |
Time range filter (see table above) |
See examples/ for sample inputs and matching JSON outputs for all four providers.
Basic Usage
# Interactive dashboard for all sessions (default)
vct analysis
# Static table output with daily averages
vct analysis --table
# Analyze a single conversation file → stdout JSON
vct analysis --path ~/.claude/projects/session.jsonl
# Save results to JSON
vct analysis --output report.json
# Group results by provider
vct analysis --by-provider
# Save grouped results
vct analysis --by-provider --output grouped_report.json
# Combine time range with output format
vct analysis --weekly
vct analysis --table --monthly
vct analysis --by-provider --daily --output today.json
Preview: Interactive Dashboard (vct analysis)
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ 🔍 Analysis Statistics │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ Model Edit Lines Read Lines Write Lines Bash Edit Read Write │
│ │
│ claude-haiku-4-5-20251001 0 0 0 43 0 59 0 │
│ claude-opus-4-6 1,280 13,264 1,575 82 146 209 62 │
│ gemini-3.1-pro-preview 0 0 0 0 0 0 0 │
│ TOTAL 1,280 13,264 1,575 125 146 268 62 │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ Provider EditL/Day ReadL/Day WriteL/Day Bash/Day Edit/Day Read/Day Write/Day Days │
│ │
│ 🤖 Claude Code 426.7 4421.3 525.0 41.7 48.7 89.3 20.7 3 │
│ ✨ Gemini 0 0 0 0.0 0.0 0.0 0.0 1 │
│ ⭐ All Providers 426.7 4421.3 525.0 41.7 48.7 89.3 20.7 3 │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ 📝 Lines: 16,119 | 🔧 Tools: 601 | 📊 Models: 3 | 🧠 Memory: 41.2 MB │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
Press 'q', 'Esc', 'Ctrl+C' to quit | Press 'r' to refresh
🔄 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
vct update --check
# Interactive update with confirmation
vct update
# Force update — always downloads latest version
vct update --force
Preview (vct update --check)
📋 Current version: v0.5.10
🔍 Checking for latest release...
✅ Latest version: v0.5.10 — you are up to date!
🏷️ Version Command
Report the embedded build metadata (binary version, Rust toolchain, Cargo version):
vct version # Pretty table
vct version --text # One-field-per-line, script-friendly
vct version --json # Machine-readable JSON
The binary version is produced at build time by build.rs from git describe, so development builds include commit count + short SHA + dirty suffix when applicable.
💡 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
docker build -f docker/Dockerfile --target prod -t vibe_coding_tracker:latest .
# Run with your sessions
docker run --rm \
-v ~/.claude:/root/.claude \
-v ~/.codex:/root/.codex \
-v ~/.copilot:/root/.copilot \
-v ~/.gemini:/root/.gemini \
vibe_coding_tracker:latest usage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vibe_coding_tracker-0.8.0.tar.gz.
File metadata
- Download URL: vibe_coding_tracker-0.8.0.tar.gz
- Upload date:
- Size: 20.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cde27c6cc46495c98449fbdd9be328722d4f9cb599eb10ce089b08fdac14a3b
|
|
| MD5 |
7f4381d21bfe4adad72227508c2fbdb2
|
|
| BLAKE2b-256 |
3ee7101313f3018bc644e2c022b4cbdd40404246433a87101d57dd5e8c7c719c
|
File details
Details for the file vibe_coding_tracker-0.8.0-py3-none-any.whl.
File metadata
- Download URL: vibe_coding_tracker-0.8.0-py3-none-any.whl
- Upload date:
- Size: 20.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59d7d6dfd2efe1efea48db05c386b43d7c52a6daabf3e7140049e51740dae917
|
|
| MD5 |
96d67ad1a61f37058845268fc5de77d1
|
|
| BLAKE2b-256 |
8595ce5087272953a1aa3d3349542edb618ef6a59a0e454c63118d76ffc05bf7
|