Skip to content
Loop XXI

Lesson 07 of 07 · 3 min read

AI and Bitcoin

AI agents buy data, computing and services. They need money that works without a bank account.

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.

Conceptual diagram

A budget is a boundary, not a suggestion.

  1. Human sets scopeDefine the job, total budget and approved destinations.
  2. Service quotesName the service, amount and destination.
  3. System approves + paysEnforce limits outside the model; stop on a mismatch.
  4. Service deliversRecord the payment status and return the requested work.
  5. Review the resultCheck delivery and usefulness; escalate uncertainty.
If a check fails → stop.A retry must not silently become a second purchase.
General educational design for software spending. A payment receipt supports payment verification; it does not establish that the output is accurate or useful.

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.

  1. Lightning Labs: L402

    Lightning payments for API access.