sachmalan/kalshi-trading-bot — explained in plain English
Analysis updated 2026-05-18
Trade Kalshi prediction markets automatically using a multi-model AI ensemble.
Test trading strategies risk-free using the built-in paper trading mode.
Track which market categories the bot performs best in over time.
| sachmalan/kalshi-trading-bot | adrienckr/notslop | alchemz/solana-pumpfun-token-bundler | |
|---|---|---|---|
| Stars | 78 | 78 | 78 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | hard | easy | hard |
| Complexity | 4/5 | 2/5 | 4/5 |
| Audience | developer | writer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a Kalshi API key with an RSA private key and an OpenRouter API key covering five LLMs.
This is a TypeScript-based automated trading bot for Kalshi, a regulated U.S. prediction market platform where you bet real money on the outcomes of events like elections, economic indicators, and sports results. What distinguishes this bot from simpler trading bots is its multi-AI-agent architecture. Instead of a single AI making a buy/sell decision, it runs five specialized AI agents in parallel through OpenRouter (a service that routes requests to multiple AI providers with one API key): a forecaster, a news analyst, a bull researcher arguing for a position, a bear researcher arguing against it, and a risk manager. The bull and bear agents debate the trade, and the bot only proceeds if disagreement is below a threshold. The five agents' probability estimates are combined using confidence-weighted consensus, a voting-like approach where models with better historical calibration have more influence. Position sizing uses the Kelly Criterion, a mathematical formula that bets a fraction proportional to your estimated edge to maximize long-run growth without risking ruin. Safety features include hard position size limits, a daily dollar loss cap, a built-in daily AI cost cap (default ten USD) that physically prevents LLM calls when the budget runs out, and paper trading mode (simulated trading with fake money) that is enabled by default so you must explicitly flip a flag to use real money. Trade history, model performance, and category scores are stored in SQLite. Built on Node.js 22.5 or newer, TypeScript, and Vitest for testing.
A Kalshi prediction market bot that runs five AI models in a debate-style ensemble, sizes trades with the Kelly Criterion, and defaults to paper trading.
Mainly TypeScript. The stack also includes TypeScript, Node.js, OpenRouter.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.