Analytics Dashboard
The Analytics Dashboard provides comprehensive real-time monitoring of your Claude Code usage, conversations, and performance metrics.Launch Analytics
Basic Launch
Start the analytics dashboard:- Starts web server on
http://localhost:3333 - Opens dashboard in your default browser
- Begins real-time monitoring
With Remote Access
Enable Cloudflare Tunnel for remote access:Specific Views
Open to specific dashboard pages:Dashboard Features
Overview Page
The main dashboard shows: Real-time Statistics:- Total conversations
- Token usage (input/output)
- Cache usage (creation/read)
- Active projects count
- Last activity timestamp
- Conversation list with timestamps
- Project names and paths
- Message counts
- Token usage per conversation
- Conversation states (active/completed)
- Visual representation of daily activity
- Hour-by-hour usage patterns
- Peak usage times
- Activity trends
Agents Analytics
Dedicated agent performance tracking:- Agent usage frequency
- Average tokens per agent
- Success rates
- Response times
- Popular agents
- Most used agents
- Agent effectiveness
- Usage patterns
- Recommendations
Session Data
Max plan usage tracking: Session Limits:- Current session count
- 5-hour rolling window
- Remaining messages
- Reset time
- Session history
- Usage patterns
- Peak periods
Conversation Details
Detailed conversation breakdown: For each conversation:- Project name and path
- Creation timestamp
- Last update time
- Message count
- Total tokens (input/output)
- Cache tokens (creation/read)
- Tool usage statistics
- Conversation state
Token Analytics
Input Tokens:- Total input tokens
- Average per message
- Trends over time
- Total output tokens
- Average per response
- Generation patterns
- Cache creation tokens
- Cache read tokens
- Cache efficiency
Project Analytics
Active Projects:- Project names
- Last activity
- Conversation counts
- Token usage per project
- Project status
- Most active projects
- Token consumption by project
- Project trends
Year in Review 2025
Comprehensive annual usage statistics:Metrics Included
Usage Stats:- Total conversations
- Total messages
- Total tokens
- Active days
- Average daily usage
- Most used agents
- Most active projects
- Busiest days
- Peak hours
- Milestones reached
- Productivity metrics
- Growth trends
- Usage timeline
- Activity calendar
- Token distribution
- Agent usage breakdown
Real-Time Updates
The dashboard updates automatically: WebSocket Connection:- Real-time data streaming
- Instant conversation updates
- Live token counting
- State change notifications
- Conversations: Live updates
- Statistics: Every 5 seconds
- Charts: Every 10 seconds
Analytics Options
Launch analytics dashboard
Enable Cloudflare Tunnel for remote access (use with —analytics)
Launch analytics dashboard with agents view
Launch Year in Review 2025 dashboard
Enable verbose logging for debugging
Configuration
Port Configuration
Default port:3333
To use a different port, modify environment:
Data Sources
Analytics reads from:Cache Configuration
Data caching for performance:- Cache duration: 60 seconds
- Refresh interval: 5 seconds
- Memory threshold: 300 MB
Performance Monitoring
System Resources
The dashboard monitors: Memory Usage:- Current memory consumption
- Memory threshold (300 MB)
- Garbage collection triggers
- Data load times
- Query performance
- WebSocket latency
Optimization
For large conversation histories:-
Cleanup old conversations:
-
Limit conversation loading:
- Dashboard loads last 1000 conversations
- Older conversations available on demand
-
Use cache effectively:
- Data cached for 60 seconds
- Reduces file system reads
Cloudflare Tunnel
Setup Remote Access
Enable public URL:Security Considerations
Public URLs:- URLs are temporary (expire after session)
- No authentication by default
- Anyone with URL can access
- Use only when needed
- Share URL privately
- Close tunnel after use
- Don’t share URLs publicly
Mobile Access
Access from mobile devices:-
Launch with tunnel:
- Scan QR code displayed in terminal
- Or open generated URL in mobile browser
Chats Mobile Interface
Mobile-optimized conversation browser:- Touch-optimized UI
- Quick conversation access
- Search and filter
- Swipe gestures
- Responsive design
Plugin Dashboard
Manage Claude Code plugins:- Browse plugin marketplace
- View installed plugins
- Manage permissions
- Enable/disable plugins
Skills Dashboard
Explore Claude Code skills:- View installed skills
- Explore skill catalog
- Skill documentation
- Installation status
Teams Dashboard
Multi-agent collaboration review:- Team session history
- Agent collaboration metrics
- Team performance
- Collaboration patterns
Use Cases
1. Daily Monitoring
2. Team Reporting
3. Performance Optimization
4. Mobile Monitoring
5. Agent Effectiveness
Troubleshooting
Dashboard Won’t Open
Check port availability:No Data Displayed
Verify Claude directory:Slow Performance
Clear old conversations:src/analytics.js (for advanced users).
Tunnel Connection Failed
Check network:WebSocket Disconnects
Check firewall:- Allow WebSocket connections on port 3333
- Disable firewall temporarily to test
Advanced Usage
Custom Analytics
Extend with custom queries:Export Analytics Data
Integration with Monitoring Tools
Forward metrics to external tools:Next Steps
- Health Check - Verify Claude Code setup
- CLI Flags Reference - Complete flags documentation
- Configuration Guide - Settings and config files
- Environment Variables - Configure analytics