Skip to content
Talk to us

Custody

Who holds the funds in an AI agent payment system? Custody, escrow and insolvency

Updated

Sources read

Whoever a user needs in order to withdraw. If getting money out needs the operator to cooperate, the operator holds the funds, whether the product calls it custody, escrow or non-custodial. Most public descriptions do not say which.

What this lets you do

Write the failure case into your evaluation before you integrate.

Contents
  1. Five ways agent payments are set up today
  2. Does “non-custodial” mean a user can always get money out?
  3. What happens to prepaid credits if the seller fails?
  4. What is an escape hatch, or forced withdrawal?
  5. Questions to ask any vendor

Five ways agent payments are set up today

Prepaid credits with each sellerWith the seller, as a balance it owes youYou are a creditor of that seller. Getting money back is the seller’s decision or a legal process
One pooled balance with an operatorWith the operator, in its own account or walletYou wait for the operator, or for whoever takes it over
Payment channelsIn a contract on a public blockchain, one deposit per channelEither side can close the channel alone with the last signed balance, after a waiting period. Someone has to be watching the chain
One stablecoin transfer on a public blockchain per paymentIn the payer’s own wallet until each paymentNothing is held in between. Each payment is final once the chain confirms it
Batches settled with a zero-knowledge validity proofIn a contract on a public blockchainIt depends on the design. In StarkEx, live since 2020, a user can send a withdrawal request to Ethereum directly. If the operator does not serve it in time, the contract freezes and users withdraw without the operator

Does “non-custodial” mean a user can always get money out?

No. The word usually describes a wallet where the user holds the key. It says nothing about money already committed to a channel, a pooled balance or a batch that has not settled.

What happens to prepaid credits if the seller fails?

They become money the seller owes you, and you wait with its other creditors. Credits are often non-refundable even while the seller is healthy. OpenAI’s prepaid API credits expire after a year.

What is an escape hatch, or forced withdrawal?

A request the user sends to the chain itself. If the operator does not serve it in time, the contract freezes and users withdraw directly. When dYdX v3, an exchange built on StarkWare’s StarkEx, wound down in October 2024, its users could still withdraw this way.

Questions to ask any vendor

  • If your company stopped operating tomorrow, which steps would my users take to get their money, and does any step need you?
  • Where is that written: in the contract code, or in your terms of service?
  • Has anyone done it on the live system?

Evaluating payment infrastructure for agents?

Tell us what you are trying to decide, and our team will walk you through the trade-offs.

Talk to us