Skip to content

DIZ-admin/claude-dashboard

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

52 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

claude-dashboard

License Stars

Comprehensive status line plugin for Claude Code with context usage, API rate limits, cost tracking, and modular widget system.

Demo

Demo

Features

  • πŸ€– Model Display: Shows current model (Opus, Sonnet, Haiku)
  • πŸ“Š Progress Bar: Color-coded context usage (green β†’ yellow β†’ red)
  • πŸ“ˆ Token Count: Current/total tokens in K/M format
  • πŸ’° Cost Tracking: Cumulative session cost in USD
  • ⏱️ Rate Limits: 5h session limit with reset countdown, 7d usage (supports day units: 3d2h)
  • πŸ“ Project Info: Directory name with git branch (* for uncommitted changes)
  • πŸ”§ Config Counts: CLAUDE.md, rules, MCPs, hooks counts
  • βš™οΈ Tool Activity: Running/completed tools tracking
  • ⏱️ Session Duration: Session time tracking
  • πŸ€– Agent Status: Subagent progress tracking
  • βœ“ Todo Progress: Task completion rate
  • πŸ”₯ Burn Rate: Token consumption per minute
  • πŸ“¦ Cache Hit: Cache hit rate percentage
  • ⏳ Depletion Time: Estimated time to rate limit
  • πŸ”· Codex Usage: OpenAI Codex CLI usage (model, 5h/7d limits) - auto-detected
  • 🌐 i18n: English and Korean support (auto-detect)
  • πŸ“ Multi-line: Compact (1), Normal (2), Detailed (4) line modes

Coming Soon

  • 🎨 Color Themes: Choose from multiple color themes (pastel, classic, high-contrast)

Output Examples

Compact (1 line) - Default:

Compact

Normal (2 lines):

Normal

Detailed (4 lines):

Detailed

* after branch name indicates uncommitted changes in git

Installation

From Plugin Marketplace

/plugin marketplace add uppinote20/claude-dashboard
/plugin install claude-dashboard
/claude-dashboard:setup

Manual Installation

  1. Clone the repository:
git clone https://github.com/uppinote20/claude-dashboard.git ~/.claude/plugins/claude-dashboard
  1. Run setup:
/claude-dashboard:setup

Configuration

Interactive Mode

Run /claude-dashboard:setup without arguments to use interactive mode:

/claude-dashboard:setup
β†’ Display mode? [compact/normal/detailed/custom]
β†’ (For custom: select widgets for each line)

Note: Interactive mode is best for preset selection (compact/normal/detailed). For custom mode, widget order follows the option list order, and only 4 widgets can be shown per question. For full control, use Direct Mode or edit the JSON file.

Direct Mode

# Preset modes
/claude-dashboard:setup compact             # 1 line (default)
/claude-dashboard:setup normal en pro       # 2 lines, English, Pro plan
/claude-dashboard:setup detailed ko max     # 3 lines, Korean, Max plan

# Custom mode: full control over widget order and line composition
# Format: "widget1,widget2,...|widget3,widget4,..." (| separates lines)
/claude-dashboard:setup custom auto max "model,context,cost|projectInfo,todoProgress"
/claude-dashboard:setup custom auto max "model,projectInfo,cost,rateLimit5h"  # 1 line, custom order
/claude-dashboard:setup custom auto max "context,model|todoProgress,sessionDuration|configCounts"  # 3 lines

Available Widgets

Widget Description
model Model name with emoji
context Progress bar, percentage, tokens
cost Session cost in USD
rateLimit5h 5-hour rate limit
rateLimit7d 7-day rate limit (Max only)
rateLimit7dSonnet 7-day Sonnet limit (Max only)
projectInfo Directory name + git branch (* if dirty)
configCounts CLAUDE.md, rules, MCPs, hooks
sessionDuration Session duration
toolActivity Running/completed tools
agentStatus Subagent progress
todoProgress Todo completion rate
burnRate Token consumption per minute
cacheHit Cache hit rate percentage
depletionTime Estimated time to rate limit (approx)ΒΉ
codexUsage OpenAI Codex CLI usage (auto-hide if not installed)

ΒΉ Depletion time approximation: Assumes all current utilization came from this session. May be inaccurate if session started with pre-existing usage or multiple concurrent sessions are running. Estimate improves as session runs longer.

Display Mode Presets

Mode Lines Line 1 Line 2 Line 3 Line 4
compact 1 model, context, cost, rateLimit5h, rateLimit7d, rateLimit7dSonnet - - -
normal 2 (same as compact) projectInfo, sessionDuration, burnRate, todoProgress - -
detailed 4 (same as compact) projectInfo, sessionDuration, burnRate, depletionTime, todoProgress configCounts, toolActivity, agentStatus, cacheHit codexUsageΒ²

Β² codexUsage: Auto-hides if Codex CLI is not installed (~/.codex/auth.json)

Configuration File

Settings are stored in ~/.claude/claude-dashboard.local.json:

{
  "language": "auto",
  "plan": "max",
  "displayMode": "compact",
  "cache": {
    "ttlSeconds": 60
  }
}

Custom configuration:

{
  "language": "auto",
  "plan": "max",
  "displayMode": "custom",
  "lines": [
    ["model", "context", "cost", "rateLimit5h"],
    ["projectInfo", "todoProgress"]
  ],
  "cache": {
    "ttlSeconds": 60
  }
}

Requirements

  • Claude Code v1.0.80+
  • Node.js 18+

Color Legend

Color Usage % Meaning
🟒 Green 0-50% Safe
🟑 Yellow 51-80% Warning
πŸ”΄ Red 81-100% Critical

Plan Differences

Feature Max Pro
5h rate limit βœ… βœ…
Reset countdown βœ… βœ…
7d all models βœ… ❌

Troubleshooting

Status line not showing

  1. Check if plugin is installed: /plugin list
  2. Verify settings.json has statusLine config
  3. Restart Claude Code

Rate limits showing ⚠️

  • API token may be expired - re-login to Claude Code
  • Network issue - check internet connection
  • API rate limited - wait 60 seconds for cache refresh

Wrong language

Run setup with explicit language:

/claude-dashboard:setup normal ko  # Korean
/claude-dashboard:setup normal en  # English

Cache Issues

API response cache is stored in ~/.cache/claude-dashboard/. To clear:

rm -rf ~/.cache/claude-dashboard/

Cache files are automatically cleaned up after 1 hour.

Development

# Install dependencies
npm install

# Build
npm run build

# Test locally
echo '{"model":{"display_name":"Opus"},"workspace":{"current_dir":"/tmp"},"context_window":{"context_window_size":200000,"current_usage":{"input_tokens":50000,"output_tokens":0,"cache_creation_input_tokens":0,"cache_read_input_tokens":0}},"cost":{"total_cost_usd":0.5}}' | node dist/index.js

License

MIT

About

Comprehensive status line plugin for Claude Code with context usage, API rate limits, and cost tracking

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 96.4%
  • JavaScript 3.6%