Home Projects leanctx
leanctx

leanctx

by jia-gao · GitHub

Drop-in prompt compression for production LLM apps. Cut your token bill 40-60% without changing your code. Python SDK, LLMLingua-2, MIT.

View on GitHub
⭐ Stars
314
🍴 Forks
2
📜 License
MIT
Commercial use OK
📅 Created
2026
🔄 Last commit
21 days ago
🏷️ Category
anthropic
💻 Language
You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
leanctx — GitHub preview card
📈 Star history
315314
2026-07-202026-07-21
📄 About

Drop-in prompt compression for production LLM apps. Cut your token bill 40-60% without changing your code. Python SDK, LLMLingua-2, MIT.

Frequently asked questions

What is leanctx?

Drop-in prompt compression for production LLM apps. Cut your token bill 40-60% without changing your code. Python SDK, LLMLingua-2, MIT.

Is leanctx open source?

leanctx is an open-source project. It is released under the MIT license.

Is leanctx free?

Yes. leanctx is free and open source — you can use, modify and self-host it.

🏅 Maintainer of this project?
OpenSourceAI badge — leanctx

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![OpenSourceAI](https://opensourceai.tech/badge.php?tool=jia-gao-leanctx)](https://opensourceai.tech/project/jia-gao-leanctx.html)
More badge options →
🧬 Shares DNA with🧬 View the DNA map →

Measured from GitHub topics shared by both projects, weighted by how rare each topic is.