# Billing

> Use when the user wants to view Layerbrain billing — statements (invoices / usage) or subscriptions (plans). Requires the `brain` CLI.

- Skill: `layerbrain/billing` (Agent Skill)
- Install (CLI): `npx get-skill add layerbrain/billing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/layerbrain/billing/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: layerbrain (https://skillmd.com/u/layerbrain)
- Updated: 2026-11-26
- Page: https://skillmd.com/skills/layerbrain/billing

---

---
name: billing
description: Use when the user wants to view Layerbrain billing — statements (invoices / usage) or subscriptions (plans). Requires the `brain` CLI.
---

# Brain — billing (statements, subscriptions)

Two read-mostly resources:

- **Statements** — invoices and usage records.
- **Subscriptions** — active plans on the account / organization.

## Preflight

Run `command -v brain`; if it exists, use `brain` exactly as found on PATH. Then run `brain whoami`. If either command errors, follow `references/auth.md`. Never use a local `layerbrain/brain` checkout as the CLI.

## Statements

| Intent | Command |
|---|---|
| List statements | `brain statements list --output json` |
| Get statement | `brain statements get <ID> --output json` |

## Subscriptions

| Intent | Command |
|---|---|
| List subscriptions | `brain subscriptions list --output json` |
| Get subscription | `brain subscriptions get <ID> --output json` |
| Create subscription | `brain subscriptions create --data-file ./subscription.json --output json` |

## Rules

- This skill is read-mostly. The only mutating command is `subscriptions create` — confirm with the user before creating, since it implies billing.
- Statements are immutable once issued. Do not attempt to modify; surface as-is.
- When a user asks "how much am I spending", run `statements list` and summarize the latest period. Do not estimate from machine sizes.

