This project includes a Claude Code statusLine integration. To enable it:
-
Install dependencies:
npm install
-
Install globally (recommended):
npm install -g . -
Configure Claude Code by editing
~/.claude/settings.json:{ "statusLine": { "type": "command", "command": "claude-statusbar", "padding": 0 } } -
Restart Claude Code to see the usage status bar at the bottom.
To run the web interface:
npm run devThis will start the Next.js development server on http://localhost:3000
This is a dual-purpose project that provides:
- Claude Code Status Bar: CLI tool for real-time usage monitoring in Claude Code
- Web Dashboard: Next.js app with detailed usage visualization
- Real-time token tracking and cost calculation
- Server Actions with
use serverdirective - React's
useFormStatehook for state management - Color-coded usage indicators
- Burn rate and time remaining estimates
bin/statusline.js- Main CLI script for Claude Codebin/statusline-advanced.js- Advanced version with format options
app/actions/usage.ts- Server actions usinguse serverapp/components/StatusBar.tsx- Client component usinguseFormStateapp/page.tsx- Main page with server-side data fetching
The advanced statusline supports options:
--emoji- Add emoji indicators--compact- Compact format--format=ccusage- ccusage-style format--no-color- Disable ANSI colors
Example in settings.json:
{
"statusLine": {
"type": "command",
"command": "claude-statusbar --emoji --format=ccusage",
"padding": 0
}
}