Per-citation micropayment toll layer for independent publishers — AI agents pay in USDC on Arc every time they cite your work.
Keryx is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on Agent, Blockchain, Payment. It currently has 5 GitHub stars and 0 forks, and sits alongside related tools like gold-402, internet-court-skill, ProwlFi.
Lepton Agents Hackathon submission (Canteen × Circle) — Live Demo
Keryx is the first AI agent that pays publishers every time it cites their work, using Circle's x402 micropayment protocol on the Arc Testnet. It is a full toll layer for the agent-first internet.
AI agents consume publisher content at scale to answer user questions — often without compensating the original creators. Keryx solves this with a machine-to-machine payment rail: every citation costs the agent a small USDC fee, which flows instantly to the publisher's wallet.
User asks a question
↓
Agent identifies knowledge gaps (Groq / Llama 3.3)
↓
Agent fetches free previews of candidate articles
↓
Agent decides: PAY or SKIP based on relevance
↓
Circle Gateway pays the cite endpoint via x402 (Arc Testnet)
↓
Publisher receives USDC; citation receipt stored on-chain
↓
Agent integrates paid content into final answer
| Feature | Details |
|---|---|
| x402 Paywall | 402 Payment Required toll layer on every citation endpoint |
| AI Agent | 5-step ReAct loop: Plan → Draft → Evaluate → Pay → Reflect |
| RSS Ingestion | Publishers register via RSS; articles SHA-256 fingerprinted |
| Sybil Prevention | Domain ownership verified via DNS TXT records |
| Data Freshness | Vercel Cron job re-ingests all RSS feeds every hour |
| Publisher Dashboard | Live USDC earnings, citations, Arc Explorer links |
| Transaction Explorer | Live on-chain tx table with Arc Testnet links |
| Mobile Responsive | Sliding drawer sidebar, responsive header |
| Layer | Technology |
|---|---|
| Framework | Next.js 15 (App Router, nodejs runtime) |
| Payments | @circle-fin/x402-batching, Circle Gateway, Viem |
| Network | Arc Testnet (Chain ID: 5042002) |
| LLM | Groq llama-3.3-70b-versatile |
| Database | Supabase (PostgreSQL + Realtime) |
| Deployment | Vercel (with Cron) |
Create a .env.local file:
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=
SUPABASE_SERVICE_ROLE_KEY=
ARC_TESTNET_RPC=
SELLER_ADDRESS=
SELLER_PRIVATE_KEY=
BUYER_ADDRESS=
BUYER_PRIVATE_KEY=
GROQ_API_KEY=
NEXT_PUBLIC_BASE_URL=
CRON_SECRET= # Optional: secures /api/cron endpoint
npm install
npm run dev
# Navigate to http://localhost:3000
Configured for Vercel. All env vars must be set in the Vercel dashboard. The vercel.json configures a cron job to refresh RSS feeds every hour automatically.
[!WARNING] Security Disclaimer — This is a hackathon prototype for the Arc Testnet only.
- Private Keys: The buyer agent's private key is read from environment variables in the serverless function. This is not safe for production. A real system must use a KMS or MPC wallet..
- Domain Verification: DNS TXT verification is implemented but can be bypassed via
DEMO_MODE=true. Disable this for production.- Do not use with real funds.
Hackathon Submission — This project incorporates components from the arc-nanopayments sample to demonstrate x402 Gateway capabilities natively in a Next.js App Router environment.
⚡ The gold standard for x402 resources. 300+ projects, SDKs, tools, facilitators, and ecosystem data for the HTTP 402 Payment Required protocol. Curated by 24K Labs.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
The world's first privacy layer for AI agents on Solana — stealth addresses + x402 payments. Every payment lands at a fresh, unlinkable address.