ccmon

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 6 Imported by: 0

README

ccmon

A terminal dashboard for monitoring Claude Code usage and costs in real time.

ccmon example

ccmon reads the JSONL session files that Claude Code writes to ~/.claude/projects/ and displays a live-updating TUI with:

  • Today's summary — total tokens, cost breakdown by model (Opus, Sonnet, Haiku), and prompt count
  • Burn rate — estimated cost/hour, tokens/hour, and messages/hour based on a rolling 30-minute window
  • Active sessions — highlights sessions that are currently running
  • Recent sessions — table of sessions with project, summary, model, tokens, cost, duration, and recency

Install

go install github.com/TheBabaYaga/ccmon@latest

Or build from source:

go build -o ccmon .

Usage

ccmon [flags]
Flag Default Description
-path auto-detect (~/.claude/projects/) Path to Claude Code projects directory
-refresh 2 Refresh interval in seconds

Press q or Ctrl+C to quit.

Requirements

  • Go 1.24+
  • Claude Code installed with at least one prior session

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL