Works with the AI Agents you already use

    Mandate: Safe Spending for AI Agents

    by Ivan Bhargava

    1

    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".

    Free

    Security scanned
    Mandate: Safe Spending for AI Agents

    Mandate: Safe Spending for AI Agents

    Example session with this skill installed

    Top up my OpenAI API credits by $12.99 using my mandate.

    • Read your context and instructions
    • Compiled the mandate

    I checked your mandate first (check_mandate): USD, $40.00 left today, OpenAI is on the allowed list, and purchases above $10.00 need your approval.

    So I asked Mandate before paying

    request_purchase  amount: 1299  merchant: "OpenAI"  purpose: "API credits top-up"  idempotencyKey: "openai-topup-1"
    → decision: pending   rule: approval
      reason: "Above the $10.00 threshold — needs your approval before the agent can retry."
    

    Nothing has been paid. A $12.99 purchase at OpenAI (API credits top-up) is waiting for your approval in Mandate.

    Once you approve it there, tell me and I'll retry the same request, pay, and capture what was actually charged. If you'd rather not, deny it and I'll stop. I won't approve it myself or pay another way.

    Illustrative session: amounts, limits and messages depend on your mandate.

    Connects securely to your tools. The creator never sees your data.

    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

    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

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 12 days ago

    • Free with an Agensi account

    Accounts
    A Mandate account (free hosted beta)
    oryour own Mandate server
    Optional
    Node.js
    orPython

    Permissions

    Network Access

    Network: talks only to your Mandate server (the hosted beta or your own). Terminal: only if you choose the local stdio MCP server or the SDKs. It never asks for card numbers or real provider API keys, and never prints your Mandate tokens.

    Listed12 days ago

    What's inside

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    New in Workflow Automation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.

    Free