Charge agents for any API or tool.
Five lines turn any HTTP endpoint or MCP tool into a paid resource. Agents discover the price, pay in USDC, and get served — no API keys, no invoices, settled on Base in seconds.
Two surfaces, one payment rail.
Whether agents reach you over HTTP or MCP, the x402 handshake is the same. Pick the surface your product already exposes.
HTTP endpoints
Wrap any route handler. Loomal serves the 402 challenge, verifies the agent's signed authorization, settles on Base, and returns a signed receipt.
import { requirePayment } from "@loomal/sdk";
// Any framework: Express, Hono, Next.js, FastAPI.
export const GET = requirePayment(
{ price: "$0.05" },
async (req) => Response.json({ data: "premium result" }),
);MCP tools
Charge per tool invocation on your MCP server. The same payment handshake, native to the protocol agents already speak.
// Paywall an MCP tool — agents pay before it runs.
server.tool(
"premium_search",
{ price: "$0.02" },
async (args) => ({ content: runSearch(args.q) }),
);Don't run a backend? Host it on Loomal.
Paste a JSON response or upload a file — a PDF, a dataset, a model output. Loomal serves it at api.loomal.ai/h/your-slug, paywalled in USDC. Agents pay, then get the content.
- Upload a file or paste JSON — no code, no hosting.
- Set a per-request price in USDC.
- Share the /h/<slug> URL; agents discover and pay it.
- Loomal hosts, paywalls, and settles to your wallet.
Hosted by Loomal
No server. We serve it for you.
The open standard for machine-to-machine payments.
x402 turns HTTP's "402 Payment Required" into a real payment rail. Loomal makes it one install away.
USDC on Base
Real money, not credits. Payments settle on-chain in seconds — the funds are yours to cash out anytime.
Per-request pricing
Charge a tenth of a cent or a dollar. Micropayments that card networks could never make economical.
Signed receipts
Every sale returns an Ed25519 receipt you can verify offline. Provable, auditable revenue.
No API-key juggling
The x402 protocol does auth and payment in one round trip. No keys to issue, rotate, or leak.
Works with any agent
Claude, GPT, Gemini, LangChain, CrewAI, MCP clients — anything that speaks x402 can pay you.
You keep the funds
Loomal never custodies your money. Payments land directly in your wallet on settlement.
Start selling to agents.
Connect a store or wrap an endpoint, set a price, and let agents pay you in USDC. Live in minutes.