Polymarket Auto-Trader
Autonomous Polymarket prediction market trading agent. Scans markets, evaluates probabilities with LLM, sizes positions with Kelly criterion, and executes trades via CLOB API. Use when user wants to t
Autonomous Polymarket prediction market trading agent. Scans markets, evaluates probabilities with LLM, sizes positions with Kelly criterion, and executes trades via CLOB API. Use when user wants to t
Real data. Real impact.
Growing
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Fully autonomous prediction market trading agent for Polymarket. Evaluates markets using LLM probability estimation, sizes positions with Kelly criterion, and executes trades via the Polymarket CLOB API from a non-US VPS.
SSH into your non-US VPS and run:
python3 {baseDir}/scripts/setup_vps.sh
Or manually:
apt update && apt install -y python3 python3-venv python3 -m venv /opt/trader /opt/trader/bin/pip install py-clob-client python-dotenv web3 requests
Create
/opt/trader/app/.env:
PRIVATE_KEY=<your-polygon-wallet-private-key> LLM_API_KEY=<your-anthropic-api-key>
Before trading, approve USDC.e and CTF tokens for Polymarket contracts. Run:
python3 {baseDir}/scripts/approve_contracts.py
Required approvals (6 total):
cp {baseDir}/scripts/run_trade.py /opt/trader/app/ cp {baseDir}/scripts/pnl_tracker.py /opt/trader/app/
crontab -e # Add: */10 * * * * cd /opt/trader/app && /opt/trader/bin/python3 run_trade.py >> cron.log 2>&1
trades.jsonl, skips already-traded marketsConfigurable in
run_trade.py:
EDGE_THRESHOLD — Minimum edge to trade (default: 0.05 = 5%)MIN_SHARES — Minimum order size (Polymarket requires ≥5 shares)Check P&L anytime:
python3 /opt/trader/app/pnl_tracker.py
Check recent activity:
tail -50 /opt/trader/app/cron.log
0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174), not native USDC0xd91E80cF2E7be2e162c6513ceD06f1dD0dA35296).env. Harden your VPS: strict file permissions (chmod 600 .env), no shared access, firewall, SSH keys only.references/contract-addresses.md before running.cron.log and run pnl_tracker.py regularly.references/polymarket-api.md for full CLOB API documentationreferences/contract-addresses.md for all Polygon contract addressesNo automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.