Back to browse
GitHub Repository

Fast, zero-dependency cost calculator and customizable statusline for Claude Code. Breakdowns by model, day, project, and branch. Lightweight, single binary, no runtime needed.

25 starsGo

Goccc – Claude Code cost tracker with MCP visibility

by backstabslash·Mar 5, 2026·1 point·0 comments

AI Analysis

●●SolidNiche GemShip It

Reads local JSONL logs, zero API calls, shows MCP status—faster than ccusage for Claude Code users.

Strengths
  • Zero dependencies Go binary—instant startup, no runtime overhead vs. competing tools.
  • MCP visibility in statusline solves blind spot: knowing which agents are active costs nothing extra.
  • Accurate per-model pricing including cache write tiers, long-context premiums, web search.
Weaknesses
  • Single-tool focus: only works with Claude Code, not broader LLM cost tracking (ChatGPT, Cursor, etc.).
  • Niche audience: depends on Claude Code adoption and MCP ecosystem maturity.
Target Audience

Claude Code users, developers using AI agents tracking token costs and MCP usage

Similar To

ccusage · TokenCounter

Post Description

I built this after ccusage started giving me inconsistent results and felt heavier than I needed.

goccc reads your Claude Code JSONL logs directly and calculates costs locally — no API calls, no setup beyond dropping a config line in settings.json.

The thing I hadn't seen elsewhere: it surfaces which MCPs are active in the statusline, so you can see at a glance what's connected.

goccc -d 7 -all # costs for the last week

goccc -monthly # monthly breakdown

goccc -project webapp # per-branch breakdown

It also works as a live statusline inside Claude Code showing session cost, daily total, context usage, active MCPs and current model.

Built in Go. Install via Homebrew or build from source.

Similar Projects