Deploy green-vast
Kalshi auto-trader with dashboard. Use your own API keys.
kalshi-trading-bot
Just deployed
Deploy and Host Kalshi Trading Bot with Railway
Kalshi Trading Bot is an automated market scanner and trader with a web dashboard. Connect your own Kalshi API keys, scan prediction markets for positive-EV opportunities, and trade with configurable risk limits.
About Hosting Kalshi Trading Bot
You deploy one Railway service from this repository. Railway builds the Docker image, runs the FastAPI app, and serves the dashboard over HTTPS. Each user supplies their own Kalshi API credentials — you never share keys between accounts. The bot starts in dry-run mode by default for safe testing.
Why Deploy Kalshi Trading Bot on Railway?
Railway keeps your bot running 24/7 without leaving your PC on. You get automatic restarts, a public HTTPS URL, and environment variable management for API keys — no manual server setup required.
Common Use Cases
- Automate short-term Kalshi trades with strict daily spend caps
- Scan markets every 60 seconds for positive expected-value favorites
- Monitor balance, trades, and P&L from a web dashboard
- Run in dry-run mode before switching to live trading
Dependencies for Kalshi Trading Bot Hosting
- Python 3.12 app (FastAPI + Uvicorn)
- Kalshi API credentials (API Key ID + private key PEM)
- Dockerfile in this repository
Deployment Dependencies
- GitHub repository:
https://github.com/universalLaw91/kalshi-trading-bot - Kalshi API keys
- Railway public networking enabled (generate domain)
- Healthcheck path:
/api/status
Required Variables
| Variable | Required | Description |
|---|---|---|
KALSHI_API_KEY_ID | Yes | Your Kalshi API key ID |
KALSHI_PRIVATE_KEY | Yes | Full PEM private key (one line with \n for line breaks) |
KALSHI_DASHBOARD_PASSWORD | Yes | Password to protect dashboard (login: admin) |
KALSHI_ENVIRONMENT | Yes | production or demo |
KALSHI_DRY_RUN | Yes | true recommended to start safe |
KALSHI_BOT_ENABLED | Yes | false until tested |
Disclaimer
Not financial advice. Prediction market trading involves risk of total loss. Trade at your own risk.
Template Content
kalshi-trading-bot
universalLaw91/kalshi-trading-bot