← all projects

NanoPay for Discord

@zkasuran·Asuran·2 followers·added 2026-07-19
0
stars
3.8k
lines
37
files
0
forks
2
followers
languages
Python 100%

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
builder bio

Python + Node.js · agent tooling, dev infra, open source

team · solo

1 (Solo) — Prabakaran Sivakumar (zkasuran)

on xx/zkasuran
last pushed 2026-07-06