> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agent.golf/llms.txt
> Use this file to discover all available pages before exploring further.

# Usage & Budget

> See what each meter counts, follow the projected invoice of the month, and set a monthly budget.

**Settings > Organization > Usage** (`/settings/organization/usage`) shows each meter's usage in a month and the projected invoice. A monthly budget limits what a month can cost: processing continues when the month's cost goes above it, and the sessions over the budget are deleted unless you raise the budget.

## Before you begin

* **View Organization Billing** to open **Settings > Organization > Usage**.
* **Manage Organization Billing** to set the monthly budget and the category budgets.

With [per-workspace invoices](https://docs.agent.golf/account/billing.md#invoices-per-workspace), each workspace also has its own **Settings > Usage**. For the roles that include these permissions, see [Organization roles](https://docs.agent.golf/account/users.md#organization-roles).

## Read the usage page

Select a month in **Month** at the top right. Each value counts from the start of the month (UTC) to the end of that day. From top to bottom, the page shows:

* **Billed So Far**: for the current month, the lines of your invoice so far, before tax. **Total so far** is their sum. After sessions over the [monthly budget](#monthly-budget) are deleted, a credit line with a negative amount takes their usage off the invoice.
* **Projected Invoice**: for the current month, an estimate before tax. It takes the charges so far and projects the GB that grow each day over the full month. Active contributors, fixed fees, and SSO connections already count the full month, so they are not projected. For a month that ended, **Invoice** shows the amount of that month's invoices.
* **Daily Usage**: how much each meter grew on each UTC day.
* **Meter cards** in four groups: **Activity**, **Uplink Instances**, **Ingest**, and **Storage**. When your plan includes an allowance for a meter, the card shows the usage against it, for example **17.00 GB of 41.00 GB included**.
* For each ingest meter, a chart by day and a breakdown by source: repository, harness, contributor, Uplink instance, or workspace.
* **All Meters**: each meter with its units. For the current month, it also shows the allowance, the rate, and the projected cost above the allowance. For a month that ended, it shows only the units. The month's invoice has the amounts.

When the month counts active users and contributors once for the organization, its workspaces share each byte allowance of the plan. The month counts them once when the organization has a plan, or when the month has a day with one invoice for the organization. This also applies during a trial. A month with only [per-workspace invoices](https://docs.agent.golf/account/billing.md#invoices-per-workspace) and no organization plan counts active users and contributors in each workspace. Each byte allowance then applies in each workspace. The allowance of one workspace does not cover the usage of another, so **Included** shows the rule, for example **17.00 GB per contributor in each workspace**.

## Meters

Your plan sets which meters the invoice bills. Other meters show their usage and **Not billed**. For the prices and allowances, see the [pricing page](https://agent.golf/pricing/).

| Meter | What it counts |
| - | - |
| **Active Users** | The users with an active membership in the month. When the month counts once for the organization, each user counts once. In a month with only per-workspace invoices and no organization plan, each workspace counts its own users. |
| **Active Contributors** | The [active contributors](https://docs.agent.golf/account/billing.md#active-contributors) of the month. |
| **Attributed Pull Requests**, **Analyzed Sessions** | The distinct pull requests that Agent Golf attributed, and the distinct sessions that it analyzed, in the month. |
| **Self-Hosted Uplink Instances**, **Cloud Uplink Instances** | The uplink instances that sent metrics, sessions, or usage reports in the month. |
| **SSO Connections** | The active SSO connections in the month. Only the connections above the number that your plan includes are billed. |
| **Self-Hosted Uplink Ingest**, **Cloud Uplink Ingest** | The GB of normalized session data that Agent Golf received from your uplink instances. |
| **Data Processed (Analysis)**, **Data Processed (Attribution)** | The GB of analysis reports, model-request windows, and attribution data that your uplink instances sent. Each distinct message counts once. |
| **Self-Hosted Uplink Raw Ingest**, **Cloud Uplink Raw Ingest** | The GB of raw OpenTelemetry data that your uplink instances received from your harnesses. The invoice calls the Cloud Uplink meter **OTLP Received**. |
| **Pull Request Storage** | The GB-months of pull requests, CI runs, attribution, GitHub data, and Linear and Jira data. Each workspace gets an equal share of the organization's Linear and Jira data. |
| **Session Rollup Storage** | The GB-months of session totals, hourly and daily roll-ups, and analyses. |
| **Session Detail Storage** | The GB-months of the full record of each session: its events, its graph, and its model requests. |
| **Database Storage** | The GB-months of the other records that Agent Golf keeps for your organization, such as users, settings, and keys. |
| **Self-Hosted Uplink Storage**, **Cloud Uplink Storage** | The GB-months of the data that your uplink instances keep. Cloud Uplink storage shows until its data is deleted after you turn Cloud Uplink off. |

Two lines of the pricing page and the invoice add several meters:

* **Data Processed** is **Self-Hosted Uplink Ingest**, **Cloud Uplink Ingest**, **Data Processed (Analysis)**, and **Data Processed (Attribution)**.
* **History Storage** is **Pull Request Storage** and **Session Rollup Storage**.

How long Agent Golf keeps the stored data depends on your [history retention](https://docs.agent.golf/account/data-retention.md#history-retention) windows.

## Monthly budget

A monthly budget limits what a month can cost. The cost is what the month's invoice bills so far, not a forecast.

When the month's cost so far goes above the budget, processing continues. The sessions that start after that point are over the budget:

* **Billing** shows **Monthly Budget Reached** with the time of the deletion, the days left, and the budget that keeps the sessions. The **Monthly Budget** row shows **Over Budget**.
* The **Sessions** page shows a banner to every user of the workspace, and **Over Monthly Budget** on each session over the budget.
* After a grace period, and not before the month ends, Agent Golf deletes these sessions. The invoice of the month does not bill their usage.
* To keep the sessions, raise the budget to at least the cost of the month before the deletion. **Billing** and the budget dialog show this amount.

After the deletion, **Billing** and **Sessions** say that the sessions were deleted. The banner on **Sessions** gives the number of deleted sessions until you dismiss it.

To set the budget:

1. Open **Settings > Organization > Billing**.
2. Under **Billing Details**, select **Edit** on **Monthly Budget**.
3. Enter the amount in US dollars, then select **Save**.

To remove the budget, select **Remove Budget** in the same dialog. A budget below the plan charges of the month gets a warning: every new session of the month is then over the budget.

Agent Golf tells you as the cost grows:

| Cost so far | Notice |
| - | - |
| 70% of budget | An email to the [billing email](https://docs.agent.golf/account/billing.md#billing-email), and a notice on the **Dashboard**. |
| 90% of budget | An email, a notice on the **Dashboard**, and **Monthly Budget Almost Used** on **Billing**. |
| 100% of budget | An email, a notice on the **Dashboard**, and **Monthly Budget Reached** on **Billing**. Processing continues. |

Each email goes at most once a month. A budget change does not send an email again: after you raise the budget, the next email goes when the cost reaches a higher percentage.

### Category budgets

A category budget is a monthly cap on one category of the plan, for example **Data Processed**. It sends emails at 70%, 90%, and 100% of its amount, and **Billing** shows a notice at 90% and 100%. A category budget has no effect on data: only the monthly budget does.

To add one, open **Settings > Organization > Billing**, and under **Category Budgets** select **Add Category Budget**. Select the category, enter the amount, then select **Save**. A category budget can be at most the monthly budget. To change or remove a category budget, select **Edit** on its row.

When the current plan does not bill a category, its budget shows **Not on Current Plan** and sends no emails. Select **Remove Budget** to delete it.

## Processing limits

Billing stops the processing of new data in these cases. A notice on **Billing** names the reason and the action that ends the limit. The monthly budget does not stop processing; see [Monthly budget](#monthly-budget).

| Notice | Cause and action |
| - | - |
| **Trial Ended** | The trial ended without a plan. Select **Start a plan**. |
| **Trial Allowance Used** | The trial went above its usage allowance. Processing starts again at the trial end if you have a plan. Without a plan, select **Start a plan**. |
| **Invoice Unpaid** | An invoice stayed unpaid after the grace period. Select **Pay invoice**. See [Payment problems](https://docs.agent.golf/account/billing.md#payment-problems). |

While processing is stopped:

* Your Self-Hosted Uplink instances keep the new data and send it when the limit ends. That data counts as usage of the month in which it arrives. Cloud Uplink does not keep the data of that time.
* Agent Golf does not process the workspace's GitHub events, so its pull request pages do not change. When the limit ends, new events update the pull requests again. Events from the stopped time are not processed later, so a pull request that merged during the stop can still show as open.

If the trial ended without a plan, **Usage** shows the usage of the trial days under the **Trial Ended** notice. That usage is not billed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.