salilborkar/LLM Cost Lint

Shift-left LLM cost linting. Scans PRs for Bedrock and Azure OpenAI calls and posts cost estimates as PR comments.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
pathDirectory or file to scan. Scanned recursively for .py files. Defaults to the repository root. no.
monthly-callsEstimated number of times each detected LLM call will execute per month in production. Used to project monthly cost from a per-call estimate. no30000
default-input-tokensInput token count assumed per call when the value cannot be statically inferred from source code. Override with a value representative of your typical prompt size. no1000
default-output-tokensOutput token count assumed per call when max_tokens is not explicitly set in the call site. no500
cost-thresholdMonthly cost ceiling in USD. When the projected monthly total exceeds this value a warning is added to the report. Set fail-on-threshold to true to also block the merge. Set to 0 to disable the threshold check. no100
fail-on-thresholdSet to 'true' to exit with code 1 when the projected monthly cost exceeds cost-threshold, blocking merge if this check is required by branch protection rules. nofalse
post-pr-commentPost the cost report as a comment on the pull request. Requires pull-requests: write permission in the calling workflow. notrue
github-tokenGitHub token used to post PR comments. Defaults to the workflow's automatic GITHUB_TOKEN. no${{ github.token }}
namedescription
cost-reportThe markdown cost report generated by LLM Cost Lint.