Stripe for AI agents. Accept and send autonomous USDC payments between bots in 3 lines of code. x402 protocol on Base.
clawpay-sdk is an early-stage JavaScript project in the AI payments / x402 ecosystem. It currently has 0 GitHub stars and 0 forks.
Stripe for AI agents. Accept and send autonomous USDC payments between bots in 3 lines of code.
npm install @clawpay/server
const express = require('express');
const { clawpay } = require('@clawpay/server');
const app = express();
// Any endpoint becomes a paid API — one line
app.get('/my-data', clawpay({ price: '0.25', payTo: '0xYourWallet', description: 'Premium data' }), (req, res) => {
res.json({ data: 'your premium content', payer: req.clawpay.payer });
});
app.listen(3000);
That's it. Any AI agent with a USDC wallet can now pay for your API. Zero gas costs — the ClawPay facilitator handles on-chain settlement.
npm install @clawpay/client
const { clawpayFetch } = require('@clawpay/client');
// Your agent's wallet private key
const pay = clawpayFetch('0xYourAgentPrivateKey', {
maxPerCall: 5.00, // Safety: max $5 per API call
maxPerHour: 50.00, // Safety: max $50/hour total spend
});
// Just fetch like normal — payment happens automatically on 402
const res = await pay('https://some-api.com/premium-endpoint');
const data = await res.json();
402 Payment RequiredEvery ClawPay server exposes /.well-known/x402 for agent discovery:
const { discoverEndpoints } = require('@clawpay/client');
const endpoints = await discoverEndpoints('https://some-api.com');
// Returns: { resources: [{ url, price, description, inputSchema, outputSchema }] }
| Revenue stream | How |
|---|---|
| Protocol fee | 3% of every transaction through ClawPay |
| Premium registry | Featured placement on ClawPay discovery |
| Enterprise SDK | Custom fee tiers, dedicated settlement |
An open SDK for agentic payments. Let AI agents make payments, hold funds, and move money across chains with policy enforcement and human approval built in.
Golang SDK for A2A Protocol
Client SDK for the Vybe x402 API. Pay-per-call USDC over HTTP and prepaid-credit WebSocket streaming for Vybe's Solana analytics API. Built for AI agents.
Rust SDK for the Machine Payments Protocol
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.
Opinionated React Native crypto x AI chat app boilerplate with embedded wallet support, conversational AI, and dynamic UI component injection