npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ccusage-live

v1.0.7

Published

Enhanced Claude Code usage analysis tool with live team monitoring and collaboration features

Readme

Analyze your Claude Code usage with powerful team collaboration features — now with live monitoring, team management, and real-time synchronization!

Built on top of the excellent ccusage by @ryoppippi, this enhanced version adds team collaboration, live monitoring, and advanced management features.

Installation

Global Installation (Recommended)

Install ccusage-live globally to use it anywhere:

# Using npm
npm install -g ccusage-live

# Using bun (faster)
bun install -g ccusage-live

# Using pnpm
pnpm install -g ccusage-live

Quick Usage Without Installation

You can also run it directly without installation:

# Using bunx (recommended for speed)
bunx ccusage-live

# Using npx
npx ccusage-live@latest

💡 Tip: We recommend using bun for faster installation and execution!

Usage

After installation, you can use either the full command name or the short alias:

# Using full command name
ccusage-live daily    # Daily token usage and costs
ccusage-live monthly  # Monthly aggregated report
ccusage-live session  # Usage by conversation session
ccusage-live blocks   # 5-hour billing windows

# Using short alias (convenient!)
ccul daily    # Same as ccusage-live daily
ccul monthly  # Same as ccusage-live monthly
ccul session  # Same as ccusage-live session
ccul blocks   # Same as ccusage-live blocks

# Team collaboration features
ccul team create "My Team"           # Create a new team
ccul team join <team-id>             # Join an existing team
ccul team list                       # List your teams
ccul team members <team-id>          # Show team members
ccul team sync                       # Sync usage to team database

# Live monitoring & real-time features
ccul blocks --active                 # Show active billing block with projections
ccul blocks --recent                 # Show recent blocks (last 3 days)
ccul blocks --live                   # Real-time usage dashboard (team mode)

# Advanced options
ccul daily --json                    # JSON output
ccul daily --mode calculate         # Force cost calculation
ccul monthly --since 2025-01-01     # Date filtering
ccul session --project myproject    # Filter by project

# MCP Server (for Claude Desktop integration)
ccul mcp                            # Start MCP server
ccul mcp --type http --port 8080    # HTTP MCP server

✨ Enhanced Features

🏢 Team Collaboration

  • 👥 Team Management: Create and manage teams with unique identifiers
  • 🔗 Easy Joining: Join teams using simple team codes
  • 👨‍👩‍👧‍👦 Member Management: View and manage team members
  • 📊 Centralized Analytics: Aggregate usage data across team members
  • 🔄 Real-time Sync: Automatic synchronization with team database
  • 🌐 Web Dashboard: Browser-based team management interface

📈 Live Monitoring & Real-time Features

  • ⏰ Active Block Tracking: Monitor current 5-hour billing window progress
  • 🚨 Smart Alerts: Configurable token threshold warnings
  • 📊 Real-time Dashboard: Live usage updates with burn rate calculations
  • 💰 Cost Projections: Predict costs based on current usage patterns
  • 🔄 Auto-refresh: Continuous monitoring with customizable intervals

📊 Core Usage Analytics

  • 📅 Daily Reports: Token usage and costs by date
  • 📆 Monthly Reports: Aggregated monthly statistics
  • 💬 Session Reports: Usage grouped by conversation sessions
  • ⏰ 5-Hour Blocks: Track Claude's billing window usage
  • 🤖 Model Tracking: Detailed breakdown by Claude model (Sonnet, Opus, etc.)
  • 📊 Cost Analysis: Precise USD cost tracking with multiple calculation modes

🛠️ Advanced Features

  • 🔌 MCP Integration: Built-in Model Context Protocol server for Claude Desktop
  • 📄 JSON Export: Structured data output for programmatic usage
  • 📅 Date Filtering: Flexible date range filtering
  • 🎨 Smart Display: Responsive tables with automatic compact mode
  • 🌐 Multi-directory Support: Handle multiple Claude installations
  • ⚡ High Performance: Optimized for speed with minimal bundle size

🔧 Configuration & Setup

  • 🔄 Pre-configured: Ready-to-use with included server settings
  • 🔧 Environment Variables: Flexible configuration options
  • 📝 Interactive Setup: Guided configuration wizard
  • 🔒 Secure: Built-in validation and error handling

🔧 Configuration

CCUsage Live comes pre-configured with team collaboration features. The package includes default server settings that work out of the box.

Environment Variables (Optional)

You can override the default configuration using environment variables:

# Supabase Configuration
export SUPABASE_URL="https://your-project.supabase.co"
export SUPABASE_ANON_KEY="your-anon-key"

# Feature Controls
export CCUSAGE_TEAM_MODE="true"      # Enable team features
export CCUSAGE_WEB_INTERFACE="true"  # Enable web dashboard
export CCUSAGE_MCP_SERVER="true"     # Enable MCP server

# Usage Analysis
export CLAUDE_CONFIG_DIR="/custom/path"  # Custom Claude data directory

Cost Calculation Modes

Control how costs are calculated:

  • --mode auto (default): Use pre-calculated costs when available
  • --mode calculate: Always calculate from tokens using model pricing
  • --mode display: Use only pre-calculated cost values

Team Setup

  1. Create a team: ccul team create "My Team"
  2. Share team ID: Give the team ID to your colleagues
  3. Join team: Others run ccul team join <team-id>
  4. Sync data: Run ccul team sync to upload usage data
  5. Monitor together: Use ccul blocks --live for real-time monitoring

🌐 Web Dashboard

CCUsage Live includes a web-based dashboard for team management:

# Start the web interface (usually runs on port 3000)
ccul web

# Or access via MCP server
ccul mcp --type http --port 8080

The web dashboard provides:

  • Team overview and member management
  • Real-time usage monitoring
  • Threshold configuration
  • Usage analytics and charts

📋 Requirements

  • Node.js: Version 20.19.4 or higher
  • Claude Code: Any version (supports both ~/.claude and ~/.config/claude)
  • Internet: Required for team features and cost calculations (offline mode available)

🚀 Development & Contributing

This package is based on the excellent ccusage by @ryoppippi, with enhanced team collaboration and live monitoring features.

For Publishers

If you're setting up this package for your team, run the configuration script before publishing:

# Configure your Supabase settings
node scripts/setup-config.js

# Build and publish
bun run build
npm publish

Building from Source

# Clone the repository
git clone https://github.com/Calderic/ccusage-live.git
cd ccusage-live

# Install dependencies
bun install

# Build the project
bun run build

# Run tests
bun run test

# Start development
bun run start daily

🙏 Acknowledgments

  • @ryoppippi - Creator of the original ccusage
  • Claude Code Community - For the excellent CLI tool and community support
  • All Contributors - Thanks to everyone who helped improve this tool

📄 License

MIT © Calderic