{"repo":"backstabslash/goccc","free":true,"listed":false,"github":"https://github.com/backstabslash/goccc","clone":"git clone https://github.com/backstabslash/goccc.git","description":"Fast, zero-dependency cost calculator and customizable statusline for Claude Code. Breakdowns by model, day, project, and branch. Lightweight, single binary, no runtime needed.","language":"Go","stars":34,"topics":["anthropic","claude","claude-code","cli","cost-calculator","developer-tools","golang","usage-tracker","api-costs","statusline"],"license":"MIT","category":"cli-tools","readme_excerpt":"A fast, zero-dependency CLI cost calculator, tool analytics, and customizable statusline for Claude Code. Breakdowns by model, day, project, and branch. Single binary, no runtime needed. Table of Contents - Installation - Usage - Claude Code Statusline - Session Exit Hook - Tool & Skill Analytics - Configuration - Flags - Preserving Log History Installation Homebrew (macOS / Linux) Go install Pre-built binaries Available on the releases page for macOS, Linux, and Windows (amd64 / arm64). From source Usage Claude Code Statusline goccc can serve as a Claude Code statusline — a fully customizable, live cost dashboard right in your terminal prompt. - 💸 Session cost — parsed from the current session's JSONL files using goccc's pricing table - 💰 Today's total — aggregated across all sessions today (shown only when higher than session cost) - 💭 Context % — context window usage percentage - 🔋 5h / 7d window — remaining percentage of the usage window with elapsed time (subscription users only; hidden for API billing). Emoji switches to 🪫 below 25% - 🤖 Model — current model The mcp segment (active MCP servers) is available but off by default — add it to segments to enable it. Values are color-coded: cost and context turn yellow → red as they increase; rate limit windows are inverted — yellow below 50%, red below 25% remaining. Setup Add to /.claude/settings.json : Works with any install method. To run without installing: go run github.com/backstabslash/goccc@latest -statusline . ","default_branch":null,"files":null,"tree":[],"storefront":"/r/backstabslash","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/backstabslash/goccc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}