Agent CFO
Agent CFO gives autonomous agents a finance controller that approves, rejects, and audits x402 nanopayments before any USDC is spent. The Next.js app evaluates each spend request in lib/agent-cfo.ts against budget, per-payment caps, vendor allow/block policy, and ROI, exposing the decision flow through app/api/cfo/evaluate and app/api/cfo/execute. Approved requests hit protected x402 endpoints under app/api/premium, such as research-brief, deep-scan, and trend-oracle, which respond with 402 Payment Required and Circle Gateway requirements handled in lib/x402.ts. A research agent in agent.mts drives the loop using @circle-fin/x402-batching and viem on Arc testnet, generate-wallets.mts provisions buyer and seller wallets, and every approval, rejection, and payment produces a receipt with a human-readable reason, persisted via Supabase migrations in supabase/.
1 (Solo) — BK
Agent CFO for Lepton Agents Hackathon: policy-gated x402 payments on Arc testnet