You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x402 Bazaar is an autonomous API marketplace built on the HTTP 402 Payment Required standard. AI agents discover services, pay in USDC on Base, SKALE on Base (ultra-low gas), or Polygon, and get instant access -- no API keys, no subscriptions, no accounts. The server verifies payments on-chain and enforces anti-replay protection, making every transaction trustless and permissionless.
Key Features
HTTP 402 Protocol -- Standard-compliant payment flow. Call an endpoint, get a 402 with payment details, pay USDC, retry with tx hash, done.
112 Native API Wrappers -- Web search, URL scraper, Twitter/X, weather, crypto, jokes, DALL-E 3, translation, code execution, sentiment analysis, and 100+ more -- all behind micropayments.
112+ Registered Services -- Growing marketplace of third-party APIs monetized through x402.
LangChain Integration -- Python package x402-langchain for agents built with LangChain/LangGraph.
Multi-Chain -- Base (mainnet) + SKALE on Base (ultra-low gas fees ~$0.0007/tx) + Polygon (mainnet, ~$0.001/tx via MATIC).
MCP Server -- Plug into Claude Desktop, Cursor, VS Code, or Claude Code as native AI tools.
One-Line Setup -- npx x402-bazaar init detects your IDE and configures everything.
Anti-Replay Protection -- Every transaction hash is stored in Supabase and can only be used once.
Budget Control -- Per-session spending caps for AI agents (configurable MAX_BUDGET_USDC).
Auto-Test on Registration -- New services are pinged automatically, with Telegram notification on result.
Public Stats -- GET /api/public-stats (no auth) for frontend homepage counters.
Quick Start
# One-line setup for AI IDEs (Claude Desktop, Cursor, VS Code)
npx x402-bazaar init
Or run the server locally:
git clone https://github.com/Wintyx57/x402-backend.git
cd x402-backend
npm install
cp .env.example .env # Fill in your keys
node server.js
Telegram bot token for monitoring alerts + interactive commands
TELEGRAM_CHAT_ID
Telegram chat ID to receive notifications
Scripts
npm start # Start the server
npm run mcp # Start the MCP server
npm run seed # Seed 112+ services into Supabase
npm run seed:wrappers # Register the 112 native wrappers
npm run demo # Run the autonomous agent demo
npm run demo:live # Live demo with terminal UI
API marketplace powered by HTTP 402 protocol — AI agents pay per call with USDC on Base. 69 native endpoints, on-chain payment verification, multi-chain (Base + SKALE).