---
title: Manage billing
description: Read what your organisation has used and spent, see its plan and credit, and set a spending cap and alerts.
related:
  - /platform/pricing
  - /observe/track-usage
  - /cli/billing
---

Luna bills an organisation for what its lunas use, month by month. You read the bill as it grows, and set a cap so that a runaway loop cannot spend more than you choose.

## Read this month's bill

[`luna billing`](/cli/billing) shows the organisation's plan, the credit it has left and what this month has cost so far.

```bash
luna billing
```

Under that summary, a table has a row for each meter: what was used, what the plan includes, what went over and what it was charged. The last row is the month's total.

In the Console, go to **Billing** for the same figures.

## Read another month

`--month` shows a month that has ended, written as `YYYY-MM`.

```bash
luna billing --month 2026-10
```

## See what each day cost

`--daily` adds what each day cost in UTC, grouped into calls, compute, storage and sandboxes. The figures come after what the plan includes, and before credit.

```bash
luna billing --daily
```

Add `--meter` to see one meter a day at a time instead, such as `requests` or `lunaCpuMs`.

```bash
luna billing --daily --meter lunaCpuMs
```

`--json` prints both answers as one JSON object, with `billing` for the plan, credit and limits, and `month` for the month by meter and by day.

## Know how credit works

Your plan gives the organisation credit each month, and usage spends it first. What the month uses past its credit is the extra usage that `luna billing` lists as charged.

Credit and rates are on [Pricing](/platform/pricing). What each meter counts is on [Track usage](/observe/track-usage).

## Set a spending cap and alerts

`--hard-cap-usd` sets the most the organisation may spend in a calendar month, in US dollars. Each `--alert-usd` adds an amount to be told about.

```bash
luna billing --hard-cap-usd 200 --alert-usd 50 --alert-usd 150
```

:::note
Each change replaces the cap and every alert. Pass all the limits you want to keep in one command, or the ones you leave out are cleared.
:::

`--no-cap` removes the cap. An organisation can have up to 20 alerts.

In the Console, the **Spending** card on the **Billing** page sets the same limits.

## Know what happens at the cap

When the month's cost reaches the cap, Luna refuses new calls to the organisation's lunas. They fail with [`QuotaExceeded`](/errors/quota-exceeded) and status 429, and the message says that the spending cap for the month has been reached.

Calls work again once you raise or remove the cap, or when the next month starts. Your plan's own limits refuse calls the same way, and [Limits](/platform/limits) lists them.

An alert pauses nothing. When the month passes an alert's amount, Luna adds a `billing.budgetAlert` entry to the [audit log](/organisation/read-the-audit-log).

## Know who manages billing

Owners, admins and billing members read the bill and set the cap. Developers and viewers cannot, but they read usage with [`luna usage`](/cli/usage).

```bash
luna usage --by project --since 7d
```

## Next steps

- [Pricing](/platform/pricing) lists each meter's rate and the monthly credit.
- [Track usage](/observe/track-usage) breaks usage down by project, type and luna.
- [Invite members](/organisation/invite-members) gives someone the billing role.
