balances
Installation
SKILL.md
Balances
Balances, caps and overage
- A balance counts down to 0. Going below 0 is overage.
- Two things let usage go past 0, and nothing else does:
- a usage-based
priceon the plan item — they go over and get billed for it. - the
overage_allowedbilling control.
- a usage-based
- If neither is set,
includedIS the cap: usage stops at 0 andcheckreturnsallowed: false. Nothing extra is needed to enforce it. - So never add a
spend_limitto "cap" a feature that has no overage price and nooverage_allowed— it is already capped, and the limit does nothing.
How controls interact with balances
- Only
overage_allowedchanges whether usage may pass 0. The rest just bound usage that is already permitted. usage_limits: a separate gate on TOTAL usage per time window, counted independently of the balance. This one bites whether or not overage exists, and can sit below the included amount.