rc397/Calcis LLM Cost Estimate
Estimate LLM API costs for prompt files in PRs. Cost deltas, budget gates, 25+ models.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| api-key | Calcis API key (starts with calc_). Get one at https://calcis.dev/dashboard | yes | — |
| model | Default LLM model to estimate costs for (e.g. claude-sonnet-4-6, gpt-4o). Overridden by `model` in .calcis.yml when present. | no | claude-sonnet-4-6 |
| file-patterns | Comma-separated glob patterns for prompt files to scan. Overridden by `file-patterns` in .calcis.yml when present. | no | **/*.prompt,**/prompts/** |
| max-files | Maximum number of files to estimate per run (prevents excessive API calls) | no | 10 |
| monthly-calls | Estimated API calls per month. When set, the PR comment includes a monthly cost projection. Overridden by `projection.monthly-calls` in .calcis.yml. | no | "" |
| fail-on-budget | When true, the calcis/cost check fails if any `.calcis.yml` fail threshold is exceeded. Set to false to configure budgets without blocking merges during rollout. | no | true |
Outputs
| name | description |
|---|---|
| total-cost | Total estimated cost of the PR in USD |
| delta-total | Total cost delta in USD (PR total minus base total) |
| files-scanned | Number of prompt files scanned |
| files-skipped | Number of files skipped (over limit, too large, or empty) |
| budget-status | Budget evaluation result: pass, warn, or fail |
| monthly-projection | Projected monthly cost in USD when monthly-calls is configured (otherwise 0) |