ccdash
agent
Uyari
Health Uyari
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 14 GitHub stars
Code Gecti
- Code scan — Scanned 1 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Lightweight TUI dashboard for Claude Code token usage, agent sessions, and system resources. Go.
README.md
📊 ccdash
Version: 0.6.28
A lightweight TUI (Terminal User Interface) dashboard for monitoring system resources, Claude Code token usage, and tmux sessions.
🎯 What is ccdash?
ccdash is a real-time dashboard application that provides:
- 🖥️ System Resource Monitoring - Track CPU usage, memory consumption, disk space, and network activity
- 🤖 Claude Code Token Tracking - Monitor token usage across your Claude Code projects by reading from
~/.claude/projects - 🪟 Tmux Session Management - View active tmux sessions and their status (optional, works without tmux)
All in a beautiful, terminal-based interface built with Bubble Tea.
✨ Key Features
- ⚡ Real-time system metrics display
- 📈 Token usage analytics from Claude Code projects
- 🔄 Tmux session monitoring (when available)
- 🪶 Lightweight and fast - minimal system overhead
- 🎨 Beautiful TUI with clean, organized layout
- ⌨️ Keyboard-driven navigation
- 📦 No external dependencies beyond Go and optional tmux
- 🔄 Self-update - Press
uto update when new version available - 📅 Lookback picker - Press
lto change time window for token tracking - 💰 Per-model cost tracking - Color-coded breakdown by Claude model
- 💾 SQLite caching - Queryable
.ccdash/tokens.dbwith DuckDB/SQLite support
📋 Requirements
- Go 1.21 or higher 🔧
~/.claude/projectsdirectory (for Claude Code token tracking) 📂- tmux (optional, for session monitoring features) 🪟
🚀 Installation
Pre-built Binary (Recommended)
Download the latest release from the releases page:
# Download the latest release (Linux example)
curl -LO https://github.com/jedarden/ccdash/releases/download/v0.1.4/ccdash-linux-amd64
curl -LO https://github.com/jedarden/ccdash/releases/download/v0.1.4/ccdash-linux-amd64.sha256
# Verify the checksum
sha256sum -c ccdash-linux-amd64.sha256
# Make it executable
chmod +x ccdash-linux-amd64
# Move to your PATH (optional)
sudo mv ccdash-linux-amd64 /usr/local/bin/ccdash
# Run it
ccdash
Using Go Install
go install github.com/jedarden/ccdash/cmd/ccdash@latest
From Source
# Clone the repository
git clone https://github.com/jedarden/ccdash.git
cd ccdash
# Build and install
make install
Manual Build
# Build the binary
make build
# The binary will be available at ./bin/ccdash
./bin/ccdash
💻 Usage
Simply run the application:
ccdash
⌨️ Keyboard Controls
| Key | Action |
|---|---|
q or Ctrl+C |
Quit the application |
r |
Refresh metrics immediately |
h |
Cycle through help mode (explains each panel) |
l |
Open lookback time picker for token tracking |
u |
Update to latest version (when available) |
🎨 Display Features
- Smart Layout: Automatically adjusts to terminal size
- Ultra-wide (≥240 cols): 3 panels side-by-side
- Wide (120-239 cols): 2 panels top, 1 bottom
- Narrow (<120 cols): Panels stacked vertically
- Tmux Status Indicators:
- 🟢 WORKING - Claude Code actively processing
- 🔴 READY - Waiting for user input at prompt
- 🟡 ACTIVE - User actively in session
- ⚠️ ERROR - Error state detected
- Help Mode: Press
hto cycle through detailed explanations for each panel - Lookback Picker: Press
lto select time window- Presets: Monday 9am, Today, 24h, 7d, 30d, All time
- Custom: Set specific date/time with arrow keys
- Self-Update: Status bar shows when updates are available
- Press
uto download and apply update automatically
- Press
- Per-Model Costs: Token panel shows breakdown by model
- Color-coded: Opus (red), Sonnet (cyan), Haiku (green)
- Sorted by cost (highest first)
🛠️ Development
Building
make build
Running Tests
make test
Installing Dependencies
make deps
Cleaning Build Artifacts
make clean
📁 Project Structure
ccdash/
├── cmd/ccdash/ # Main application entry point
├── internal/
│ ├── metrics/ # Metrics collectors (system, tokens, tmux)
│ └── ui/ # Bubble Tea UI components
├── Makefile # Build automation
└── README.md # This file
🤝 Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
📄 License
MIT License - see LICENSE file for details
🙏 Acknowledgments
Built with:
- Bubble Tea - TUI framework
- Lipgloss - Terminal styling
- gopsutil - System metrics collection
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi