fnclaude/AI Cost Guard

Track and limit AI API costs in CI workflows

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
actionstart or stopyes
anthropic_api_keyAnthropic API key for usage trackingyes
max_costMaximum cost in USD before failing the workflowno10.00
start_timeStart time from the start step (only for stop action)no
baseline_usageBaseline usage from start step (only for stop action)no
input_tokensManually provided input token count (fallback mode, only for stop action)no
output_tokensManually provided output token count (fallback mode, only for stop action)no
modelModel ID for cost estimation when using manual token countsnoclaude-sonnet-4-6
namedescription
start_timeTimestamp when tracking started
baseline_usageUsage snapshot at start
total_input_tokensInput tokens used
total_output_tokensOutput tokens used
estimated_costEstimated cost in USD