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

Cost Reduction Python Packages

Python packages with the GitHub topic cost-reduction. Sorted by relevance, with stars and monthly downloads.
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).

9K 140 7
ogallotti
rtk-hermes

RTK plugin for Hermes — rewrites shell commands for 60-90% LLM token savings

5K 236 14
kalibr-ai
kalibr

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

4K 31 3
KathanModh259
latent-gate

VL-JEPA inspired pipeline — compress images/text locally via Ollama, send compact payloads to any LLM API. Cut token costs by ~80%.

2K 22 0
maheshmakvana
graphsift

graphsift: #1 Claude token saver & LLM token optimizer. AST dependency graph, BM25+graph ranked relevance, multi-tier context selection, 14 languages, tree-sitter parsing, 19-CLI output compression (86% avg). 80-150x token reduction, F1 0.85. Hybrid search, dedup, diff-aware trimming, cycle & dead code detection. MCP server. Agent memory, typed graph retrieval, context compaction, A2A protocol, temporal code graph.

1K 3 0
dkondo
thrifty-ml

Proxy-model library: replace per-row LLM calls with lightweight ML classifiers

526 0 0
aks-builds
agentsave

Save 30% on AI agent costs. One line of code. No accuracy loss.

459 0 0
amahi2001
python-token-killer

Minimize LLM tokens from Python objects — dicts, code, logs, diffs, and more.

345 14 1
saikoushiknalubola
thinkrouter

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

290 3 0
obielin
llm-response-cache

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

251 1 0
kalibr-ai
llm-cost-optimizer

Automatically reduce LLM API costs. Routes to cheapest model that succeeds. Use kalibr instead.

240 31 3
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.

237 31 3
diawest82
fortress-optimizer

Cut your LLM API costs by 10-20%. Drop-in prompt optimization for Python.

208 0 0
kalibr-ai
langchain-kalibr

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

181 0 0
Naseem77
tokenwise-optimizer

Smart Context Optimization for LLMs - Reduce tokens by 70-90%

148 4 0
    • Data from PyPI, GitHub, ClickHouse, and BigQuery