PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Cost Reduction Python Packages

Python packages with the GitHub topic cost-reduction. Sorted by monthly downloads, with stars and forks.
fkiene
llmtrim

Local proxy that compresses your LLM API requests so you pay less, with no change to the answers. Trims wasted tokens from prompts, history, tool output, and code before they're sent: -31% input / -74% output, measured live. Any provider, no extra model calls. Also an MCP server and embeddable library (Rust, Python, Ruby, Kotlin, Swift, JS/TS).

5K 243 23
kalibr-ai
kalibr

Stop overpaying to run your agents. Kalibr routes every request to lower-cost model and tool paths without degrading performance.

2K 31 3
KathanModh259
latent-gate

MCP server that shrinks logs, JSON, docs and web pages before your AI reads them. Offline, deterministic, ~3ms, no API key. 66% fewer tokens on a mixed dev corpus, 90%+ on logs.

2K 25 2
maheshmakvana
graphsift

Token Saver for Claude, GPT-5 & Gemini. 80-150x code context reduction, F1 0.85. AST dependency graph, ranked context selection, 19 CLI compressors, MCP server, agent memory. Save LLM tokens — zero telemetry.

1K 5 0
v-nightwolf
tonst

Token optimization and security tool — local caching, PII redaction, and prompt trimming for LLM API calls.

780 5 1
obielin
llm-response-cache

SQLite-backed LLM response cache. Exact match + fuzzy match. Decorator API. Zero mandatory server dependencies.

227 1 0
kalibr-ai
langchain-kalibr

LangChain integration for Kalibr. Route every LangChain LLM call to lower-cost model paths without degrading performance.

206 0 0
kalibr-ai
llm-cost-optimizer

Stop overpaying to run your agents. Kalibr routes every request to lower-cost model and tool paths without degrading performance.

205 31 3
aks-builds
agentsave

Open-source AI agent efficiency platform: LLM-free context filter + early-exit supervisor cuts token costs ~30% with zero accuracy loss. Works with LangChain, AutoGen, CrewAI, LangGraph and Smolagents.

204 0 0
kalibr-ai
llm-cost-reduction

Stop overpaying to run your agents. Kalibr routes every request to lower-cost model and tool paths without degrading performance.

203 31 3
saikoushiknalubola
thinkrouter

Cut LLM reasoning-token costs by 60% with one line of code

130 3 0
diawest82
fortress-optimizer

Cut LLM API costs by 10-20%. Drop-in prompt optimization for OpenAI, Anthropic, Gemini. Free 50K tokens/month.

125 0 0
amahi2001
python-token-killer

Minimize LLM tokens from Python objects, code, logs, diffs, and more. Zero deps. Ultra-Lightweight.

122 14 2
dkondo
thrifty-ml

Replace per-row LLM calls with lightweight ML classifiers. 50-1000× cheaper, same accuracy.

111 0 0
Naseem77
tokenwise-optimizer

Smart Context Optimization for LLMs - Reduce tokens by 66%, save 40% on API costs. Intelligent ranking and selection of relevant context using embeddings, keywords, and semantic analysis.

57 4 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology