llm-cost-optimizer → kalibr
This package redirects to kalibr — the production-grade solution.
Install
pip install kalibr
What kalibr does
Kalibr is a runtime cost optimization layer for AI agents. It automatically routes each LLM call to the cheapest model that will succeed at the task.
- ~12x cost reduction on typical agent workloads
- Zero quality loss — routes by outcome success, not just price
- Zero manual tuning — Thompson Sampling learns from every run
- Drop-in install — one import, no code restructuring
import kalibr # must be first import
from kalibr import Router
router = Router(
goal="answer_question",
paths=["gpt-4o-mini", "claude-haiku-3-5", "gpt-4o"],
success_when=lambda output: len(output) > 20
)
response = router.completion(messages=[{"role": "user", "content": "..."}])
Docs: https://kalibr.systems/llms.txt
GitHub: https://github.com/kalibr-ai/kalibr-sdk-python
Metadata
Release files for llm-cost-optimizer 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_cost_optimizer-1.0.0.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_cost_optimizer-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.8 kB
Release files / llm_cost_optimizer-1.0.0.tar.gz
| Download URL | llm_cost_optimizer-1.0.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bfc0d75faab8be13dcb95bda65cdf06e2c64a1bfd6132931c9e167805e1ff5c
|
|
BLAKE2b-256 checksum How to use checksums |
fd46a597b5fe697e8e3d4bda8f2d9bda189abbd59575da8466e8614a1fb931fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / llm_cost_optimizer-1.0.0-py3-none-any.whl
| Download URL | llm_cost_optimizer-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e170de14f71c2cf7469254e269a0335524d2b831eac4df24ed64e6e0792305cd
|
|
BLAKE2b-256 checksum How to use checksums |
d8c6c68385ae35b98e8b9c1a3f95912646118e2cf22956c99140a8e485dc723b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|