NanoPay for Discord
0
stars
5.2k
lines
38
files
0
forks
8
followers
languages
Python 88%HTML 12%
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/.
events
tags
circle components
team · solo
1 (Solo) — Prabakaran Sivakumar (zkasuran)
on xx/zkasuran