All AI Hub
AI agent matching infra with x402 payments — safe, instant access to agents with seamless billing.
Problem Statement
🧠Project DescriptionAll AI Hub is essential infrastructure for the AI era, connecting Personal AI Agents (the AI each individual owns) with Vertical AI Agents (specialized agents focused on specific domains).We are entering a world whereAI autonomously calls other AIs to complete tasks.Google’s A2A (Agent-to-Agent) standard defines how AI Agents communicate in that future.But A2A has one critical gap.🚨Problem: AI Agents cannot “discover” other AgentsA2A only defines thecommunication protocol.It doesnotprovide a way for an AI Agent to knowwhichother AI Agent to connect to.The number of A2A-ready AI Agents is rapidly increasingBut there isno way to know they existEven Google officially states “a matching layer for AI Agents is required”We are also heading toward a future where fake, low-quality, and spam Agents will explode in number.In this world, how can our Personal AI reliably findtrustworthy AI Agents?All AI Hub solves this fundamental problem.🔩The 4 Core Problems All AI Hub Solves1. AI Agent DiscoveryAll AI Hub publishes each agent’s capabilities, strengths, and use cases in the A2A AgentCard format.Providers (AI developers) simply register their AgentCard,and instantly make their Agent discoverable to Personal AIs around the world.2. AuthenticityEach AgentCard includes a signature.Users can verify the signature to ensure the AgentCard has not been tampered with.This eliminates the room for fake agents.3. ReputationBased on on-chain usage metrics(x402 transfer count and total payment volume),Personal AI can choose Agents with proven quality.Over time, good agents rise in score, while low-quality or malicious ones naturally fall.4. Payment (AI-to-AI Settlement)All AI Hub provides built-in task-based payments using x402.Personal AI can autonomously pay other agentsProviders (Vertical AI developers) don’t need to build paymentsNo web3 knowledge required🎛Value for Providers (Vertical AI Developers)By simply registering, they gain instant global user reach and can monetize immediatelySimple setup thanks to A2A standards—no Hub-specific configuration neededAll AI Hub handles CDP Embedded Wallet creation and payments, so no web3 expertise is required🙋♂️Value for End Users (Personal AI Users)By connecting their Personal AI to All AI Hub via MCP, they gain instant access to Vertical AI Agents worldwideNo need to manage multiple MCPs or multiple agent integrationsPay-as-you-go pricing makes it cost-efficient
Solution
🚀 How We Built ItWe built this project with a microservices architecture connecting five Python and TypeScript components that work together as a unified agent ecosystem. The frontend usesNext.js 15,Tailwind CSS, andDrizzle ORMfor SQLite. The backend is powered byFastAPIandFastMCP, enabling MCP protocol support viaSSE streaming. We integratedCoinbase’s x402 payment protocolwithCDP Server Wallet v2to enableEIP-712–based paymentson Polygon Amoy.We also made several practical improvements during development:Aunified MCP toolthat performs both x402 payment-requirement generationandJWT issuance in one call—simplifying the architecture and removing unnecessary round-trips.The official Python x402 library did not support Polygon Amoy, so weforked it and added network supportto ensure correct settlement.💳 Payment FlowOur agent marketplace usesx402to provide frictionless blockchain payments:🧑💻User requests agent access→ via Personal AI client📡Payment requirements retrieved→ MCP server✍️Payment signed (EIP-712)→ CDP Server Wallet v2🔗Payment verified & settled→ x402 facilitator🔑JWT token issued→ MCP server🤖Agent accessed→ Token validated & request processedThis flow enables seamlessmachine-to-machine billinginside AI agent interactions.🛠️ Technology StackFrontend⚛️ Next.js 15🎨 Tailwind CSS🧩 TypeScript🗄️ Drizzle ORM + SQLiteBackend🐍 FastAPI (Python 3.12+)🔌 FastMCP (SSE transport)Blockchain & Wallet🔗 Polygon Amoy💳 x402 Protocol (Coinbase)🪪 CDP Server Wallet v2(EIP-712 signing)〰️ SQD Piles SDKProtocols🔐 MCP (Model Context Protocol)🤝 A2A (Agent-to-Agent Protocol)AI Frameworks🧠 LangGraph🧩 CrewAI🌐 Google Gemini🧩 Architecture ComponentsallAiHub— Next.js dashboard for registering agentsallAiHubMcp— manages JWT issuance + x402 payment processingpersonalAi— web client to discover & chat with agentsverticalAi— example agents (CrewAI / LangGraph)allAiHubSdk— Python tools + Starlette middleware for JWT validationAgents follow theA2A protocol, supportstreaming responses, and use LangGraph/CrewAI for agentic behaviors. We also addedtask-ID deduplicationto prevent duplicate agent executions andautomatic base64 handlingfor x402 payment headers.