gaaiyun

Kalshi AI Trading Bot — AI skill for Claude Code

AI community

Multi-model AI trading bot for Kalshi prediction markets.

How to install Kalshi AI Trading Bot

This entry records only its repository, not the path inside it, so there is no exact command to give. Open gaaiyun/kalshi-ai-trading-bot and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Kalshi AI Trading Bot does

Multi-model AI trading bot for Kalshi prediction markets. Five-agent ensemble with portfolio optimization.

Alternatives in AI

  • Open Multi Agent — TypeScript multi-agent orchestration engine — one runTeam() call from goal to result 5.8k ★
  • Bot On Anything — A large model-based chatbot builder that can quickly integrate AI models (including ChatGPT, Claude, Gemini) i 4.2k ★
  • Opennews MCP — News Aggregation · AI Ratings · Trading Signals · Real-time Updates 2.1k ★

README

Kalshi AI Trading Bot

[![Python 3.12+](https://img.shields.io/badge/python-3.12%2B-blue.svg)](https://www.python.org/downloads/) [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)

**Multi-agent AI trading system for Kalshi prediction markets with Grok-4 ensemble.**

🚀 Features

  • 5-Model AI Ensemble: Grok-4, Claude Sonnet 4, GPT-4o, Gemini 2.5 Flash, DeepSeek R1
  • Multi-Agent Decision System: Specialized agents for forecasting, news analysis, bull/bear research, and risk management
  • Advanced Trading Strategies: Directional trading (50%), Market making (40%), Arbitrage detection (10%)
  • Portfolio Optimization: Kelly Criterion sizing, risk parity allocation, dynamic rebalancing
  • Real-Time Monitoring: Live dashboard with P&L tracking and performance analytics
  • Paper Trading Mode: Test strategies without risking real money
  • Cost Controls: Daily AI API budget limits and cost tracking

📋 Prerequisites

  1. Kalshi Account: Sign up and obtain API credentials
  2. API Keys:
  3. Python 3.12+: Required for async features

🔧 Installation

# Clone and enter the project directory
git clone https://github.com/gaaiyun/kalshi-ai-trading-bot.git
cd kalshi-ai-trading-bot

# Install dependencies
pip install -r requirements.txt

# Initialize database
python -m src.utils.database

⚙️ Configuration

Create `.env` file in the project directory:

# Kalshi API credentials
KALSHI_API_KEY=your_kalshi_api_key_id
# Place your kalshi_private_key file (no extension) in the project directory

# AI Model APIs
XAI_API_KEY=your_xai_api_key
OPENROUTER_API_KEY=your_openrouter_api_key
OPENAI_API_KEY=your_openai_api_key  # Optional fallback

Download your Kalshi private key from [Kalshi Settings → API](https://kalshi.com/account/settings) and sa