Skip to main content

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:
This:
  1. Starts web server on http://localhost:3333
  2. Opens dashboard in your default browser
  3. Begins real-time monitoring

With Remote Access

Enable Cloudflare Tunnel for remote access:
Generates a public URL like:
Access from any device with internet connection.

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
Recent Conversations:
  • Conversation list with timestamps
  • Project names and paths
  • Message counts
  • Token usage per conversation
  • Conversation states (active/completed)
Activity Heatmap:
  • Visual representation of daily activity
  • Hour-by-hour usage patterns
  • Peak usage times
  • Activity trends

Agents Analytics

Dedicated agent performance tracking:
Metrics:
  • Agent usage frequency
  • Average tokens per agent
  • Success rates
  • Response times
  • Popular agents
Analysis:
  • 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
Historical Data:
  • 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
Output Tokens:
  • Total output tokens
  • Average per response
  • Generation patterns
Cache Tokens:
  • Cache creation tokens
  • Cache read tokens
  • Cache efficiency

Project Analytics

Active Projects:
  • Project names
  • Last activity
  • Conversation counts
  • Token usage per project
  • Project status
Project Insights:
  • 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
Top Lists:
  • Most used agents
  • Most active projects
  • Busiest days
  • Peak hours
Achievements:
  • Milestones reached
  • Productivity metrics
  • Growth trends
Visualizations:
  • 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
Refresh Intervals:
  • Conversations: Live updates
  • Statistics: Every 5 seconds
  • Charts: Every 10 seconds

Analytics Options

boolean
Launch analytics dashboard
boolean
Enable Cloudflare Tunnel for remote access (use with —analytics)
boolean
Launch analytics dashboard with agents view
boolean
Launch Year in Review 2025 dashboard
boolean
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
Performance Metrics:
  • Data load times
  • Query performance
  • WebSocket latency

Optimization

For large conversation histories:
  1. Cleanup old conversations:
  2. Limit conversation loading:
    • Dashboard loads last 1000 conversations
    • Older conversations available on demand
  3. Use cache effectively:
    • Data cached for 60 seconds
    • Reduces file system reads

Cloudflare Tunnel

Setup Remote Access

Enable public URL:
Output:

Security Considerations

Public URLs:
  • URLs are temporary (expire after session)
  • No authentication by default
  • Anyone with URL can access
Best Practices:
  1. Use only when needed
  2. Share URL privately
  3. Close tunnel after use
  4. Don’t share URLs publicly

Mobile Access

Access from mobile devices:
  1. Launch with tunnel:
  2. Scan QR code displayed in terminal
  3. Or open generated URL in mobile browser

Chats Mobile Interface

Mobile-optimized conversation browser:
Features:
  • Touch-optimized UI
  • Quick conversation access
  • Search and filter
  • Swipe gestures
  • Responsive design
With Remote Access:

Plugin Dashboard

Manage Claude Code plugins:
Features:
  • Browse plugin marketplace
  • View installed plugins
  • Manage permissions
  • Enable/disable plugins

Skills Dashboard

Explore Claude Code skills:
Features:
  • View installed skills
  • Explore skill catalog
  • Skill documentation
  • Installation status

Teams Dashboard

Multi-agent collaboration review:
Features:
  • 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:
Kill conflicting process:
Use different port:

No Data Displayed

Verify Claude directory:
Check permissions:
Verify conversations exist:

Slow Performance

Clear old conversations:
Increase memory threshold: Edit src/analytics.js (for advanced users).

Tunnel Connection Failed

Check network:
Retry tunnel:
Use without tunnel:

WebSocket Disconnects

Check firewall:
  • Allow WebSocket connections on port 3333
  • Disable firewall temporarily to test
Restart dashboard:

Advanced Usage

Custom Analytics

Extend with custom queries:

Export Analytics Data

Integration with Monitoring Tools

Forward metrics to external tools:

Next Steps