Confidential payments for AI agents
Give your agent a private balance.
It pays APIs, tools and other agents in USDC on Solana. Anyone can see that it paid. Only you and the payee see how much.
1How it works
A paid request is one extra round trip.
The provider answers 402 with a price. The wallet pays it, and the same request goes through.
Request
A normal request. No account, no API key.
GET /v1/search?q=gpu+spot+price HTTP/1.1
Host: search.example2Limits
The agent spends. You set the limits.
A policy is a small JSON file. The wallet checks every payment against it, and one call stops them all.
- search api0.0042paid
- price feed0.001paid
- page fetch0.035paid
- summarizer agent0.12refused at the payee check
- page fetch0.08refused at the per payment check
- page fetch0.035paid
- search api0.0042paid
- page fetch0.035refused at the daily budget check
3Privacy
What the chain sees, and what it doesn’t.
Confidential, not anonymous. Who paid whom, and when, stays public. Deposits and withdrawals show their amounts.
- From
- 5G7o…S6To
- To
- BAmB…ti6z
- When
- 09:30:02 slot 418203613
Printed on the slip. The same for every reader.
4Interface
A wallet for your code. Five tools for your model.
Both spend through the same wallet, so the same policy applies. Keys never enter a prompt.
doei_balancereadsdoei_quotereadsdoei_payspendsdoei_fetchspendsdoei_receiptsreads
const wallet = createAgentWallet({ rail, asset: USDC, policy });
// The API answers 402 with a price. The wallet checks your policy,
// pays from the private balance, and retries with proof.
const response = await wallet.fetch(
"https://api.example.com/v1/search?q=priority+fees",
);5Token
A fee on each payment funds buybacks of DOEI.
1% per payment, 100% of it to buybacks. And part of every trade of DOEI is set aside for the agents that pay through Doei.
One transaction, two outputs. Both amounts sealed.
6Status
What exists today.
The wallet, the paywall and the Privacy Rings adapter have carried a real USDC payment end to end on Solana mainnet.
- Policy engineImplemented
- HTTP 402 client and paywallImplemented
- MCP serverImplemented
- Privacy Rings adapterVerified on mainnet
- Wallet page and command lineLive
- Paid resource and fee checkLive
- Package releaseInstallable
Is this anonymous?
No. Amounts and balances are hidden. Addresses and timing are public, and deposits and withdrawals show their amounts.
Where does the policy run?
In the wallet process, before anything is signed. It is not an on-chain program, so it only limits an agent that spends through the wallet.
Is this x402?
Same HTTP 402 pattern, its own wire format. It is not compatible with x402 clients or facilitators.
Can I install the SDK today?
Yes. The quickstart has the install line.