Skip to content

PredictionXBT/PredictOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 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


โœจ 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

๐Ÿ’Ž 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 (v1.0.1)

Feature Status Description Setup Guide
AI Market Analysis โœ… Released Paste a Kalshi or Polymarket URL and get instant AI-powered analysis with probability estimates, confidence scores, and trading recommendations ๐Ÿ“– Setup Guide
Betting Bots โœ… Released Polymarket 15 Minute Up/Down Arbitrage Bot (more bots coming) ๐Ÿ“– Setup Guide

๐Ÿ”ฎ Coming Soon

Feature Description
Agent Battles (x402) Pit AI agents against each other to discover winning 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 the credentials required for the features you want to use:

๐Ÿ“– Feature-specific setup guides:

Example for Market Analysis:

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

Example for Betting Bots:

POLYMARKET_WALLET_PRIVATE_KEY=0x...  # Your wallet private key
POLYMARKET_PROXY_WALLET_ADDRESS=0x...  # Your Polymarket proxy wallet

๐Ÿ’ก Note: See the setup guides linked above for detailed instructions on obtaining each API key and configuration.

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>

# Edge Function URLs (for local development)
# Note that the base url might vary depending on `supabase status`:
SUPABASE_EDGE_FUNCTION_ANALYZE_EVENT_MARKETS=http://127.0.0.1:54321/functions/v1/analyze-event-markets  # Required for Market Analysis
SUPABASE_EDGE_FUNCTION_BETTING_BOT=http://127.0.0.1:54321/functions/v1/polymarket-up-down-15-markets    # Required for Betting Bots

Start the development server:

npm run dev

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

๐Ÿ› ๏ธ Tech Stack

Frontend:

Backend:

๐Ÿค Partners

Dome API

The unified API for prediction markets. Dome provides seamless access to Kalshi, Polymarket, and other prediction market platforms through a single, elegant interface.

๐Ÿ”— PredictOS is proudly powered by Dome โ€” they handle the complexity of multi-platform data aggregation so we can focus on building the best trading tools.

๐ŸŒ Website ยท ๐Ÿ“Š Dashboard ยท ๐• Twitter

OKBet

The FIRST all-in-one prediction markets bot. Available on Telegram and soon on web, OKBet makes it easy to trade prediction markets from anywhere.

๐Ÿ”— Our Predict_Agent provides direct OKBet links to place bets on Kalshi and Polymarket in Telegram.

๐Ÿค– Telegram ยท ๐ŸŒ Website ยท ๐Ÿ“– Docs ยท ๐• Twitter

๐Ÿ’ช 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

Packages

No packages published