cost-sentinel
PLUGINLive cost ledger and daily budget guarddog for Ulpi, per profile or fleet-wide.
by SongotenU · v1.0.0
What it does
Live cost ledger and daily budget guarddog for Ulpi, per profile or fleet-wide — every LLM call is priced with Ulpi's own pricing engine into a per-profile SQLite ledger plus a shared fleet ledger (all profiles of the install roll into one daily number); /cost rules the budget (set, block, warn, off, scope fleet or profile, resume, reset), the cost_report tool lets the agent read it, and the hard pre_llm_call gate stops an over-budget turn with an escape-hatch message. Desktop pane shows the gate number (fleet or profile) with a spend ring, per-model and per-day breakdowns and a status-bar budget chip.
Disclosure — writes a per-profile SQLite ledger and a ledger shared by every profile of the install at <default ulpi root>/plugin-data/cost-sentinel/fleet.db, which also holds the daily budget settings, so /cost set, block, resume or reset in any profile changes the budget for all profiles; rows store tokens, cost, model/provider, session/turn/request ids, platform and error type plus the first 400 characters of provider error messages, never prompt, response or tool-argument text; the hard gate is off by default, is checked once before each turn (a turn already running can overshoot), and counts calls Ulpi cannot price as $0; no network of its own (pricing goes through the host pricing engine), no MCP, shell, credentials or telemetry.
Tools it adds
The tools an agent gets once this plugin is installed.
- cost_report
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve