A set of small Python tools and a guide for cutting what you spend on language models.
Cheap to try and MIT-licensed, but one maintainer, a young repo, and savings not measured on your usage.
High confidence. AI review, 2026-12-02. No person checked it. Based on the README, activity, licence and health signals.Shows which prompt parts and long sessions drive token spend, before you pay for them.
Standard-library Python with no dependencies. Runs locally with no hosting. Reports 151 tests.
git clone https://github.com/paulfxyz/cheap-inference.git cd cheap-inference python tools/tokens.py templates/AGENTS.md python tools/budget.py examples/budget.json
README · Releases · Issues · Pull requests · Commits · Security · Licence
Open in Nextfit → · the original on GitHub