Skip to content

The opensource all-in-one framework for Prediction Markets

License

Notifications You must be signed in to change notification settings

sidkid22020-stack/PredictO

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

PredictOS Banner

PredictOS

The leading all-in-one open-source framework for deploying custom AI agents and trading bots purpose-built for prediction markets - bring your own data, models, and strategies to dominate prediction forecasting

Built by PredictionXBT, the team behind Predict โ€” The Layer 1 for Social Prediction Market

License Version Website Twitter


โœจ What is PredictOS?

Prediction markets are having their moment. With platforms like Kalshi and Polymarket opening up their APIs to the public, there's now unprecedented access to real-time market data, order books, and trading capabilities. But raw API access is just the beginning โ€” what's been missing is a unified framework that lets anyone tap into this new financial primitive.

PredictOS is that framework.

๐Ÿ”“ Why Open Source?

Sure, there are hosted tools out there. But here's the problem:

  • Your data isn't yours. Every query, every strategy signal, every trade you analyze โ€” it all flows through their servers. Your alpha becomes their alpha. Your edge gets commoditized the moment you share it with a third party.

  • Your strategy isn't private. Want to build a custom trading bot with proprietary signals? Maybe you've got insider domain knowledge, a unique data source, or a thesis nobody else is running. The moment you plug that into a hosted platform, you've handed over your playbook.

  • You can't customize what you don't own. Need a specific feature? Want to integrate your own AI model? Good luck submitting a feature request and waiting 6 months.

With PredictOS, you own everything. Run it on your own infrastructure. Fork it. Modify it. Build your secret sauce without anyone watching. Your strategies stay yours. Your data never leaves your servers. And when you find an edge, you keep it.


PredictOS is an open-source, AI-powered operating system for prediction markets. It provides a unified interface to analyze markets across platforms, delivering real-time AI insights to help you find alpha opportunities and make informed trading decisions.

Whether you're a casual trader looking for quick market analysis or a power user building automated betting strategies with proprietary data, PredictOS gives you the tools to navigate prediction markets โ€” on your own terms.

What's next? We're building towards a complete prediction market toolkit: automated betting bots, whale tracking, copytrading, cross-platform arbitrage, and more. See the Coming Soon section for the full roadmap.

Dome API xAI Grok OpenAI GPT

๐Ÿ’Ž The $PREDICT Token

$PREDICT serves as the foundational pillar of the open-source PredictOS framework, powering a decentralized, community-driven Layer 1 ecosystem for social prediction markets, trading, and participation.

As the primary utility token, $PREDICT is deeply integrated across the platform:

  • Launchpad Liquidity โ€” The launchpad will be seeded with $PREDICT liquidity to ensure depth, stability, and fair access for new project discoveries and token launches
  • No-Code Builder Access โ€” Essential for accessing upcoming no-code builder tools that allow anyone to effortlessly create custom prediction markets, agents, or interfaces with premium features unlocked through holding or using $PREDICT
  • Ecosystem Engagement โ€” Required for full participation in the broader Predict ecosystem, including creating markets, accessing advanced analytics, AI-driven signals, and governance

๐Ÿ”ฅ Staking & Rewards

A key feature driving adoption is the ability to stake $PREDICT for attractive APY rewards, delivering passive yields while empowering holders with enhanced capabilities:

  • Unlocked Trading Abilities โ€” Enhanced access to trading features and boosted capabilities
  • Prediction Market Access โ€” Boosted access to the native prediction market for betting on events, outcomes, or price movements
  • Long-Term Value โ€” Staking and liquidity provision promotes long-term holding, strengthens network security, and redistributes value directly to the community

๐Ÿ’ก $PREDICT is more than a token โ€” it's the core fuel powering adoption, liquidity, and innovation in the live PredictOS framework, establishing it as a leader in decentralized social prediction markets.

๐ŸŽฏ Current Features (v0.1)

Feature Status Description
AI Market Analysis โœ… Released Paste a Kalshi or Polymarket URL and get instant AI-powered analysis with probability estimates, confidence scores, and trading recommendations

๐Ÿ”ฎ Coming Soon

Feature Description
Agent Battles (x402) Pit AI agents against each other to discover winning strategies
Betting Bots Automated trading bots with customizable strategies
No Code Builder Build trading strategies without writing code
Whale Tracking Monitor and follow large traders across markets
Copytrading Automatically copy top-performing traders
Arbitrage Opportunity Detect and exploit cross-platform price differences
Perps Trading / Leverage Leveraged prediction market positions
$Predict Staking Stake for APY rewards, unlock enhanced trading abilities, and get boosted access to prediction markets
Predict Protocol SDK For trading Social markets built on Predict (currently Testnet on predictionxbt.fun)

๐Ÿ“ฆ Architecture

PredictOS/
โ”œโ”€โ”€ terminal/                        # Frontend (Next.js 14)
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ app/                     # Next.js App Router
โ”‚   โ”‚   โ”œโ”€โ”€ components/              # React components
โ”‚   โ”‚   โ””โ”€โ”€ types/                   # TypeScript definitions
โ”‚   โ””โ”€โ”€ public/                      # Static assets
โ”‚
โ””โ”€โ”€ supabase/                        # Backend (Supabase)
    โ”œโ”€โ”€ migrations/                  # DB migrations (future features)
    โ””โ”€โ”€ functions/
        โ”œโ”€โ”€ _shared/                 # Shared utilities
        โ”‚   โ”œโ”€โ”€ ai/                  # AI integrations (xAI Grok & OpenAI)
        โ”‚   โ””โ”€โ”€ dome/                # Dome API client
        โ”œโ”€โ”€ analyze-event-markets/   # Market analysis endpoint
        โ””โ”€โ”€ <feature-name>/          # Future edge functions

๐Ÿ’ก Extensibility: New features are added as Edge Functions under supabase/functions/<feature-name>/ with shared logic in _shared/. Database schemas live in supabase/migrations/.

๐Ÿ Getting Started

Prerequisites

1. Clone the Repository

git clone https://github.com/PredictionXBT/PredictOS.git
cd PredictOS

2. Start the Backend (Supabase)

# Navigate to supabase directory
cd supabase

# Copy environment template and add your API keys
cp .env.example .env.local

Edit .env.local with your credentials:

DOME_API_KEY=your_dome_api_key      # Get from https://dashboard.domeapi.io

# AI Provider (only one is required)
XAI_API_KEY=your_xai_api_key        # Get from https://x.ai
OPENAI_API_KEY=your_openai_api_key  # Get from https://platform.openai.com

๐Ÿ’ก Note: You only need ONE AI provider API key. If you have an xAI API key, you can use Grok models. If you have an OpenAI API key, you can use GPT models. You can also configure both to switch between providers.

๐Ÿš€ Coming soon: You'll be able to run multiple agents in parallel for more powerful, concurrent analyses!

Start the Supabase services:

supabase start

Once running, get your local credentials (you'll need these for the frontend):

supabase status

This will display your API URL and anon key โ€” save these for the next step.

Now start the Edge Functions server (keep this running):

supabase functions serve --env-file .env.local

3. Start the Frontend (Terminal)

Open a new terminal:

# Navigate to terminal directory
cd terminal

# Install dependencies
npm install

# Copy environment template
cp .env.example .env

Edit .env with credentials from supabase status:

SUPABASE_URL=<API URL from supabase status>
SUPABASE_ANON_KEY=<anon key from supabase status>

Start the development server:

npm run dev

Your PredictOS terminal will be running at http://localhost:3000

๐Ÿ› ๏ธ Tech Stack

Frontend:

Backend:

๐Ÿค Partners

Dome API
Dome API

The unified API for prediction markets

๐ŸŒ Website ยท ๐• Twitter

PredictOS is proudly powered by Dome โ€” the unified API that provides seamless access to Kalshi, Polymarket, and other prediction market platforms through a single, elegant interface. Dome handles the complexity of multi-platform data aggregation so we can focus on building the best trading tools.

๐Ÿ’ช Contributing

We welcome contributions from the community! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.

๐Ÿ”— Links


Star History Star History Chart


Built with โค๏ธ by the PredictionXBT team

Powered by Dome

About

The opensource all-in-one framework for Prediction Markets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.6%
  • CSS 7.6%
  • JavaScript 0.8%