
This is a full-featured toolkit for building and consuming paid APIs on Stacks using the x402 protocol. You can probe endpoints to check costs before paying, execute calls with automatic payment handling, and scaffold complete Cloudflare Worker projects with payment middleware already wired up. The inbox messaging is interesting: it uses sponsored sBTC transactions so you can send messages without worrying about STX gas fees. It also wraps OpenRouter for AI model integration. If you're building micropayment APIs or need to call existing x402 endpoints from Claude, this handles the entire flow from discovery to payment polling. The scaffolding commands generate production-ready Hono.js projects with wrangler configs, which is genuinely useful if you want to spin up your own paid API quickly.
$ npx -y skills add aibtcdev/skills --skill x402 --agent claude-codeInstalls into .claude/skills of the current project.
Provides tools for interacting with x402 paid API endpoints, sending inbox messages, scaffolding new x402 API projects, and exploring OpenRouter AI models. Payment flows are handled automatically using the configured wallet.
bun run x402/x402.ts <subcommand> [options]
List known x402 API endpoint sources with descriptions and usage examples.
bun run x402/x402.ts list-endpoints
Output:
{
"network": "mainnet",
"defaultApiUrl": "https://x402.biwas.xyz",
"sources": [
{
"name": "x402.biwas.xyz",
"url": "https://x402.biwas.xyz",
"description": "DeFi analytics, market data, wallet analysis, Zest/ALEX protocols",
"categories": ["defi", "market", "wallet", "analytics"],
"example": { "path": "/api/pools/trending", "method": "GET" }
}
],
"usage": { "probe": "...", "execute": "..." }
}
Probe an x402 API endpoint to discover its cost WITHOUT making payment.
Sponsors