Universal paywall system that enforces on-chain payments from bots and AI agents using the x402 payment protocol
const express = require("express");
const { paywall } = require("ai-paywall");
const app = express();
app.use("/hidden/dog", paywall({
price: "0.01",
receiver: "0x...",
domain: "www.demo1.com"
}));Bots, crawlers, and AI agents are accessing your research, APIs, and datasets without permission or payment. There's no standard enforcement mechanism.
A seamless end-to-end flow from content upload to AI agent payment

Content creator uploads premium content through the gateway. Automatically encrypted with Seal and stored on Walrus decentralized storage.
Install the npm package and protect your routes with the paywall() wrapper. Configure price, receiver address, and access rules in one line.
When an AI agent or bot tries to access protected content, they receive a 402 Payment Required response with payment instructions.
Agent pays via Sui smart contract. AccessPass is minted with usage limits, expiration, and metadata. Payment is verified on-chain.
Gateway verifies the AccessPass, decrements usage counter, fetches encrypted content from Walrus, and Seal decrypts it.
Decrypted content is returned to the AI agent. All transactions are logged on-chain for complete audit trail and analytics.
Add AI payment enforcement to your existing application with minimal code changes
npm install ai-paywallconst express = require("express");
const { paywall } = require("ai-paywall");
const app = express();
app.use("/hidden/dog", paywall({
price: "0.01",
receiver: "0x...",
domain: "www.demo1.com"
}));
app.get("/hidden/dog", (req, res) => {
res.send(req.paywall?.encryptedBlob);
});AI agents will now receive payment instructions when they try to access your protected routes. After successful payment, they'll receive an AccessPass and gain access to your premium content.
A complete solution for content creators, API providers, and data publishers
Content encrypted with Seal, stored on Walrus. Only paid users can decrypt and access.
Immutable payment verification through Sui blockchain AccessPass with usage tracking.
Simple one-line integration for any Node.js, Express, or Next.js application.
Standard "402 Payment Required" flow designed specifically for AI agents and bots.
Built on Walrus for reliable, censorship-resistant content delivery at scale.
Fine-grained permissions with time limits, usage caps, and domain restrictions.
Optimized verification flow with sub-second payment confirmation and content delivery.
Fully decentralized infrastructure with no central authority or single point of failure.
Blockchain payments, decentralized storage, and encryption working together to protect your content
Stores domain-to-content mappings and mints AccessPass objects when AI agents pay. Each AccessPass tracks usage limits and expiry, enabling pay-per-access enforcement.
Holds encrypted premium content off-chain. When AccessPass is verified, the gateway fetches the encrypted blob from Walrus using the CID stored on Sui.
Encrypts content at upload and only releases decryption keys when a valid AccessPass exists. Without payment, content remains encrypted and unusable.
Join the future of content protection and start earning from AI agents accessing your premium data.