Skip to content

From the lab · Agent payments

AgentsPay. Pay for compute only when the hardware proves it.

A Solana program and TypeScript toolkit for attestation-gated, metered payments: an AI agent pays a provider only against a usage receipt signed inside an attested enclave, and only while that attestation is valid.
Research prototype · Led by Maitreya Kulkarni

[ 01 ]Overview

What it is, and what it does.

Agents already pay per request on Solana, through x402 and payment channels. But settlement is blind to delivery: a voucher proves the payer authorised an amount, not that the inference ran, that it ran the advertised model on attested hardware, or that the token count was honest. AgentsPay tests a fix.

Every settlement needs two signatures: a voucher from the agent's short-lived session key ("I authorise up to this amount") and a usage receipt from a key generated inside the provider's trusted execution environment ("this enclave served this many units"). The program pays the smallest of the voucher, the units times the price and the deposit, and only while the provider's attestation is valid. Revoke the attestation and payments stop; the payer can leave at once.

The Anchor program has five modules: an attestation registry approved by an M-of-N verifier committee, attested payment sessions, agent vaults with per-session caps, rolling limits, expiry and a kill switch, compute credits backed one to one by escrow and refundable at par, and ratings that can only come from sessions that settled real value. Around it sit a TypeScript SDK on Bun, an OpenAI-compatible provider gateway with sealed prompts, an attestation verifier and an end-to-end agent demo.

On Solana devnet, one transaction settles three paid inference calls against enclave receipts and refunds the rest of the deposit to the agent's vault. The devnet demo uses a simulated TEE and a one-member verifier committee, so it shows the payment flow working on a public cluster, not a hardware security boundary. The Intel TDX path is implemented but has not yet run on real TDX hardware.

[ 02 ]Inside

How it works.

01

Attestation registry

Enclave keys bound to approved workload measurements. One verifier can revoke, and revoking a measurement ends every attestation that depends on it.
02

Attested sessions

Payment channels settled against a voucher and an enclave receipt, so the operator cannot over-bill and the payer cannot under-pay.
03

Agent vaults

Owner-funded budgets with per-session caps, rolling limits, attestation and reputation gates, expiry and a kill switch.
04

Compute credits

Tokenized GPU capacity backed one to one by escrowed payment, sold only while attested and refundable at par if the provider defaults.

Solana · Anchor · TEE attestation · Payment channels · TypeScript

Start a build

Want something like it built for you?

A protocol to launch, a payment flow to ship, an asset to tokenize or a codebase to review before mainnet. Tell us where the money sits and we will tell you how we would protect it.

What happens next

  1. 01Tell us what you are buildingA short note or a 30-minute call: the product, the chain if you know it, and where the money sits.
  2. 02Hear back within 48 hoursEvery message is read by the team, not a filter.
  3. 03A first working sessionWe walk through the threat model and the admin powers with you, then propose a scope and a plan.