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

# Billing and usage

> Monitor spend, token credits, log ingest allowances, and billable executions for your organization.

Depending on your organization's pricing plan, Cotool surfaces billing and metering under **Settings > Billing** (`/settings/billing`) and **Settings > Usage** (`/settings/usage`).

## Permissions

| Permission | What it allows |
| - | - |
| `billing.read` | View **Settings > Billing** and **Settings > Usage**, spend totals, and usage breakdowns. |
| `billing.manage` | Change the plan, manage payment methods, purchase credits, and configure automatic reload. Requires `billing.read`. |

## Settings > Billing

**Settings > Billing** appears for organizations on token-based pricing or metered log ingest.

### Spending and token usage

* **Billing dates (UTC):** Filter spend using presets (`1d`, `7d`, `30d`, `MTD`, `Last month`) or a custom range up to 366 days, and use **Pull latest billing data** to refresh.
* **Summary metrics:** Review **Total spend**, **Usage charges**, and **Credits applied**.
* **Usage by source:** Inspect **Total tokens** and **Billing events**, filter by model (**All models** or an individual model), and click **Export CSV** (`cotool-billing-usage-{start}-{end}.csv`).
* **Spend alerts** (where notification emails are enabled): Click **Add alert** to email members with `billing.read` when calendar-month UTC spend reaches a threshold. Spend alerts notify without capping usage.

### Self-serve plans and credits

Self-serve workspaces organize **Settings > Billing** into three tabs: **Plan**, **Spending**, and **Credit history**.

* **Plan:** View your current credit balance and plan terms, manage payment details through the Stripe portal (**Manage payment**), upgrade or cancel your plan (**Upgrade now…**, **Cancel plan…**), or toggle **Run agents**.
* **Buy credits:** Purchase top-up credits through Stripe Checkout. Purchased credits expire after 12 months.
* **Automatic reload:** Set **When the balance falls to** and **Refill to** thresholds so Cotool automatically tops up your balance. Reloaded credits expire after 12 months.
* **Low-balance warning:** Alerts the organization before credits run out. At a zero balance, agent runs pause and most log ingest past plan inclusion pauses until credits are added.
* **Credit history:** Tracks grants and purchases across **Monthly credits**, **Free trial credits**, **Purchased credits**, **Automatic reload**, and **Granted by Cotool**.

### Log ingest metering

When log ingest billing is active, the Billing page includes **This month** meters showing your **Included** allowance, **Daily log ingest**, and **Log ingest this month by source**, broken down by charge type (**Included**, **From commitment**, **From credits**, or **On demand**).

## Settings > Usage

Organizations not on token-based pricing see **Settings > Usage**, which tracks billable agent executions:

* **Usage window:** Filter by **Month to date**, **Last 7 days** (default), **Last 30 days**, **Last 90 days**, or a custom range up to 731 days.
* **Total executions:** Breaks down activity across **Chat**, **Respond**, **Detect**, and **Hunt**, with a daily UTC chart (**Executions per day**).
* **Breakdown by execution type:** Tracks **Chat**, **Response agent run**, **Detection run**, **Autonomous hunt**, **Threat relevancy**, and **Threat exposure** (an execution is one agent run or chat session; follow-up turns are free).
* **Chat usage by user:** Lists chat session counts per member email.

## Related

> [card] [Roles and permissions](https://docs.cotool.ai/settings/roles-permissions-overview.md)
>
> Grant `billing.read` or `billing.manage` to finance and ops roles.

> [card] [Models](https://docs.cotool.ai/settings/models.md)
>
> Manage fast mode pricing tiers and bring-your-own-key routing.


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