ccbar
| Entity Passport | |
| Registry ID | gh-tool--narcooo--ccbar |
| License | MIT |
| Provider | github |
Cite this tool
Academic & Research Attribution
@misc{gh_tool__narcooo__ccbar,
author = {Narcooo},
title = {ccbar Tool},
year = {2026},
howpublished = {\url{https://free2aitools.com/tool/gh-tool--narcooo--ccbar}},
note = {Accessed via Free2AITools Knowledge Fortress}
} π¬Technical Deep Dive
Full Specifications [+]βΎ
Quick Commands
pip install ccbar βοΈ Nexus Index V2.0
π¬ Index Insight
FNI V2.0 for ccbar: Semantic (S:50), Authority (A:0), Popularity (P:44), Recency (R:95), Quality (Q:50).
Verification Authority
π Specs
- Language
- Python
- License
- MIT
- Version
- 1.0.0
Usage documentation not yet indexed for this tool.
Technical Documentation
Vibe coding is no longer just for fun. Know what it costs.
Real-time cost tracking and quota monitoring for Claude Code. Zero dependencies.
Why ccbar
You're burning through API credits or a $200/month Max subscription β but Claude Code doesn't tell you how fast, which project, or what it'll cost by end of day. ccbar fills that gap.
It works with both billing models: whether you're on the API (pay-per-token) or a Pro/Max subscription (quota-based), ccbar tracks your spend in real time. No guessing, no surprises at the end of the month.
Install
Public GitHub marketplace:
/plugin marketplace add https://github.com/Narcooo/ccbar
/plugin install ccbar@narcooo
/ccbar:setup
This is the current public install path.
Local development marketplace:
For local development or pre-listing installs, add the dedicated development marketplace manifest from a filesystem path. Use .claude-plugin/dev-marketplace/marketplace.json so local work does not clobber the public narcooo marketplace identity.
/plugin marketplace add /absolute/path/to/ccbar/.claude-plugin/dev-marketplace/marketplace.json
/plugin install ccbar@ccbar-dev
/ccbar:setup
ccbar installs as a native Claude Code plugin. setup wires the plugin into statusLine.command, and the bundled SessionStart hook repairs the wiring if it drifts later.
For local debugging only, there is also a thin Python wrapper around the built Node CLI. This is not the primary install path and still requires the local Node build output.
npm run build
python -m ccbar doctor
What you get
Row 1: 5h quota bar + countdown Β· today tokens + cost βΊ proj tokens β»cache/hit% cost Β· week cost βΊ proj tokens cost β month tokens cost βΊ proj cost
Row 2: 7d quota bar + countdown Β· session cost + $/h + βprojection + duration + ctx% + lines Β· total cost βΊ proj tokens β»cache cost + path
Terminal too narrow? ccbar switches to a compact 2x2 layout first, then drops trailing columns only as a last resort. Content within columns is never truncated.
Lightweight by design
ccbar is now a native Claude Code plugin built on Node.js/TypeScript. There is no PyPI bootstrap layer, no extra daemon requirement for correctness, and no separate ccbar --install step. It reads the JSONL logs Claude Code already writes and renders directly through Claude's plugin-driven statusline flow.
| ccbar | typical alternatives | |
|---|---|---|
| Runtime path | Native Claude plugin | external script + manual wiring |
| Setup | /plugin install + /ccbar:setup |
package install + shell glue |
| Background process | None required | Persistent daemon |
| Config | plugin config JSON + slash commands | YAML + env + dashboard setup |
Accurate to the cent
Most tools estimate costs with a flat rate. That's wrong β Opus output is 19x more expensive than Haiku. ccbar gets it right:
- Per-model pricing β reads the model ID from every message. Opus, Sonnet, Haiku each priced correctly.
- Streaming dedup β each API call writes 2β7 JSONL entries. ccbar deduplicates by
message.id. Every message counted exactly once. - Cache separation β cache reads cost 10% of fresh input. ccbar tracks them separately and shows β»hit rate per project.
- Cross-session history β session cost resets when you restart. Your bill doesn't. ccbar scans all JSONL β today, this week, this month, per project.
Full-spectrum monitoring
| Metric | What it tells you |
|---|---|
| 5h / 7d quota bars | Greenβyellowβred gradient. Know when you'll hit the limit before you hit it. |
Burn rate $8.50/h |
How fast this session is spending. |
Projection β$18 |
Where you'll land by quota reset at the current pace. |
Per-project βΊ proj β»56M/97% $124 |
Which project is eating your budget. Cache hit rate included. |
Lines changed +250/-40 |
Code output this session β are you getting value for the spend? |
| Context % | How full the context window is. Helps you decide when to compact. |
| Today / Week / Month | Running totals so you always know where the bill stands. |
API & Subscription β both covered
API users β ccbar calculates exact costs from per-model token pricing. You see dollars spent per session, per project, per day.
Pro / Max subscribers β ccbar reads your OAuth quota via the Anthropic API. The 5-hour and 7-day progress bars show exactly how much runway you have left, with countdowns to reset.
Either way, you get a single statusline that tells the full story.
Configure
/ccbar:configure
/ccbar:doctor
Config reference
{
"compactRows": [["5h", "today"], ["7d", "total"]],
"compactBreakpoint": 113,
"columns": null
}
| Field | Description |
|---|---|
rows |
Fixed wide layout override β items: 5h 7d today history session model total |
compactRows |
Narrow-layout override. Omit it to use the built-in compact layout. |
compactBreakpoint |
Width threshold that switches from wide to compact layout. |
columns |
Override detected width (null = auto-detect, with a safe fallback when no width signal is available) |
The plugin stores config under ~/.claude/plugins/ccbar/config.json.
How it works
stdin JSON β plugin runtime β scan ~/.claude/projects/**/*.jsonl
β dedup by message.id β per-model pricing
β adaptive layout β stdout
Plugin commands:
/ccbar:setupwiresstatusLine.command/ccbar:configureedits plugin config/ccbar:doctorchecks plugin cache and statusline wiring
Uninstall
/plugin remove ccbar
MIT
Social Proof
AI Summary: Based on GitHub metadata. Not a recommendation.
π‘οΈ Tool Transparency Report
Technical metadata sourced from upstream repositories.
π Identity & Source
- id
- gh-tool--narcooo--ccbar
- slug
- narcooo--ccbar
- source
- github
- author
- Narcooo
- license
- MIT
- tags
- claude, claude-code, cost-tracking, developer-tools, statusline, token-tracking, ai-tools, claude-usage, monitoring, statusbar, usage-tracking, typescript
βοΈ Technical Specs
- architecture
- null
- params billions
- null
- context length
- null
- pipeline tag
- other
π Engagement & Metrics
- downloads
- 0
- stars
- 21
- forks
- 0
- github stars
- 21
Data indexed from public sources. Updated daily.