The complete guide to automated betting — from zero AI experience to having an agent place bets for you
A betting agent is an AI system that places bets or trades on your behalf, following rules and strategies you define. Think of it as a tireless assistant that:
Before setting up an agent, you need to choose where it will operate:
Platforms like Cloudbet, Stake, and BC.Game offer casino games and sports betting with crypto.
Decentralized prediction market on Polygon. Trade on real-world events.
Next-generation prediction market platform. Join the waitlist for early access.
AI agent framework that runs on your computer. Control it through Telegram, Discord, or CLI.
# Install OpenClaw
npm install -g openclaw
# Start the agent
openclaw start
Official command-line tool for Polymarket trading. Requires some technical comfort.
# Install Polymarket CLI
pip install polymarket-cli
# Check markets
poly markets list
Build your own with Python, JavaScript, or any language. Maximum flexibility.
OpenClaw is the easiest way to get started. Here's a complete walkthrough:
# Open your terminal and run:
npm install -g openclaw
# Verify installation
openclaw --version
# Run the setup wizard
openclaw init
# This will ask for:
# - Your AI provider API key
# - Telegram bot token (optional)
# - Default model preferences
# Start OpenClaw
openclaw start
# Your agent is now running!
# Message it on Telegram to give instructions
Message your agent with natural language instructions:
For repeated tasks, create a skill file:
# ~/.openclaw/workspace/skills/cloudbet-baccarat/SKILL.md
# Cloudbet Baccarat Skill
## Purpose
Automated baccarat betting on Cloudbet
## Strategy
- Always bet Banker (1.06% house edge)
- Never bet Tie (14.4% house edge)
- Flat betting: same amount each hand
- Stop-loss: quit if down 20% of session bankroll
## Execution
1. Navigate to cloudbet.com/casino/baccarat
2. Set bet amount to $[amount]
3. Click Banker bet
4. Wait for result
5. Repeat until stop condition met
For prediction market trading, the Polymarket CLI offers direct access:
# Install the CLI
pip install polymarket-cli
# Configure your wallet
poly config set-wallet YOUR_PRIVATE_KEY
# Check your balance
poly balance
# List available markets
poly markets list --category politics
# Get market details
poly market info MARKET_ID
# Place a trade (buy YES at 0.65)
poly trade buy MARKET_ID YES 100 --price 0.65
# Check your positions
poly positions
The mathematically optimal bet sizing formula:
Kelly % = (bp - q) / b
Where:
b = odds received (decimal - 1)
p = probability of winning
q = probability of losing (1 - p)
Example: 60% win rate at even odds
Kelly = (1 × 0.60 - 0.40) / 1 = 20% of bankroll
Choose your platform and begin your automated betting journey
Compare Betting Platforms Install OpenClaw