An LLM-powered prediction market where a council of AI models independently research questions via web search and provide probability estimates, aggregated into a consensus prediction.
Inspired by Karpathy's LLM council idea and Polymarket.
- A market is defined with a question and a set of possible outcomes
- Three AI models (GPT-4.1, Claude Sonnet 4, Grok 3) independently research the question using web search
- Each model produces calibrated probability estimates for every outcome
- The council's predictions are aggregated into a consensus via mean averaging
- Framework: Next.js 16, React 19, TypeScript 5
- Styling: Tailwind CSS 4, shadcn/ui
- AI: Vercel AI SDK 6 (OpenAI, Anthropic, xAI), Tavily web search
- Database: Neon (serverless Postgres) + Drizzle ORM
npm install
cp .env.example .env # Add your API keys
npm run db:push # Push schema to Neon
npm run seed # Seed markets
npm run dev # Start dev serverOPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
XAI_API_KEY=xai-...
TAVILY_API_KEY=tvly-...
DATABASE_URL=postgresql://...
npm run council <market-id> # Run prediction for a specific market
npm run council -- --all # Run predictions for all active marketsMIT