← Back to Products
💳

x402 Paywall Kit

Let your AI agent pay crypto paywalls automatically. Accept USDC payments with x402 protocol.

$29one-time purchase
Or pay with USDC:

What You Get

🤖

Agent-Side Auto-Payment

HTTP interceptor that detects x402 paywalls and pays automatically with your agent's wallet.

Express/Next.js Middleware

Drop-in middleware to protect your API routes with crypto paywalls. Works with any Express-compatible framework.

💰

USDC on Base

Accept payments in USDC on Base (EVM). Low fees, fast settlements, instant verification.

📦

Complete Package

3 NPM packages (x402-kit-shared, x402-kit-agent, x402-kit-express) + OpenClaw skill ready to install.

NPM Packages (Open Source)

# Install agent-side auto-payment
npm install x402-kit-agent

# Install server-side middleware
npm install x402-kit-express

# Shared utilities (auto-installed)
npm install x402-kit-shared
NPM: x402-kit-agent →NPM: x402-kit-express →NPM Source Code (Open Source) →

Quick Start

1

Agent-Side (Auto-Pay Paywalls)

import { createX402Interceptor } from 'x402-kit-agent';

const interceptor = createX402Interceptor({
  privateKey: process.env.WALLET_PRIVATE_KEY,
  network: 'eip155:8453', // Base mainnet
});

// Now all fetch() calls automatically pay x402 paywalls
const response = await fetch('https://api.example.com/premium-data');
2

Server-Side (Accept USDC Payments)

import { x402EnhancedMiddleware } from 'x402-kit-express';

app.use(x402EnhancedMiddleware({
  routes: {
    'GET /api/premium-data': {
      price: '$5.00',
      recipient: process.env.WALLET_ADDRESS,
      network: 'eip155:8453',
    },
  },
  logFilePath: './logs/sales.jsonl',
}));

What's Included

  • ✓ Complete x402-kit source code (MIT licensed)
  • ✓ 3 NPM packages published and ready to install
  • ✓ OpenClaw skill for agent automation
  • ✓ Policy engine with configurable payment limits
  • ✓ Transaction logging and monitoring
  • ✓ TypeScript types and full documentation
  • ✓ Example integrations for Express and Next.js
  • ✓ Lifetime access to updates

Ready to Accept Crypto Payments?

One-time purchase. Lifetime access. MIT licensed.