NanoPay for Discord
NanoPay is a Discord agent that pays its own way. Users run /ask in a channel; the planner in src/agent/planner.py decides whether the question needs a paid tool, pays the sub-cent USDC toll over x402 on Arc from the agent's own wallet, and replies with the answer plus an on-chain receipt. Payments run through an embedded x402 facilitator in src/payments/facilitator.py that submits EIP-3009 transferWithAuthorization transactions on Arc testnet USDC, so the signing agent never sends a transaction itself. Each Discord user spends under an individual budget managed via src/bot/payer.py. A FastAPI app in src/api/app.py powers the companion demo and landing page, with a test suite under tests/.
Python + Node.js · agent tooling, dev infra, open source
1 (Solo) — Prabakaran Sivakumar (zkasuran)