Introduction
Loomal is the payments layer for AI agents — price any HTTP endpoint or MCP tool in USDC, settle on Base, return a signed receipt.
AI agents need to pay for things, and the services they call need a way to get paid. Credit cards don't fit: agents have no credit score, and card networks take a 30¢ minimum on every charge. Loomal is the payments layer built for them — price any endpoint in USDC, settle on Base in seconds, return a signed receipt.
Building the agent side — a wallet, inbox, vault, calendar, and DID for an agent identity? That moved to Mailgent. Loomal is the seller/payments product.
Earn USDC per call
You operate a paid HTTP endpoint or MCP tool. Drop our middleware on a handler, and any paying agent (or human) can call it — the SDK handles the x402 challenge, verifies the agent's signed USDC authorization, settles on Base, and returns a signed receipt.
app.get(
"/search",
requirePayment({ amount: "0.05" }),
(req, res) => res.json({ results: [/* ... */] }),
);→ Quickstart — ship a paid endpoint in 5 minutes.
How the pieces fit
Every API key belongs to a Project. Every Project belongs to an Org (your workspace and billing container). Turn on Pay → Accept in a project, wrap a handler with requirePayment, and you're charging per call. That's the whole shape.
Where to go next
- Shipping a paid endpoint? → Quickstart
- Want the full flow (frameworks, local testing, webhooks, refunds)? → Accept Payments