PayPal sandbox. No real money moves.Reading the live hold…
Reading the live hold…… free
Reading the live hold…

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.

Follow the money ↓
$0.00$0.03$0.06
Free…
Committed…
Refused…

Switch the view with the button above.

0

Agents spend. Dashboards report.

A hold is the other order: permission first, spend second, reconciliation last.

53%

of organizations have had AI agents exceed their intended permissions.

survey Cloud Security Alliance, commissioned by Zenity. n=445 IT and security professionals, Sep and Nov 2025. Source
92%

of organizations implementing agentic AI reported costs higher or much higher than expected.

survey IDC, sponsored by DataRobot. n=318 senior decision-makers, 1,000+ employee firms, July 2025. Source
1 in 5

enterprises have no real-time way to stop a runaway agent before the bill arrives.

survey VentureBeat Pulse Research. n=107 enterprises, July 2026. Source
80%

of companies say their AI agents have taken unintended actions. 39% say agents accessed unauthorized systems.

survey SailPoint, run by Dimensional Research (independent). n=353, May 2025. Source

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

1

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

Reading the journal…

Double entry: each group debits one account and credits another by the same amount, so the books cannot drift from the vessel.

2

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.

$
  1. Lease tokenOne bearer token names one hold. A wrong token is a 401.·
  2. Idempotency keyA new UUID per request. A repeat returns the stored result free.·
  3. PriceRead from the server registry. The agent cannot set it.·
  4. Cap checkIs the price within what is still free in the hold?·
  5. Spend-limit checkWould committed money pass the unsettled limit?·
  6. CommitOne journal group: committed up, free down.·
  7. Run the toolIn the same transaction. A failure rolls the commit back.·
  8. Store the resultSo a lost answer can be replayed without paying twice.·
  9. AnswerResult, price, remaining. A refusal says why.·
3

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.

CheckJournal computedPayPal GET measured
Captured$0.10capture COMPLETED, USD 0.10match
Fee$0.10USD 0.10match
Receipts5 receipts, 5 groups, 5 allocations of 2¢one capture, COMPLETEDmatch
Hold$0.10 + $0.10 open = $0.20authorization PARTIALLY_CAPTURED, USD 0.20match

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

CheckJournal computedPayPal GET measured
Captured$3.00capture COMPLETED, USD 3.00match
Fee$0.59USD 0.59match
Released$7.00authorization VOIDED, USD 10.00match
Conserved$3.00 + $7.00 = $10.00authorization USD 10.00match
One capture
$0.59
Three captures (estimate)
$1.56

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.

4

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.

Agentany MCP client
EndpointPOST /api/mcp
Lease authbearer token
Gatewayprice, key, replay
Kernellock, rules, journal
Toolclaude-haiku-5-5
PayPalhold, capture, void
Journal rows+2, one group
Toolran
Buyer chargedthe price
Evidencerecorded a served call in the 12 Nov journal
Served. The kernel checks the rules, writes the journal group and runs the tool in one transaction. The agent gets the result, the price and what remains. PayPal is not called: the money is already held.
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

  1. initializeHandshake. The server says its tool list can change.recorded
  2. tools/listThe agent sees summarise with its price in _meta, and a free check_budget.recorded
  3. check_budget { tool }Free. Returns the price, whether it is affordable and what remains. The lease comes from the token, never the request.recorded
  4. 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
  5. The same call again, same UUID and textReplayed from the stored result. Charged 0.measured
  6. 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
RequestHTTPWhat it shows
GET /api/health200API function is up
GET /api/health/db200database reachable, read time returned
GET /api/openapi.json200contract 0.5.2, 15 paths
POST /api/mcp tools/list2002 tools: summarise, check_budget
POST /api/mcp tools/call, no token401WWW-Authenticate: Bearer realm="pashadhara-lease"
POST /api/webhooks/paypal, no headers400Missing PayPal signature headers
POST /api/webhooks/paypal, fake signature400rejected (an earlier audit saw 500 here)
POST /api/internal/settlement/sweep, no auth401closed to the public
GET /api/v1/leases, no auth401reads need a key
POST /api/showcase/try?price_minor=1001402cap_reached, remaining 997
POST /api/showcase/try?price_minor=698402exposure_limit, the spend-limit rule

Not exercised: a signed PayPal webhook, the settlement sweep on a schedule, any call with a real token.

5

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.