Comparison · 2026

MnemoPay vs x402

x402 moves money on-chain. MnemoPay produces the receipt above the rail. They compose. Side-by-side breakdown of what each does, when to use which, and the 40-line code snippet to run both at once.


tl;dr

x402 is a settlement protocol — HTTP 402 + on-chain USDC on Base. Governed by the x402 Foundation, co-founded by Coinbase and Cloudflare in 2026.

MnemoPay is the trust layer above any payment rail — Ed25519-signed receipts, agent FICO (300-850), escrow, HITL approval, Article 12 audit chain, portable reputation.

Not substitutes. x402 moves the money. MnemoPay records the decision. The MnemoPay SDK ships an X402Rail adapter that wires the two in 4 lines.


Feature compare

Capability x402 MnemoPay
What layerSettlement railTrust + governance layer
Default money railUSDC on BaseStripe, Paystack, Lightning, x402, Google AP2
On-chain settlementYes (Base L2)Optional (via X402Rail or LightningRail)
Off-chain railsNoYes — Stripe + Paystack
Signed receiptsTx hash on-chainEd25519 + Merkle chain off-chain, on-chain anchor optional
Agent FICO scoreNoYes — 300-850, payment + behavior weighted
EscrowSmart-contract patternsYes — built-in, with refund / dispute window
HITL approvalNoYes — charge_request / charge_approve
EU AI Act Article 12Tx history serves as logBuilt — exportable audit bundle
Spend policyPer-call priceFiscalGate budgets + per-merchant caps + categories
LicenseApache 2.0Apache 2.0
SDK installx402 client libsnpm install @mnemopay/sdk
Production traction165M+ tx (2026)1.1k+ npm weekly, 40 tools on Smithery
Best whenPure pay-per-call between agents + merchants on webAudit trail, reputation, multi-rail, compliance, escrow

Use them together

The cleanest pattern in 2026 is x402 underneath, MnemoPay on top. The on-chain transaction is the money truth; the MnemoPay receipt is the policy + governance truth.

import MnemoPay, { X402Rail } from "@mnemopay/sdk";

// agent identity + rail
const agent = MnemoPay.quick("my-agent");
await agent.useRail(new X402Rail({ chain: "base", asset: "USDC" }));

// agent pays a merchant per API call
const tx = await agent.charge(0.05, "GET /forecast");
await agent.settle(tx.id);

// receipt is signed, FICO updates, audit chain extends
const bundle = await agent.exportBundle({ format: "article12" });

4 lines of integration. x402 handles the money. MnemoPay handles the receipt + FICO + audit bundle.


When to use which

Use x402 alone

Pay-per-API call between agents on the open web. No audit requirement. No reputation portability needed. Crypto-native team. USDC settlement is acceptable.

Add MnemoPay

EU operations (Article 12). Need agent FICO for cross-platform trust. Need escrow with dispute window. HITL approval for high-value charges. Multi-rail (Stripe + Paystack + x402 + Lightning). Compliance evidence beyond an on-chain hash.


FAQ

Is x402 a competitor to MnemoPay?

No. x402 is a settlement protocol. MnemoPay is a trust + governance layer. They sit at different points in the stack. x402 is what we use when the rail is on-chain; the MnemoPay SDK ships an X402Rail adapter specifically to compose with it.

Why would I add MnemoPay if x402 already gives me a tx hash?

A tx hash tells you money moved. It doesn't tell you: why it moved, who approved it, what budget it counted against, what the agent's reputation is, what dispute window applies. MnemoPay records all of those alongside the tx hash. Auditors, finance teams, and regulators (EU AI Act Article 12) want the second set, not the first.

What about Google AP2 or Agent Commerce Kit?

Both are also rails / protocols that compose with MnemoPay the same way x402 does. See MnemoPay vs AP2 and MnemoPay vs Agent Commerce Kit.

npm install @mnemopay/sdk

Apache 2.0 · v1.11.1 · Free self-hosted forever