peterxcli

peterxcli / ccost

Public

Turn local AI coding session logs into a searchable terminal UI with a cost lens.

10
0
80% credibility
Found May 26, 2026 at 10 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

ccost is a terminal application that helps developers search and browse through their local AI coding session history from tools like Codex and Claude Code. It displays sessions in a searchable list, allows sorting by estimated cost, and provides detailed breakdowns showing token usage and spending. Everything stays local on the user's computer - no data leaves the machine, no account needed, and no internet connection required after installation. The tool is particularly useful for developers who want to understand their AI coding expenses and find past work done with AI assistants.

How It Works

1
🔍 Hear about a cost-tracking tool

A developer hears from a colleague that there's a way to find old AI coding sessions and see which ones cost the most.

2
📥 Install with one command

They install it through Homebrew and it automatically appears ready to run on their computer.

3
🚀 Browse their session history instantly

The app opens and immediately shows a list of all their past AI coding sessions, sorted by cost.

4
🔎 Search for something specific

They press a key and type to search through their sessions, like looking for when they worked on JWT refresh.

5
Explore sessions their way
💰
Find expensive sessions

Sort by cost to see which runs used the most estimated spend

📊
Review token usage

Look at detailed breakdowns of tokens consumed in each session

🔎
Search old prompts

Type to find sessions about specific topics or errors

Understand where AI coding money goes

They find the session they needed and see exactly how much their AI coding assistant cost them, with everything staying private on their own computer.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is ccost?

ccost is a Rust-powered terminal UI that turns your local AI coding session logs into a searchable, sortable archive. It reads JSONL files from Codex and Claude Code, indexes them locally, and lets you browse, search, and sort sessions by estimated cost, tokens, time, or model. The killer feature: see exactly which sessions burned the most tokens and drill into per-request token breakdowns. No cloud, no API keys, no telemetry.

Why is it gaining traction?

Developers are realizing their AI coding tool history is scattered across session files they can barely search. ccost solves that by building a persistent full-text index that only re-indexes changed files, so startup stays fast even with hundreds of sessions. The cost lens is what hooks people: sorting by spend reveals expensive runs you forgot about, and the built-in pricing table covers GPT-5 and Claude families with JSON override support for custom rates. File watching means it stays current without manual reloads.

Who should use this?

Developers who use Codex or Claude Code heavily and want to audit their AI spend or recover old prompts. If you've ever thought "I asked about this somewhere" but couldn't find the session, this solves that. Teams exploring AI coding tool costs will find the token breakdowns useful for understanding per-session burn rates. Not useful if you don't use Codex or Claude Code, or if you prefer cloud-based usage dashboards.

Verdict

At 10 stars, ccost is early-stage but the Rust implementation is solid and the feature set is complete for what it promises. The credibility score of 0.800000011920929% reflects that youth, but the local-first architecture, incremental indexing, and cost-aware sorting fill a real gap. Worth installing if you want visibility into your AI coding sessions, but check the roadmap before committing to see if planned features like Cursor support are blocking your use case.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.