Claude Code Dashboard

August 19, 2025 · View on GitHub

A cyberpunk-themed real-time monitoring dashboard for Claude Code CLI with automatic session tracking and local data storage.

Version Next.js React TypeScript

Features

Real-time Monitoring

  • Live Process Tracking: Detects and monitors active Claude Code sessions
  • Performance Metrics: CPU usage, memory consumption, response times
  • Token Analytics: Track input/output tokens and estimated costs
  • Command History: View recent commands with success rates

Data Management

  • Local Storage: All data saved to .claude-dashboard/ directory
  • Automatic Validation: Built-in data validation and cleanup
  • Export Options: Export sessions as JSON or human-readable TXT
  • Historical Analysis: 30-day metric retention with trend analysis

User Interface

  • Cyberpunk Theme: Dark mode interface with orange accents
  • Real-time Updates: Server-sent events for live data streaming
  • Responsive Design: Works on desktop and mobile devices
  • Intuitive Navigation: Clean layout matching Claude Code aesthetics

Prerequisites

  • Node.js 18+ and npm
  • Claude Code CLI (optional - dashboard works without it)
  • Windows, macOS, or Linux operating system

Installation

  1. Clone the repository
git clone https://github.com/yourusername/claude-code-dashboard.git
cd claude-code-dashboard
  1. Install dependencies
npm install
  1. Configure settings (optional) Edit claude.config.json to customize paths and intervals

Quick Start

  1. Start the dashboard
npm run dev
  1. Open in browser
http://localhost:3000
  1. Start monitoring The dashboard automatically detects running Claude Code sessions

Data Storage

All session data is stored locally in .claude-dashboard/:

.claude-dashboard/
├── sessions.json        # Historical sessions (max 1000)
├── metrics.json         # Performance metrics (30 days)
└── current-session.json # Active session tracking

API Endpoints

EndpointDescription
/api/claude-statusGet current Claude Code status and processes
/api/claude-metricsFetch usage metrics and performance data
/api/socketServer-sent events for real-time updates

Dashboard Pages

  • Dashboard: Main overview with key metrics
  • Sessions: Active and historical Claude Code sessions
  • Metrics: Detailed performance and usage analytics
  • Analytics: Charts and trends visualization
  • Settings: Configuration and export options

Configuration

Configure via claude.config.json:

{
  "claude": {
    "paths": {
      "executable": "claude",
      "configDir": ".claude"
    },
    "monitoring": {
      "updateInterval": 2000,
      "retentionDays": 30
    }
  }
}

Development

Build for production

npm run build
npm start

Type checking

npm run type-check

Lint code

npm run lint

Troubleshooting

Claude Code not detected

  1. Ensure Claude Code CLI is in your system PATH
  2. Check dashboard has read permissions for Claude config
  3. Dashboard displays zero metrics when Claude Code isn't running

Data not updating

  1. Check .claude-dashboard/ directory exists
  2. Verify write permissions for data files
  3. Clear browser cache and refresh

High CPU usage

  1. Increase update interval in config
  2. Reduce retention period for metrics
  3. Clear old session data

Privacy & Security

  • No external connections: All data stored locally
  • No sensitive data: API keys and secrets are never stored
  • Read-only access: Only reads Claude Code files, never modifies
  • Local processing: All analytics computed on your machine

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a pull request

License

MIT License - see LICENSE file for details

Acknowledgments

  • Built for the Claude Code community
  • Inspired by cyberpunk aesthetics
  • Powered by Next.js and React

Support

For issues and questions:

  • Open an issue on GitHub
  • Check existing issues for solutions
  • Review CLAUDE.md for technical details

Version: 1.0.0 | Last Updated: December 2024