Viewing and managing GitHub Code Quality costs

Keep your Code Quality spend predictable by seeing exactly where charges come from and using the levers that bring them down.

Knowing what Code Quality costs, and which levers you can pull, lets you justify the spend before you roll it out, and keep it predictable afterward. This article covers where charges come from, where to watch your usage, and how to bring costs down.

How you're charged for Code Quality

Code Quality usage adds up from three types of cost across your organization:

For exactly how each cost is measured, see GitHub Code Quality billing.

It's important to understand how GitHub Code Quality uses AI credits before you scale:

Where to see your usage

Code Quality usage appears in the same billing and usage views as your other products, not in a separate Code Quality meter. Where you look depends on how granular a breakdown you need:

Monitoring your spend

Once Code Quality is running, watch your actual usage over time so costs stay predictable. Track two things:

Controlling your costs

You have several levers to keep spend in check. In rough order of impact:

Setting a budget

Budgets are your main control for the AI credits side of Code Quality, because Code Quality draws from the shared AI credits pool.

For Code Quality, a budget is always a hard cap. When you create the budget, Stop usage when budget limit is reached is enabled by default and can't be turned off, so usage stops automatically once you exhaust the budget.

When you create a budget, you choose a Budget type. Two apply to Code Quality:

To get started, see Setting up budgets to control spending on metered products.

What you can't control

Be aware of two limits so there are no surprises: