Claude Code status line
goccc
A single-binary cost calculator that can also drive a customizable Claude Code status line.
Install
brew install backstabslash/tap/gocccgit clone https://github.com/backstabslash/goccc.gitFrom the README
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. Customization The statusline is fully customizable via ~/.goccc.json. With no config, you get the default layout shown above. segments β ordered list of segments to display. Only listed segments are shown; segments with no data auto-hide. "|" forces a line break. The configβ¦
How status lines work
- A status line is a command Claude Code runs to draw the bar under the prompt. It gets the session as JSON on stdin (model, folder, cost, context) and prints one or more lines.
- Point the statusLine setting in ~/.claude/settings.json at it: { "statusLine": { "type": "command", "command": "<the command from the README>" } }.
- Or run /statusline inside Claude Code and describe what you want.
Details
- Repository
- backstabslash/goccc
- Type
- Status lines
- Language
- Go
- License
- MIT
- Last updated
- 11 October 2026
- Topics
- anthropicapi-costsclaudeclaude-codeclicost-calculatordeveloper-toolsgolangstatuslineusage-tracker
- Listed in
- awesome-claude-code
FAQ
What is goccc?
A single-binary cost calculator that can also drive a customizable Claude Code status line. It is a status line for Claude Code, from backstabslash/goccc on GitHub.
How do I install goccc?
Run brew install backstabslash/tap/goccc, then follow the setup in the README.
Is goccc popular?
backstabslash/goccc has 35 GitHub stars and 6 forks, and is included in 1 curated Claude Code list. It was last updated on 11 October 2026.
More status lines
waybar-ai-usage
55NihilDigit/waybar-ai-usage
Displays Claude Code and Codex usage in the Waybar status bar on Linux.
Ccburn
97JuanjoFuchs/ccburn
Claude Code usage limits β TUI with burn-up charts, compact mode for status bars, JSON for automation
claudeline
55fredrikaverpil/claudeline
A minimalist status line for Claude Code written in Go.
claude-code-statusline
52glauberlima/claude-code-statusline
A status line showing git state, context usage, model and cost with minimal setup.
claudia-statusline
37hagan/claudia-statusline
A Rust status line with compaction detection and SQLite-backed session tracking across consoles.
claude-ultimate-hud
49ai-younggle-man/claude-ultimate-hud
A status line combining rate limits, cost, project info, tool activity and todo progress.
Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.