From the lab · Agent payments
AgentsPay. Pay for compute only when the hardware proves it.
[ 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.
Attested sessions
Agent vaults
Compute credits
Solana · Anchor · TEE attestation · Payment channels · TypeScript
[ 03 ]Related
The services, research and use cases behind it.
Services
Use cases
Start a build
Want something like it built for you?
What happens next
- 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.
- 02Hear back within 48 hoursEvery message is read by the team, not a filter.
- 03A first working sessionWe walk through the threat model and the admin powers with you, then propose a scope and a plan.