Repository navigation
A lockfile for your LLM API bill.
Declare your monthly workloads in llm-costs.json, commit the lock, and CI fails when a provider repricing moves your estimated bill beyond your threshold.
- Stdlib-only Python — no dependencies, runs on any CI runner
- Fail-open: an outage of the price index never breaks your CI (
LLM_COST_STRICT=1to opt out) - No invented cache discounts: the discount only applies where the provider publishes a cached-input price
- Prices from the open dataset at https://apipriceindex.com/use-this-data/ (CC BY 4.0)