Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview
On this page

Manage billing

Read what your organisation has used and spent, see its plan and credit, and set a spending cap and alerts.

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 shows the organisation’s plan, the credit it has left and what this month has cost so far.

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.

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.

luna billing --daily

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

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. What each meter counts is on 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.

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

--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 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 lists them.

An alert pauses nothing. When the month passes an alert’s amount, Luna adds a billing.budgetAlert entry to 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.

luna usage --by project --since 7d

Next steps

  • Pricing lists each meter’s rate and the monthly credit.
  • Track usage breaks usage down by project, type and luna.
  • Invite members gives someone the billing role.

Was this page helpful?