Kalshi AI Trading Bot — AI skill for Claude Code
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
- Bot On Anything — A large model-based chatbot builder that can quickly integrate AI models (including ChatGPT, Claude, Gemini) i 4.2k ★
- Mancode — AI coding agent harness 358 ★
- Mirofish CLI — Multi-agent AI prediction engine - digital sandbox for scenario simulation (fork of 666ghj/MiroFish) 307 ★
README
Kalshi AI Trading Bot
[](https://www.python.org/downloads/) [](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
- Kalshi Account: Sign up and obtain API credentials
- API Keys:
- xAI API key for Grok-4: console.x.ai
- OpenRouter API key: openrouter.ai
- 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
Related Skills
Kalshi Trading Bot CLI
AI-native CLI for trading Kalshi prediction markets. Runs deep fundamental research, generates independent pro
Phil
Phil is a self-improving trader: an AI agent that trades short-term prediction markets and rewrites his own st
SimSwarm
Open-source, self-hostable swarm-intelligence simulations with LLM agents: reports, entity graphs, and predict
Ensemble
Multi-model consensus debate via the filesystem. LLMs propose, peer-review, rebut, vote and synthesize a group
FriesTrader
Robinhood Agentic Trading agent — a fully automated AI trading bot placing real orders through Robinhood's Age
AI Trading MCP
MCP-driven crypto trading rig: Claude (or any MCP client) trades a live portfolio through three guarded tools:
Related Agents
Kalshi Bettor
Specialized agent for scanning, analyzing, and placing bets on Kalshi prediction markets. Use when the user wa
Trading Researcher
Quantitative trading research specialist. Use when investigating market microstructure, prediction market mech
Arbitrage Bot
Identify and execute cryptocurrency arbitrage opportunities across exchanges and DeFi protocols. Use PROACTIVE