An on-chain budget for AI agents, on Celo
Your agent will pay whoever asks. Purser makes it pay people, and only so much each.
On 18 March 2025 two replies were slipped into aixbt's queue and the agent sent 55.5 ETH, about $100,000, to one brand-new address. Nothing in the payment asked who was on the other end.
A Purser budget is the payer of every payment your agent makes. Before a cent moves, the token itself asks it two things: is a verified person behind this address, and how much has that person had today.
Ask the budget about any address, live:
An agent's payment requests
rules: 0.05 a payment · 3 payments a person a day
reading the Self registry on Celo…
Each name is checked live against the Self agent registry on Celo. Nothing is sent.
The case
18 March 2025, 01:58 UTC
Two replies reach the queue.
Someone got into aixbt's dashboard and queued two replies. The agent had a tipping feature and a wallet holding 55.5 ETH.
How it works
The token asks the budget. Three questions, answered in one read, before any money moves.
your agent
signs one payment
USDC on Celo
asks before moving
the budget
answers yes or no
- Did your agent sign this?
- Is a person behind the payee?
- How much has that person had today?
01
Did your agent sign this?
The signature must come from a key you listed as a spender. Lose the key and you remove it in one transaction; the money never sat on it.
02
Is a person behind the payee?
The budget reads the Self agent registry: the payee must be an agent, or its owner, backed by a fresh passport proof. Every agent of one person reports the same person.
03
How much has that person had today?
Each payment uses one of the person's slots for the day, and the slot is written into the token's own nonce. A used nonce cannot be used twice, so the token keeps the count for us.
The answer is a view call, so it writes nothing and costs the payer nothing extra. A refusal reverts the transfer itself: there is no second step for an agent to skip.
Architecture and integration
Nobody holds the money but the budget. Your agent signs, the token asks, the registry answers.
Self Agent ID decides who is paid
The registry is read inside every transfer. An agent that is not backed by a person is turned away by the token, and every agent of one person shares that person's day.
Altana decides how much comes in
You top the budget up from your Altana wallet through a session key that can only call feed, capped per day, and revoked in one transaction.
x402 stays exactly as it is
Sellers keep their 402 responses and Celo's facilitator settles as usual. Only the payer changes: the budget instead of a hot key.
Set up on your phone
Three signatures, about two minutes. Owner, rules, agent, money.
- 01
Connect the wallet that will own it
MetaMask or any Celo wallet. It pays a few cents of gas; nothing else is asked.
- 02
Set the rules
- 03
Name your agent's key
- 04
Put in what it may spend
CONNECT
Connect the wallet that will own it
Proof
It has already paid someone. On Celo mainnet, through the x402 path any agent uses.
On Celo mainnet
every line links to its transaction- 01Factory deployed, source verified
- 02Budget opened with its key and rules in one call
- 03Topped up with 1.00 USDC, inside its daily limit
- 04Paid 0.01 USDC to the owner of Self agent #203, settled by Celo's x402 facilitator, which paid the gasPaid
- 05The agent registered its ERC-8004 identity, #10221, from its own key
- 06Bought a domain audit from PrimeSentinel for 0.01 USDC. The seller checked the agent's person (Self agent #248); the budget checked the seller's (#241)Paid
- 07The audit had found missing security headers on this site. Fixed, then the re-audit passedPaid
- 08A new factory, whose budgets also check that Self's own provider vouched for the person, source verified
- 09The live budget opened from it and topped up with 1.00 USDC
- 10Its first payment: another audit from PrimeSentinel, after the budget confirmed Self's own provider vouched for the sellerPaid
On a fork of Celo
38 passingReal USDC and USD₮, the real Self registry, real agents: #203 and #189 belong to one person, #150 and #190 to two others, #170 was burned. Purser's own agent, #248, and the sellers it bought from are read at a later block.
- a verified person is paid, in both tokens, through the token's own transfer
- no person, a burned agent, or an owner that does not match: refused inside the transfer
- two agents of one person share one day; someone else is untouched
- the token's permit and cancel cannot be signed against the budget
- a relayer cannot redirect, enlarge or replay a payment
- windows that cross midnight or run long are refused
- a malleable signature and a removed key are refused
- a budget opened from the factory is configured in the same call
- a seller whose proof expires is refused by name, on a day with unused slots
- a person vouched for by any provider but Self's is refused, and every payment stops if Self withdraws its provider
Invariants, under fuzzing
4 passing3,600 random calls a run across several days, mixing good and bad payments, rogue keys and top-ups. People reach their cap 8 to 12 times a run.
- no person is ever paid past their day, in either token
- nothing ever reaches an address with no person behind it
- the balance is always exactly what came in minus what was paid
- the balance never passes the ceiling
For developers
One wrapper around fetch. Your x402 calls stay the same.
When a seller answers 402, the wrapper finds the person behind the seller, picks the next free slot for today, asks the budget for the exact transfer, signs it with your agent's key and pays. If the budget would say no, it says why before anything is signed.
Sellers can name their Self agent in the 402 with extra.selfAgentId. Without it, the wrapper tries the pay-to address as an agent key, then as a service the owner listed.
import { wrapFetch } from "purser";
const pay = wrapFetch(fetch, {
client, // a viem public client on Celo
purser: "0x…", // your budget
account: agentKey, // the key your agent signs with
});
const res = await pay("https://seller.example/api/answer");