less-tokens
Cut your LLM prompt token costs by 30-40% with deterministic, training-free lexical compression. Shrink prompts for OpenAI, Anthropic, and any LLM API while preserving output quality. Includes document-to-markdown reduction for PDFs and Word files, zone-aware compression that protects JSON schemas and output formats, async support, and a built-in 6-metric quality evaluator.
less-tokens has been downloaded 9,783 times in total on PyPI, including 465 in the last 30 days. The latest version is 0.7.1, released Jul 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.
- 0132.5%
0.7.0
1.2k downloadsDownloads1.2k32.5% - 0221.0%
0.7.1
746 downloadsDownloads74621.0% - 035.8%
0.6.7
208 downloadsDownloads2085.8% - 044.2%
0.6.6
151 downloadsDownloads1514.2% - 053.7%
0.6.5
132 downloadsDownloads1323.7% - 063.6%
0.6.3
127 downloadsDownloads1273.6% - 073.5%
0.6.2
126 downloadsDownloads1263.5% - 083.5%
0.6.4
125 downloadsDownloads1253.5% - 0922.1%
Other
787 downloadsDownloads78722.1%
Guess the next day
Thirteen recent days of less-tokens downloads. Drag the green handle on the right to guess where day fourteen lands.