UNOUNOCODE

SAFETY

The spending cap

Every model call is recorded after it returns. There is no cap until you set one; once you do, every call is checked against it before it is sent, and when the next call would go over, Uno stops.

IN ONE LINENo cap by default; /spend-cap 10 sets one, /spend-cap off removes it; --max-cost for a single run.
cap each step is one model call · the next call would cross the line, so it is never sent STOP
Checked before, recorded after. A ledger that cannot be read counts as full, never as empty.
/spend-cap 10                    # in the chat: cap the total at $10, saved in your settings
/spend-cap                       # show the cap and what is spent
/spend-cap off                   # no cap again
/cost                            # this chat and the total
uno spend                        # spent so far, and the cap if there is one
export UNO_SPEND_CAP_USD=50      # a cap for this shell, over the setting ("off" for none)
uno -p "..." --max-cost 0.50     # stop this run before it spends more than 50 cents
  • The cap takes effect at once, even during a turn, and is saved as "spend_cap" in ~/.config/uno/settings.json. A project's settings cannot set it.
  • The cap is on the total in the ledger, everything ever spent through Uno (the budget card's TOTAL), so /spend-cap tells you what is already spent.
  • If your settings file has a mistake that stops it loading, Uno will not start while it sets a cap, and /spend-cap applies a cap to that chat alone (not saved) that /reload keeps until you change it.
  • A cap set in one chat holds there at once; another chat already running picks it up at its next /reload or start.
  • UNO_SPEND_CAP_USD sets the cap when Uno starts and /reload leaves it alone; /spend-cap still changes it for the rest of the chat, and the variable applies again at the next start.
  • Helper agents spend from the same meter; under a cap, each gets at most a quarter of what is left.
  • Web searches are counted too, at about a cent each (1.4 to 3.5 cents on Gemini).
  • A model missing from Uno's price table is charged at a deliberately high rate, so the total can overstate what you really spent. Your provider's dashboard has the true figure.

Use cases

A nightly job with a ceiling

Whatever happens overnight, it cannot cost more than this.

uno -p "update deps and fix breakages" --max-cost 1

Trying a new model

Find out what a task really costs before you make it routine.

uno -p "..." --model gpt-6-sol --output json
DESIGN DECISION · D46

No cap until you ask for one: a fixed cap stopped real work. When you set one it fails closed. The ledger is append-only in whole micro-dollars so totals never drift, and under a cap an unreadable line is an error rather than a zero.