centrail
v0.8.1
Published
Sync your local AI coding-agent usage (Claude Code, GitHub Copilot CLI, Codex) to centrail.org.
Readme
centrail
One command turns your AI usage into a dashboard: what your coding agents did, what it cost, and what it produced.
npx centrail connectThat is the whole install. No global package, no SDK, no proxy, no code changes.
What it does
Centrail is the system of record for AI work. The CLI reads the usage logs your coding agents already write on your machine, attributes tokens to the git commits they helped produce, and syncs usage metadata to your dashboard at centrail.org.
- Spend: estimated cost per day, per project, per model. See a year of AI spend in two minutes.
- Git attribution: cost per commit, per branch, per PR. What did this PR cost? We're the only ones who can tell you.
- Budgets and alerts: get warned when today's burn is a multiple of normal. Your AI bill can never surprise you again.
- Savings: see when a cheaper model does the same job. We find you AI savings.
- Footprint: estimated energy, water, and CO2 for every token, included free.
- Teams: roll the same numbers up per seat and per project. The AI spend report your CFO actually asks for.
What it tracks
- Claude Code (local session logs)
- GitHub Copilot CLI (local session logs)
- Codex (local session logs)
- Provider APIs and chat-app usage connect on the web side; the CLI is the coding-agent and git half.
Privacy first
The CLI reads logs locally. Usage uploads contain an opaque event ID, model,
token counts, and timestamp. To a server that accepts them, once you have
chosen which repos sync, they add the repo identity (github.com/owner/repo
or a root-commit hash, its root commit and the folder name), the session id,
the branch, and a random per-install id.
Git attribution contains the repo name, branch, commit SHA, commit time and
aggregate line/file counts, and to a server that accepts them a content hash
of each commit's change (git patch-id) that proves a rebased or squashed
commit is the same work without revealing it. Absolute paths, hostnames, platform details,
provider-account details, prompts, completions, diffs, commit messages and
source code are never uploaded; npx centrail inspect --last prints the
real payload. The full guarantee is documented at Local token
capture and the privacy
policy.
Pricing
Personal use is free. Team Standard is $99/mo for 10 seats. Team Pro is $199/mo for 10 seats and adds Trails. Personal Pro is $6/mo. Details at centrail.org/pricing.
Links
- Website: centrail.org
- Docs: centrail.org/docs
- CLI reference: centrail.org/docs/cli
- Support: [email protected]
License
Apache-2.0. Source at github.com/braydenyancy/centrail-cli.
