Secure Payments for Autonomous AI Agents on Casper

HTTP 402 payments with policy limits, request-bound receipts, escrow, and audit trails. All visible through Casper.

Run Dashboard DemoView Audit Trail

How It Works

1. Agent calls protected API

An autonomous AI agent requests premium data from a protected resource.

2. API returns HTTP 402

The server responds with a PaymentRequirement — amount, merchant, requestHash, and expiry.

3. Agent pays under policy

The agent checks its spending policy (merchant allowlist, per-payment max, total budget) and authorizes exactly one request-bound payment.

4. Receipt unlocks premium data

Casper records the payment. The receipt is bound to the exact HTTP request. The API verifies it and releases premium data.

Quick Links

View PoliciesView PaymentsView MerchantsAudit Trail
All proofs use deterministic mock-* hashes. No real Casper funds are moved.
Terminal demo: pnpm demo:mock