austenstone/AI Credits Usage

Report on GitHub AI Credits (AIU) usage as a job summary, JSON, and CSV.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 25, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: austenstone/ai-credits-usage@7faa9d982611a60ee0f4974228ab0e8b66cfcd85 # v0.1.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github-tokenGitHub token with access to billing usage (admin:enterprise or admin:org as required).yes
enterpriseEnterprise slug. One of enterprise, organization, or cost-center is required.no
organizationOrganization slug. One of enterprise, organization, or cost-center is required.no${{ github.repository_owner }}
cost-centerCost center ID (enterprise-scoped). Requires `enterprise` to also be set.no
yearYear filter (YYYY). Defaults to current year.no
monthMonth filter (1-12). Optional.no
dayDay filter (1-31). Optional, requires month.no
hourHour filter (0-23). Optional, requires day.no
job-summaryWrite a markdown job summary.notrue
jsonUpload AIU usage as a JSON artifact.notrue
csvUpload AIU usage as a CSV artifact.nofalse
artifact-nameName of the uploaded artifact.noai-credits-usage
price-per-creditUSD price per AI Credit (used for estimated cost rollups).no0.04
namedescription
resultFiltered AIU usage items as a JSON string.
total-creditsTotal AI Credits (AIU) consumed across the matched period.
estimated-cost-usdEstimated cost in USD (total-credits * price-per-credit).
sinceFirst date in the matched data (YYYY-MM-DD).
untilLast date in the matched data (YYYY-MM-DD).
itemsCount of matched usage line items.