Decentralized Multi-LLM Consensus Protocol on Monad
AION enables multiple AI language models to analyze, debate, and reach consensus on complex decisions - all decentralized on the Monad blockchain.
AION (AI Consensus On-chain Network) is a protocol where:
- Multiple LLMs analyze the same task independently
- AI Debate occurs between models to refine reasoning
- Weighted Voting produces final consensus decisions
- Reputation Tracking ensures quality over time
- On-chain Verification provides immutable proof
┌─────────────────────────────────────────────────────────────┐
│ AION Protocol │
├─────────────────────────────────────────────────────────────┤
│ Frontend (Next.js) ←→ Backend (Fastify) ←→ Blockchain │
│ ↓ ↓ ↓ │
│ Real-time UI Consensus Engine Smart Contracts │
│ Task Creation LLM Orchestration Reputation │
│ Live Debate View WebSocket Events Governance │
└─────────────────────────────────────────────────────────────┘
# Clone repository
git clone https://github.com/YOUR_USERNAME/aion.git
cd aion
# Install dependencies
pnpm install
# Start infrastructure
docker-compose up -d
# Setup database
cd apps/backend && pnpm db:migrate && cd ../..
# Start development
pnpm dev- Frontend: http://localhost:3000
- Backend API: http://localhost:3001
- API Docs: http://localhost:3001/swagger
aion/
├── apps/
│ ├── web/ # Next.js 16 frontend (App Router)
│ ├── backend/ # Fastify API + WebSocket server
│ └── mcp-tool/ # MCP server for AI agent integration
├── packages/
│ ├── shared/ # Shared TypeScript types
│ └── contracts/ # Solidity smart contracts (Foundry)
└── docker-compose.yml
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ ANALYSIS │ → │ DEBATE │ → │ VOTING │ → │CONSENSUS │
└──────────┘ └──────────┘ └──────────┘ └──────────┘
↓ ↓ ↓ ↓
Each LLM LLMs discuss Weighted by Final decision
analyzes findings reputation + confidence
independently with peers scores score
AION uses OpenRouter for unified LLM access:
| Provider | Model | Type |
|---|---|---|
| Anthropic | Claude Sonnet 4 | Paid |
| OpenAI | GPT-4.1 | Paid |
| Gemini 2.5 Pro | Paid | |
| DeepSeek | R1 | Paid |
| DeepSeek | R1 0528 | Free |
| StepFun | Step 3.5 Flash | Free |
| NVIDIA | Nemotron Nano 9B | Free |
POST /api/tasks # Create new consensus task
GET /api/tasks # List all tasks
GET /api/tasks/:id # Get task with debate/votes
GET /api/llms # List available models
GET /api/llms/fetch # Fetch models from OpenRouter
GET /api/stats # System statistics
WS /ws # Real-time updates
# Backend tests
cd apps/backend && pnpm test
# Single test file
NODE_OPTIONS=--experimental-vm-modules npx jest tests/unit/services/openrouter.test.ts
# Frontend tests
cd apps/web && pnpm test
# Smart contract tests
cd packages/contracts && forge test -vvvvDATABASE_URL="postgresql://postgres:password@localhost:5432/aion"
PRIVATE_KEY="your_wallet_private_key"
RPC_URL="https://monad-testnet.drpc.org"
OPENROUTER_API_KEY="your_openrouter_key"NEXT_PUBLIC_API_URL="http://localhost:3001"- Monad: https://monad.xyz
- OpenRouter: https://openrouter.ai
- Documentation: See AGENTS.md
MIT License - see LICENSE for details.
AION - Where AI Minds Converge 🧠⚡