Software is becoming a customer.
AI agents now do paid work. They call models, buy data and rent computing power, often in tiny amounts. Bank accounts and cards were built for people, with sign-ups, identity checks and fees that make tiny payments impractical. Bitcoin needs none of that: software can hold a key and pay over the internet, at any hour, in fractions of a cent.
L402 is one way to do it. A service answers a request with a Lightning invoice, the software pays, and the service lets it in.
A budget is a boundary.
A person sets the job, the budget and the approved services. The system enforces those limits outside the AI model, and stops when anything does not match.
A budget is a boundary, not a suggestion.
- Human sets scopeDefine the job, total budget and approved destinations.
- Service quotesName the service, amount and destination.
- System approves + paysEnforce limits outside the model; stop on a mismatch.
- Service deliversRecord the payment status and return the requested work.
- Review the resultCheck delivery and usefulness; escalate uncertainty.
Check the work.
A receipt proves a payment happened. It does not prove the answer is right. Record what was bought, check what came back, and do not let a retry turn into a second purchase.
This is the kind of infrastructure Loop XXI builds.
Check your understanding
An AI agent has a valid payment receipt. Does that prove its answer is correct?
No. The receipt proves a payment. Whether the work is correct needs its own check.
Sources & further reading
Reviewed 16 October 2026. Sources support the explanations; hypothetical examples and diagrams are labelled where they appear.
- Lightning Labs: L402
Lightning payments for API access.