austenstone/AI Credits Usage
Report on GitHub AI Credits (AIU) usage as a job summary, JSON, and CSV.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 25, 2026
- License
- MIT
Pinned Snippet
uses: austenstone/ai-credits-usage@7faa9d982611a60ee0f4974228ab0e8b66cfcd85 # v0.1.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token with access to billing usage (admin:enterprise or admin:org as required). | yes | — |
| enterprise | Enterprise slug. One of enterprise, organization, or cost-center is required. | no | — |
| organization | Organization slug. One of enterprise, organization, or cost-center is required. | no | ${{ github.repository_owner }} |
| cost-center | Cost center ID (enterprise-scoped). Requires `enterprise` to also be set. | no | — |
| year | Year filter (YYYY). Defaults to current year. | no | — |
| month | Month filter (1-12). Optional. | no | — |
| day | Day filter (1-31). Optional, requires month. | no | — |
| hour | Hour filter (0-23). Optional, requires day. | no | — |
| job-summary | Write a markdown job summary. | no | true |
| json | Upload AIU usage as a JSON artifact. | no | true |
| csv | Upload AIU usage as a CSV artifact. | no | false |
| artifact-name | Name of the uploaded artifact. | no | ai-credits-usage |
| price-per-credit | USD price per AI Credit (used for estimated cost rollups). | no | 0.04 |
Outputs
| name | description |
|---|---|
| result | Filtered AIU usage items as a JSON string. |
| total-credits | Total AI Credits (AIU) consumed across the matched period. |
| estimated-cost-usd | Estimated cost in USD (total-credits * price-per-credit). |
| since | First date in the matched data (YYYY-MM-DD). |
| until | Last date in the matched data (YYYY-MM-DD). |
| items | Count of matched usage line items. |