# CostGuard

A brake pedal for model spend.

- Type: Plugin
- Version: 0.1.0
- Updated: 22 Nov 2026
- Publisher: Whydiriki700
- Category: Tools

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

A brake pedal for model spend. Meters every API call per session and per day from the provider's own usage block; dollar figures are estimates computed only for models in its price table and are never invented for unknown models.

When a provider reports no usage (common with streaming OpenAI-compatible endpoints), it falls back to request-size estimates and flags those calls as estimated in every total, never pricing them. Warns the agent at a configurable ratio of any configured budget and blocks tool calls once a session or daily token/cost budget is exceeded, stopping the tool loops where runaway spend happens; with no budget configured it only meters and reports.

Disclosure: observes API request/response metadata (token usage, model, session id) and tool call names in profiles where it is enabled; stores only aggregate counters locally under $ULPI_HOME/costguard/; makes no network calls; the brake cannot cancel the reply already being generated when a budget trips, it stops the tool work that reply tries next.

## Tools it adds

The tools an agent gets once this plugin is installed.

- `costguard_status`

## 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

## More in Tools

- [Costory FinOps Agent](https://www.ulpi.io/en/marketplace/plugins/costory-finops-agent): FinOps harness MCP for platform teams.
- [Counterparty](https://www.ulpi.io/en/marketplace/plugins/counterparty): Screens the companies your agent is about to pay, email, sign with or buy from.
- [Courier by Autolane](https://www.ulpi.io/en/marketplace/plugins/courier-by-autolane): Restaurant pickup delivery in Austin, Texas: the user places a pickup order, and an Autolane vehicle collects it and drives it to them for a flat fee.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
