leanctx

by jia-gao · LLM 插件 · ★ 309

About leanctx

leanctx Drop-in prompt compression for production LLM applications. Cut your input-token bill by 40–60% — without changing your code. On the public LongBench v2 leaderboard's short subset, leanctx-Lingua doubles accuracy versus naive head+tail truncation (40 % vs 20 %) while removing 57 % of tokens. Open-source models, runs locally, MIT-licensed. Your prompts and user data never leave your infrastructure by default. Quickstart (60 seconds) First Lingua call loads 1.2 GB of model weigh

anthropiccost-optimizationgeminilangchainlanggraphllmllm-inferencellmlinguaopenaiprompt-compression

Quick Facts

Stars309
Forks2
LanguagePython
CategoryLLM 插件
LicenseMIT
Quality Score50.392/100
Open Issues1
Last Updated2026-06-14
Created2026-04-18
Platformsgemini, python
Est. Tokens~16k

More LLM 插件 Tools

Explore other popular llm 插件 tools:

View all LLM 插件 tools →

Popular Python Agent Tools

Frequently Asked Questions

What is leanctx?

leanctx is Drop-in prompt compression for production LLM apps. Cut your token bill 40-60% without changing your code. Python SDK, LLMLingua-2, MIT.. It is categorized as a LLM 插件 with 309 GitHub stars.

What programming language is leanctx written in?

leanctx is primarily written in Python. It covers topics such as anthropic, cost-optimization, gemini.

How do I install or use leanctx?

You can find installation instructions and usage details in the leanctx GitHub repository at github.com/jia-gao/leanctx. The project has 309 stars and 2 forks, indicating an active community.

What license does leanctx use?

leanctx is released under the MIT license, making it free to use and modify according to the license terms.

View on GitHub → Browse LLM 插件 tools