Enhanced Claude Code usage analysis tool with live team monitoring and collaboration features
npm install ccusage-liveEnhanced Claude Code usage analysis tool with live team monitoring and collaboration features
> 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.
Install ccusage-live globally to use it anywhere:
``bashUsing npm
npm install -g ccusage-live
$3
You can also run it directly without installation:
`bash
Using bunx (recommended for speed)
bunx ccusage-liveUsing 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:
`bash
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 windowsUsing 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 blocksTeam collaboration features
ccul team create "My Team" # Create a new team
ccul team join # Join an existing team
ccul team list # List your teams
ccul team members # Show team members
ccul team sync # Sync usage to team databaseLive 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 projectMCP Server (for Claude Desktop integration)
ccul mcp # Start MCP server
ccul mcp --type http --port 8080 # HTTP MCP server
`โจ Enhanced Features
$3
- ๐ฅ 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
$3
- โฐ 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
$3
- ๐
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
$3
- ๐ 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
$3
- ๐ 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.
$3
You can override the default configuration using environment variables:
`bash
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 serverUsage Analysis
export CLAUDE_CONFIG_DIR="/custom/path" # Custom Claude data directory
`$3
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$3
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
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:
`bash
Start the web interface (usually runs on port 3000)
ccul webOr 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.
$3
If you're setting up this package for your team, run the configuration script before publishing:
`bash
Configure your Supabase settings
node scripts/setup-config.jsBuild and publish
bun run build
npm publish
`$3
`bash
Clone the repository
git clone https://github.com/Calderic/ccusage-live.git
cd ccusage-liveInstall dependencies
bun installBuild the project
bun run buildRun tests
bun run testStart development
bun run start daily
``- @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
---
Built with โค๏ธ for the Claude Code community
If you find this tool helpful, please โญ star the repository!