# Mandate: Safe Spending for AI Agents

> Let your agent spend only through a mandate you control: it checks your limits, asks before paying, waits for your approval above your threshold, settles every hold, and never works around a "no".

Mandate: Safe Spending for AI Agents is a free AI agent skill on Agensi by Ivan Bhargava, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Ivan Bhargava](https://www.agensi.io/creators/ivan-bhargava)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mandate-safe-spending-for-ai-agents
- Tags: automation, security, ai-agents, budget-control, payments, spending-limits, mcp, human-in-the-loop

## About this skill

Mandate gives an AI agent a **limit instead of a card**: per-purchase, daily and total limits, allowed merchants, blocked categories, active hours and an amount above which it must ask you first. Every request is decided against your terms and written to a signed, hash-chained ledger, and one button freezes everything. Mandate is open source (AGPL-3.0) with a free hosted beta.

This skill teaches your agent (Claude Code, Claude Desktop, Cursor, Codex and others) to spend money only through Mandate.

### What your agent does with it

- **Checks before it asks**: what is left today and in total, which merchants and hours are allowed, and when you need to approve.
- **Requests every purchase first** (`request_purchase`), and pays only what was approved.
- **Waits for you** when a purchase needs your approval, and tells you exactly what is waiting.
- **Settles every hold**: captures what was actually paid, or voids it if nothing was bought.
- **Proposes a spending plan** for multi-step tasks, so you approve the list once.
- **Gives helper agents narrower sub-mandates** when you ask, and can hand merchants a signed voucher.

### Safe by design

- Never approves its own request and never clicks your consent or approval pages.
- Never works around a "no": no other card, no splitting a purchase to get under a limit, no renaming the merchant.
- Never asks for your card numbers or real provider API keys, and never prints your Mandate tokens.
- Amounts are handled in the mandate's currency minor units, exactly as Mandate expects.

### Ways to connect

- Hosted MCP server with OAuth consent (one command in Claude Code), or the local stdio MCP server.
- Python and TypeScript SDKs, the REST API, or an OpenAI/Anthropic/Gemini-compatible proxy that meters every call.

### Links

- Hosted beta and docs: https://mandate-ashen.vercel.app
- Source: https://github.com/Ivan825/Mandate (AGPL-3.0)

## Requires

- A Mandate account (free hosted beta) or your own Mandate server
- Optional: Node.js or Python

## Known limitations

No currency conversion: purchases must be in the mandate's currency. Approvals cover one exact amount and expire after 24 hours. Sandbox mandates don't issue vouchers. The Python (3.9+) and TypeScript (Node 18+) SDKs install from the GitHub repo; they are not on PyPI or npm yet.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Mandate: Safe Spending for AI Agents skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent an AI agent from overspending or making unauthorized purchases?

Your agent never holds a card. It asks Mandate before every purchase, and Mandate decides against the terms you set: per-purchase, daily and total limits, allowed merchants, blocked categories, active hours and an approval threshold. Above that threshold it waits for your approval. The skill also tells the agent never to work around a "no" (no other card, no splitting a purchase, no renaming the merchant) and to capture only what it actually paid.

### Which AI frameworks and integration methods are supported?

Any MCP client: the hosted server with OAuth (Claude Desktop, Claude Code, Cursor, Windsurf, Codex) or the local stdio server. Without MCP: the REST API, the Python and TypeScript SDKs (with ready-made tools for the OpenAI Agents SDK, LangChain, the Vercel AI SDK and OpenAI function calling), or the OpenAI/Anthropic/Gemini-compatible proxy, which meters every model call against a mandate.

### Can I use this to manage spending across a team of multiple agents?

Yes. With your say-so, an agent can carve a narrower sub-mandate for a helper (delegate): lower limits, a subset of merchants, no later expiry. The helper's spending counts against the parent, delegation goes at most 3 levels deep, and revoking the parent revokes every helper under it.

### What is in this skill?

One SKILL.md that teaches your agent to spend through Mandate: how to connect, the check-request-pay-settle routine, every MCP tool and its arguments, amounts and currencies, plans, sub-mandates, vouchers, and what to do for each kind of refusal. Mandate itself is open source (AGPL-3.0) with a free hosted beta, or you can run your own.

### Are there any limitations regarding international currencies or transaction timing?

Each mandate has one currency and nothing is converted, so a purchase must be in the mandate's currency. Amounts are whole numbers in that currency's smallest unit (1299 = $12.99). An approval covers one purchase of exactly that amount at that merchant, for 24 hours, and an unanswered request expires after 24 hours by default. The proxy for model calls needs a USD mandate.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
