# SpendWarden

A spend policy firewall and local ledger for Ulpi agents that can move money.

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

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

## What it does

A spend policy firewall and local ledger for Ulpi agents that can move money. A pre_tool_call hook checks payment-shaped tool calls against daily, monthly and per-call USD caps, recipient/asset/network allowlists and an approval threshold; in enforce mode it blocks hard violations and escalates uncertain ones to Ulpi's own approval gate.

Four tools add spend_check, idempotent spend_record receipts, spend_report totals, and x402_inspect (decodes PAYMENT-REQUIRED / X-PAYMENT without signing). State is a local SQLite ledger under the plugin data directory; no network calls, no credentials, no key handling, no transaction signing.

Observe mode logs only; enforce mode is opt-in. Terminal recognition covers cast send, solana transfer, bitcoin-cli sendtoaddress, near call --deposit and curl with X-PAYMENT.

Disclosure — detection is best-effort: it recognises payment-shaped calls by tool-name patterns, common amount/recipient argument names and five terminal command shapes (cast send, solana transfer, bitcoin-cli sendtoaddress, near call --deposit, curl with X-PAYMENT), so payments made any other way pass unchecked; the default observe mode only logs, nothing is blocked or sent for approval until you set mode: enforce, and a policy-check error lets the call through unless fail_closed is on; it does not replace wallet-side spending limits.

## Tools it adds

The tools an agent gets once this plugin is installed.

- `spend_check`
- `spend_record`
- `spend_report`
- `x402_inspect`

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

- [Spine](https://www.ulpi.io/en/marketplace/plugins/spine): Does your model cave when you push back?
- [Spoonmaster](https://www.ulpi.io/en/marketplace/plugins/spoonmaster): Compare restaurants using local recommendations, venue facts, and optional private tastes.
- [spotify](https://www.ulpi.io/en/marketplace/plugins/spotify): Spotify for Ulpi: seven tools (playback, devices, queue, search, playlists, albums, library) over the Spotify Web API.

[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)
