CiteFlowAI
CiteFlowAI is a research terminal where every answer pays its sources. Users authenticate through Circle User-Controlled Wallets bridged into Supabase sessions, lock a micro-budget per query, and get grounded answers back. The orchestration loop in src/lib/ai/research-agent.ts evaluates registered articles with embedding retrieval from src/lib/ai/embeddings.ts and routes USDC nanopayments to cited creators, with src/lib/payments/circle-api.ts wrapping Circle's Programmable Wallets API and src/lib/payments/treasury.ts managing pay-per-prompt escrow and dynamic refunds. Agents get first-class access: an x402-payable research endpoint built on @x402/core and @circle-fin/x402-batching in src/lib/x402/server.ts, plus an MCP server in mcp-server/ that plugs the paid research tool into any MCP client. Creators prove ownership of their sites with a durable citeflow-owner proof token verified live in src/lib/verification/verify.ts. The Next.js app ships dashboard, research, treasury, receipts, and register-article routes under src/app, backed by Supabase for research history and the citation ledger.
0x9a30f8579fcFC81bD93b00E40f39e54d55dFcC46
1 (Solo) — vickman