less-tokens
Cut LLM prompt token costs by 30-40% with deterministic, training-free lexical compression for OpenAI, Anthropic, Gemini and any LLM API. Zone-aware compression protects JSON schemas and output formats; PDFs and Word files reduce to Markdown. Includes a 6-metric quality evaluator. The optional agent extra adds a local-first chat app: a local Ollama model answers what it can, a router escalates the rest to the cheapest frontier model, with automatic RAG, rolling chat summaries and a token ledger in SQLite.
less-tokens has been downloaded 11,702 times in total on PyPI, including 1,113 in the last 30 days. The latest version is 0.8.2, released Oct 26, 2026. It is distributed under the MIT license.
Downloads
Weekly, last 90d.
Includes CI traffic.
Sponsorships keep pepy free to read
Version distribution
Share of downloads by released version. Computed over the last quarter.
- 0122.3%
0.8.2
610 downloadsDownloads61022.3% - 0218.2%
0.8.1
500 downloadsDownloads50018.2% - 0310.4%
0.7.1
285 downloadsDownloads28510.4% - 045.3%
0.7.0
145 downloadsDownloads1455.3% - 054.1%
0.6.7
113 downloadsDownloads1134.1% - 063.6%
0.6.6
98 downloadsDownloads983.6% - 073.5%
0.6.2
95 downloadsDownloads953.5% - 083.4%
0.6.1
92 downloadsDownloads923.4% - 0929.3%
Other
802 downloadsDownloads80229.3%
Guess the next day
Thirteen recent days of less-tokens downloads. Drag the green handle on the right to guess where day fourteen lands.