Command center for onchain agent spend allowances on Monad testnet.
Next.js 15 · TypeScript · Tailwind CSS v4 · Zustand · TanStack Query · Axios · Wagmi / viem / RainbowKit · Framer Motion
Design system: see DESIGN.md.
cd frontend
cp .env.example .env.local # already seeded for testnet
npm install
npm run devOpen http://localhost:3000.
| Variable | Purpose |
|---|---|
NEXT_PUBLIC_LEASH_FACTORY |
Factory address |
NEXT_PUBLIC_USDC |
Monad testnet USDC |
NEXT_PUBLIC_ENVIO_GRAPHQL_URL |
Envio GraphQL |
NEXT_PUBLIC_API_URL |
Backend API (policy lab) |
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID |
WalletConnect (optional for injected) |
NEXT_PUBLIC_RPC_URL |
Monad RPC |
cd ../backend/api && npm run devPolicy lab uses POST /vault/:vault/session/:id/can-spend.
| Path | Role |
|---|---|
/ |
Landing |
/app |
Command center |
/app/fund |
Deposit / withdraw |
/app/sessions |
Create + list sessions |
/app/sessions/[id] |
Detail + revoke |
/app/ledger |
Envio activity feed |
/app/policy-lab |
can-spend preflight |
/docs |
Pitch / how it works |
- Connect wallet on Monad testnet
- Create vault
- Deposit USDC (approve → deposit)
- Create agent session
- Watch ledger (indexer lag ~seconds)
- Policy lab / revoke
npm run dev
npm run build
npm run start
npm run lint