
All AI Hub
AI agent matching infra with x402 payments — safe, instant access to agents with seamless billing.
Demo
About
🧠 **Project Description** All 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 where **AI 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 Agents** A2A only defines the *communication protocol*. It does **not** provide a way for an AI Agent to know *which* other AI Agent to connect to. - The number of A2A-ready AI Agents is rapidly increasing - But there is **no way to know they exist** - Even 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 find **trustworthy AI Agents**? All AI Hub solves this fundamental problem. --- 🔩 **The 4 Core Problems All AI Hub Solves** **1. AI Agent Discovery** All 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. Authenticity** Each 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. Reputation** Based 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 agents - Providers (Vertical AI developers) don’t need to build payments - No web3 knowledge required --- 🎛 **Value for Providers (Vertical AI Developers)** - By simply registering, they gain instant global user reach and can monetize immediately - Simple setup thanks to A2A standards—no Hub-specific configuration needed - All 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 worldwide - No need to manage multiple MCPs or multiple agent integrations - Pay-as-you-go pricing makes it cost-efficient
How it's made
**🚀 How We Built It** We built this project with a microservices architecture connecting five Python and TypeScript components that work together as a unified agent ecosystem. The frontend uses **Next.js 15**, **Tailwind CSS**, and **Drizzle ORM** for SQLite. The backend is powered by **FastAPI** and **FastMCP**, enabling MCP protocol support via **SSE streaming**. We integrated **Coinbase’s x402 payment protocol** with **CDP Server Wallet v2** to enable **EIP-712–based payments** on Polygon Amoy. We also made several practical improvements during development: - A **unified MCP tool** that performs both x402 payment-requirement generation **and** JWT issuance in one call—simplifying the architecture and removing unnecessary round-trips. - The official Python x402 library did not support Polygon Amoy, so we **forked it and added network support** to ensure correct settlement. **💳 Payment Flow** Our agent marketplace uses **x402** to provide frictionless blockchain payments: 1. 🧑💻 **User requests agent access** → via Personal AI client 2. 📡 **Payment requirements retrieved** → MCP server 3. ✍️ **Payment signed (EIP-712)** → CDP Server Wallet v2 4. 🔗 **Payment verified & settled** → x402 facilitator 5. 🔑 **JWT token issued** → MCP server 6. 🤖 **Agent accessed** → Token validated & request processed This flow enables seamless *machine-to-machine billing* inside AI agent interactions. **🛠️ Technology Stack** **Frontend** - ⚛️ Next.js 15 - 🎨 Tailwind CSS - 🧩 TypeScript - 🗄️ Drizzle ORM + SQLite **Backend** - 🐍 FastAPI (Python 3.12+) - 🔌 FastMCP (SSE transport) **Blockchain & Wallet** - 🔗 Polygon Amoy - 💳 x402 Protocol (Coinbase) - 🪪 CDP Server Wallet v2(EIP-712 signing) - 〰️ SQD Piles SDK **Protocols** - 🔐 MCP (Model Context Protocol) - 🤝 A2A (Agent-to-Agent Protocol) **AI Frameworks** - 🧠 LangGraph - 🧩 CrewAI - 🌐 Google Gemini **🧩 Architecture Components** - **allAiHub** — Next.js dashboard for registering agents - **allAiHubMcp** — manages JWT issuance + x402 payment processing - **personalAi** — web client to discover & chat with agents - **verticalAi** — example agents (CrewAI / LangGraph) - **allAiHubSdk** — Python tools + Starlette middleware for JWT validation Agents follow the **A2A protocol**, support **streaming responses**, and use LangGraph/CrewAI for agentic behaviors. We also added **task-ID deduplication** to prevent duplicate agent executions and **automatic base64 handling** for x402 payment headers.