vladkens

cctrail

Ink painting: a road sign, a man digging beside a mound of earth.

Where your AI coding time and tokens go, per project.

cctrail's interactive view with projects, models, the timeline and swears

cctrail reads the local history of Claude Code, Codex, pi and fx and shows, for each project, how much time you spent in it, how many tokens it used and what that would cost at API prices. It needs no setup: repositories are found from the sessions themselves, with agent worktrees and clones counted as one project.

It's for people who work with coding agents across several projects and want real numbers. Time is active time: idle gaps don't count and parallel projects split it. Cost uses each request's API price of its day, so you can compare it with your subscription. History copied into subagents, forks or another profile counts once.

Run it without arguments for an interactive view of projects, models and a timeline. There's also a Swears tab that shows how often you scold each model. Text and JSON reports cover scripts.

The projects view with time, tokens, cost, sessions and share per project

Install

Download the archive for macOS (Apple Silicon), Linux or Windows from the latest release and put cctrail into a folder on your PATH. Or build it with Rust:

cargo install cctrail
cctrail
cctrail this-month
cctrail --json