Get Depot usage and spend drivers
depot_get_usageReport Depot usage for a period, including container build minutes, cache savings, GitHub Actions runner minutes, storage, and sandbox minutes. Use it to answer cost questions and identify which projects or repos consume the most minutes.
Instructions
Report Depot usage for a period: container build minutes and minutes saved by caching, GitHub Actions runner minutes by repository and workflow, storage, and agent sandbox minutes.
Use this for cost questions — "what is burning our Depot minutes", "which repo dominates our runner bill", "is the cache actually paying for itself". minutesSaved against minutesBilled is the cache's return on investment; a project with high billed minutes and low saved minutes is where to look first.
This is also the only place Depot exposes managed GitHub Actions runner data through the API, and it is aggregated: there is no per-job runner list.
Pass projectId to scope to one container build project, which returns build counts, duration and layer cache size instead of the organization-wide breakdown. Defaults to the last 30 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look back this many days from now. Ignored when startAt and endAt are both given. | |
| endAt | No | End of the window, RFC 3339 or YYYY-MM-DD. Dates are UTC. A date-only value is inclusive: "2024-01-31" covers all of 31 January. Requires startAt. | |
| startAt | No | Start of the window, RFC 3339 or YYYY-MM-DD. Dates are UTC; a date-only value means midnight at the start of that day. Requires endAt. | |
| projectId | No | Scope to one container build project instead of the whole organization. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| scope | Yes | ||
| storage | Yes | ||
| periodEnd | Yes | ||
| periodStart | Yes | ||
| agentSandbox | Yes | ||
| projectUsage | No | ||
| containerBuild | Yes | ||
| githubActionsJobs | Yes |