tokenomics logo

tokenomics

One ledger for what your AI coding tools spend.

What it is

tokenomics collects usage from AI coding tools and puts it in one record, so spend from different tools lands in one report. From that record it can print a spend report, and a FinOps view that shows what routing work to free models saved.

Tools it reads

How cost is worked out

The cost the tool reports comes first. If it reports none, tokenomics estimates it from a price list. If there is no price, the cost is zero: it never invents a number.

Subscriptions show as free.

Tools billed by a flat subscription, or reached through a login instead of a pay-per-use key, report zero per token. They show as free even though a fixed fee sits behind them. The project lists subscription-aware costs as work in progress.

Install and use

pip install ncz-tokenomics

The package is on PyPI as ncz-tokenomics. The command is tokenomics. Examples from the README:

tokenomics ingest --host goose --ledger ledger.jsonl
tokenomics report --ledger ledger.jsonl --days 30
tokenomics finops --ledger ledger.jsonl --days 30

Repositories

Licensing

Apache-2.0, as detected by GitHub.