Your agent canspend what was held.Reading the hold….
The limit is a PayPal hold you approved. Each paid call is checked against what is left before the tool runs. A call that does not fit is refused and nothing is charged.
Switch the view with the button above.
Agents spend. Dashboards report.
A hold is the other order: permission first, spend second, reconciliation last.
of organizations have had AI agents exceed their intended permissions.
of organizations implementing agentic AI reported costs higher or much higher than expected.
enterprises have no real-time way to stop a runaway agent before the bill arrives.
of companies say their AI agents have taken unintended actions. 39% say agents accessed unauthorized systems.
Three of these are vendor-sponsored or vendor-run, and "unintended action" covers mistakes as well as attacks. They describe agents in general, not Pashadhara. Gartner forecast on 25 Jun 2025 that over 40% of agentic AI projects will be canceled by 2027 over costs, unclear value or weak risk controls (a forecast, not a measurement).
You grant a hold. That is the budget.
One PayPal authorization sets the ceiling. The gateway writes down every move against it.
Where the hold sits
Reading the live hold…
The permission has a lifespan
Every move is two journal rows
Double entry: each group debits one account and credits another by the same amount, so the books cannot drift from the vessel.
Agents spend. The gateway decides.
Live checks a spend against the current hold for free. The separate paid summary commits sandbox funds. Agent run replays a model’s recorded decisions. Autopilot is a browser simulation with scripted agents.
- Lease tokenOne bearer token names one hold. A wrong token is a 401.·
- Idempotency keyA new UUID per request. A repeat returns the stored result free.·
- PriceRead from the server registry. The agent cannot set it.·
- Cap checkIs the price within what is still free in the hold?·
- Spend-limit checkWould committed money pass the unsettled limit?·
- CommitOne journal group: committed up, free down.·
- Run the toolIn the same transaction. A failure rolls the commit back.·
- Store the resultSo a lost answer can be replayed without paying twice.·
- AnswerResult, price, remaining. A refusal says why.·
Run a paid sandbox tool
Summarise the prepared note about how this PayPal hold works. A successful request commits the gateway's price to this sandbox hold.
Paid runs need a live, open hold.
A claude-haiku-5-5 agent was given a $0.20 sandbox hold and a pile of invoice pairs to review. This is what its trace says it did, one step at a time. recorded 12 Nov 2026
- Reads the tool listLookup 2¢, bundle 20¢, and a free check_budget.
- Thinksmodel, 5.4 s
- Asks check_budget about the 20¢ bundleAffordable. 20¢ remaining. Nothing is spent by asking.free
- Decides against the bundlemodel, 4.7 s
- lookup BDifferent invoice numbers one day apart; payment evidence would show whether both were paid.$0.02 · served · 119 ms
- lookup CDiffering supplier names and invoice formats; evidence would show whether the amount was paid twice.$0.02 · served · 81 ms
- lookup ISame amount and date but a different supplier name and invoice number.$0.02 · served · 68 ms
- lookup KA suffixed invoice with a slightly different amount; it may be a credit note offset.$0.02 · served · 70 ms
- Thinks againmodel, 4.2 s
- lookup JDifferent invoice numbers one day apart with the same amount.$0.02 · served · 48 ms
- Writes its findingsmodel, 5.1 s
- Operator settles onceFive 2¢ receipts become one capture of 10¢.$0.10 captured
- PayPal is read back
Its answer scored 9 of 12. Scored on synthetic labels. One nondeterministic sample, no advantage over the baselines claimed. Model cost about $0.035, an estimate at assumed rates (4 requests, 20 s). The model asked for lookups B, C, I and K in one turn; the replay shows them one by one. The agent chose five $0.02 lookups over the $0.20 bundle, so it never met a refusal. invoice data is synthetic
The loop is how much the agents may still spend. It tightens as money is committed and it does not give. Drag an agent past it.
illustrative A simulation in this browser. The rules are the gateway's (cap first, then the spend limit). The agents are scripts, and prices other than $0.03 for summarise are made up.
Settle once. Release the rest.
Per call, nothing moves at PayPal. At the end the used amount is captured in one go, the rest is released, and the books are checked against what PayPal says.
Your autopilot run illustrative
Nothing to settle yet. Run the autopilot in step 2, then close the lease here.
Go to the autopilot ↑Recorded agent run, reconciled measured
The five lookups from step 2, on a real $0.20 sandbox hold. One capture, read back from PayPal at 16:11 UTC.
| Check | Journal computed | PayPal GET measured | |
|---|---|---|---|
| Captured | $0.10 | capture COMPLETED, USD 0.10 | match |
| Fee | $0.10 | USD 0.10 | match |
| Receipts | 5 receipts, 5 groups, 5 allocations of 2¢ | one capture, COMPLETED | match |
| Hold | $0.10 + $0.10 open = $0.20 | authorization PARTIALLY_CAPTURED, USD 0.20 | match |
The fee equals the sale. PayPal's fixed fee swallowed the whole 10 cents, which is why Pashadhara settles once instead of per call. The other 10 cents stayed an open authorization; it was not voided. invoice data is synthetic
Recorded settlement of a $10.00 hold measured
Three kernel commitments totaling $3.00, captured once, the rest voided. 12 Nov 2026. No model ran. usage is a fixture
| Check | Journal computed | PayPal GET measured | |
|---|---|---|---|
| Captured | $3.00 | capture COMPLETED, USD 3.00 | match |
| Fee | $0.59 | USD 0.59 | match |
| Released | $7.00 | authorization VOIDED, USD 10.00 | match |
| Conserved | $3.00 + $7.00 = $10.00 | authorization USD 10.00 | match |
One capture is measured. Three would repeat the fixed part: an estimate from the same fee formula, not a PayPal result.
Not shown and not claimed: an automatic seller payout from this path, a scheduler running the settlement sweep on production, a signed webhook delivered by PayPal to the hosted site.
One URL. Any agent.
An agent reaches all of this through an MCP endpoint. It never sees PayPal and never sets a price. Pick what happens to a call and see which part of the system it reaches.
- price
- from the server registry
- journal
- committed up, free down
- stored
- the result is kept for replay
PayPal is dotted on purpose: no outcome here calls PayPal. It is touched at grant, capture and void.
Ask the live server live when reachable
Real requests to this site's endpoint. No token, no spend.
What an agent does, in order
- initializeHandshake. The server says its tool list can change.recorded
- tools/listThe agent sees summarise with its price in _meta, and a free check_budget.recorded
- check_budget { tool }Free. Returns the price, whether it is affordable and what remains. The lease comes from the token, never the request.recorded
- tools/call summarise { text, idempotency_key }Charged the price. A fresh UUID per request: in one Claude Code run on a local fixture the model made up valid UUIDs unaided (one sample, not a rate).recorded
- The same call again, same UUID and textReplayed from the stored result. Charged 0.measured
- A call that does not fitisError with a reason, the price and the remaining balance. The agent decides what to do next. Nothing was charged.recorded
Connect a client
// .mcp.json
{
"mcpServers": {
"pashadhara": {
"url": "https://pashadhara.vercel.app/api/mcp",
"headers": { "Authorization": "Bearer <lease token>" }
}
}
}The lease token comes from whoever owns the hold. Tested with the official TypeScript SDK, the MCP Inspector CLI and Claude Code against a local fixture. Not tested: other clients; OAuth is not offered.
The deployed surface, probed measured 12 Nov 15:35 UTC
| Request | HTTP | What it shows |
|---|---|---|
| GET /api/health | 200 | API function is up |
| GET /api/health/db | 200 | database reachable, read time returned |
| GET /api/openapi.json | 200 | contract 0.5.2, 15 paths |
| POST /api/mcp tools/list | 200 | 2 tools: summarise, check_budget |
| POST /api/mcp tools/call, no token | 401 | WWW-Authenticate: Bearer realm="pashadhara-lease" |
| POST /api/webhooks/paypal, no headers | 400 | Missing PayPal signature headers |
| POST /api/webhooks/paypal, fake signature | 400 | rejected (an earlier audit saw 500 here) |
| POST /api/internal/settlement/sweep, no auth | 401 | closed to the public |
| GET /api/v1/leases, no auth | 401 | reads need a key |
| POST /api/showcase/try?price_minor=1001 | 402 | cap_reached, remaining 997 |
| POST /api/showcase/try?price_minor=698 | 402 | exposure_limit, the spend-limit rule |
Not exercised: a signed PayPal webhook, the settlement sweep on a schedule, any call with a real token.
Trust needs a mechanism.
I’m Nikhil Puri. I built Pashadhara around a question. How much freedom can you give an agent while keeping a limit you can rely on?
I want agents to be free to explore, decide and act. The boundary has to hold whatever the agent wants. Here that means a PayPal hold, a gateway that refuses before it charges, and books that have to match what PayPal says.