← all projects

Agent CFO

@BBOSIK·added 2026-07-19
0
stars
3.8k
lines
61
files
0
forks
0
followers
languages
TypeScript 87%Python 11%JavaScript 1%

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/.

events
tags
circle components
team · solo

1 (Solo) — BK

on xx/Lazy_Ressa
repo description

Agent CFO for Lepton Agents Hackathon: policy-gated x402 payments on Arc testnet

last pushed 2026-06-25