Best AI setup for a Polymarket bot (paper trading first)
Updated · What changed: New setup for building a Polymarket US event-market bot with paper trading first, current API fees and the 70% taker rebate, and a reality check on bot results.
By The AI Loadout editors · How we pick
Build a paper trader before you build a trading bot. Have Claude Code or Codex write a small program that reads Polymarket US's public order book, simulates fills at the prices you would actually get, applies the real fee formula, and writes every decision to a journal, including the trades it skipped. Use Claude Opus 5.5 for the judgment step: reading a market's rules and resolution source and writing down a probability with reasons. Paste in The Risk Manager persona, and put your loss caps in code so the model cannot argue its way past them. You do not need an API key for any of this, because the events, markets and order book endpoints are public. If you are in the US, Polymarket US is the version built for you: a CFTC-regulated exchange that requires identity verification before you deposit, trade or use the trading API. Run the paper journal for weeks before you think about real money, and go in expecting a small or negative result. In a seller-published sample of 2,500 always-on bots, the median one lost $59. This page is educational, not financial advice.
| Slot | Pick |
|---|---|
| Tool | Claude Code or Codex |
| Model | Claude Opus 5.5 |
| Skill | Paper fill simulator |
| Persona | The Risk Manager |
Free, no signup needed.
The loadout (why each pick)
Tool: Claude Code or Codex
Most of this project is ordinary code: an API client, a fill simulator, fee math, a small state file and a CSV journal. Claude Code comes with Claude Pro ($20 a month, or $17 a month billed yearly; it is not in the free plan), and Codex comes with paid ChatGPT plans. Either one can write and test it. Ask for tests on the fee function first, because a rounding mistake there quietly distorts every paper result that follows. Keep live order code out of the repository until you make a deliberate decision to add it. An agent cannot misfire an endpoint the project does not call.
Model: Claude Opus 5.5
Use Opus 5.5 for the part that needs judgment: reading the market question, the resolution rules and the named resolution source, then writing a probability estimate, the reasons for it, and what evidence would change it. Rules matter more than headlines, because a contract pays on what its resolution source reports, not on what the news seemed to imply. Keep the model away from sizing and limits; those belong in code. If cost matters, test Gemini 4 Neon on the same prompts. Its list price is $3 in and $15 out per million tokens against $4 and $20 for Opus 5.5. Log which model made each call so you can compare them later on your own journal, not on a leaderboard.
Agent skills
- Paper fill simulator: Walk the public order book level by level for the size you want, the way a real taker order fills, instead of assuming you get the midpoint. Top-of-book size can be small: one Polymarket US market we pulled on Nov 30 had 15 contracts at the best bid before the next price level. Record the average fill price, the fee and the levels you crossed.
- Fee and rebate math: The API taker fee is 0.0695 x contracts x price x (1 - price), rounded to the cent with banker's rounding. Through Dec 31, 2026, 70% of that fee comes back as a rebate on straight API trades. 100 contracts at $0.50 cost $1.74 in fees before the rebate and about $0.52 after it. Fees are largest at 50 cents and shrink toward 1 cent and 99 cents. App and web trades pay a higher coefficient, 0.11 below $10,000 of monthly taker volume.
- Rate limit and reject handling: The retail API allows 25 requests a second per IP, and keys on the same IP share that counter. On a 429, stop, wait at least a second, then back off. A reject that says Order Processing Max Delay Exceeded is different: it is the exchange's 5-second latency stopgap, not a rate limit, and the docs say you can resubmit. For live prices, the docs recommend WebSocket streams over polling.
Bot persona: The Risk Manager
Inspired by a disciplined risk-management approach, not a real person. Models sound confident about probabilities. This persona makes every idea show its rule, its price, its fee and its worst case before anything is logged, and it treats skipping a trade as a normal outcome.
Comparison table
| Option | Best for | Model(s) | Price | Free plan | Last checked |
|---|---|---|---|---|---|
| Claude Pro (Claude Code) | Building and testing the bot in a terminal agent | Opus 5.5, Sonnet 5.5 | $20/mo ($17/mo billed yearly); Claude Code not in Free | Yes | |
| ChatGPT Plus (Codex) | The same build if you already pay for ChatGPT | Codex | Paid ChatGPT plan; see pricing page | Yes | |
| Polymarket US API | Public market data now, trading after KYC | REST and WebSocket, Python and TypeScript SDKs | Data free; API taker fee 0.0695 coefficient with 70% rebate to Dec 31, 2026 | Yes | |
| Alpaca paper trading | Practicing on stocks, options and crypto instead of event contracts | Any MCP client | Paper account free | Yes | |
| polymtradebot (commercial) | Seeing what a paid BTC Up or Down bot includes; it sells the bot, so read its claims that way | Python script | $499 one-time; Pro $999 | No |
Prices come from the linked vendor or source page and can change. Check the vendor before you buy.
Copy this setup
Paste this persona into your tool's custom instructions or project instructions:
You are The Risk Manager for my prediction market bot. Paper trading is the default. Never place a live order, never ask for live API keys, and never suggest turning paper mode off. For every trade idea, write down: the market slug; a one-line summary of the resolution rule and the resolution source; your probability estimate and the reasons for it; the current best bid and ask; the size; the maximum loss if the contract settles against me; the fee before and after any rebate; and one reason to skip. Enforce my caps exactly as numbers I set: maximum loss per trade, daily loss limit and maximum open positions. If a trade would break a cap, skip it and log why. Refuse to raise a cap during a session. Journal every decision, skips included. Once a week, summarize the journal: number of trades and skips, total fees, realized paper profit or loss, the worst day, and any trade where the reasoning was wrong. Treat profile PnL screenshots and viral bot stories as unverified until a public record supports them. Never invent a market rule, price, result or quote. This is not financial advice.- Read the market rules for two or three Polymarket US markets you understand well, and note each resolution source.
- Have Claude Code or Codex write a paper trader that reads the public book endpoint (GET https://gateway.polymarket.us/v1/markets/{slug}/book), walks the levels for a given size, applies the fee formula and writes a CSV journal. No API key is needed.
- Paste The Risk Manager into CLAUDE.md or AGENTS.md, and put your per-trade, daily and open-position caps in a config file the code reads.
- Ask Opus 5.5 for a probability and reasons on each market, log its call next to the book price, and let the code decide whether a paper trade passes the caps.
- Settle paper positions at $1 or $0 when markets resolve, and review the journal every week for at least several weeks.
- Only if the journal holds up, complete identity verification in the Polymarket US app, create a key at polymarket.us/developer (the secret is shown once), store it in environment variables, and start with very small caps.
Alternatives by situation
- Your bot wins most of its trades: That alone tells you little. In polymtradebot's 28-day sample of Bitcoin Up or Down markets, 786 always-on bots won 70% or more of their windows, and only 31% of them made money. A high win rate with small wins and occasional large losses is common. Judge the journal on profit after fees, not on hit rate.
- You want to rest limit orders as a maker: The same sample found 49% of mostly-maker bots in profit against 26% of bots that only took liquidity. That was Polymarket's international crypto market, though. On Polymarket US, maker rebates start at $10 million of qualifying monthly maker volume, so a small bot earns no maker rebate. Model maker fills as uncertain in paper mode, because a resting order may never fill.
- You saw a huge bot profit on X: Check the public record before you copy anything. The viral story of a Claude-built bot that made $794,000 in 14 months was rated record does not match by an independent fact check: the account was 58 days old when the posts started, and the 40,266 "trades" were a count of markets. Also note that a profile's Total PnL is shown before fees, per the polymtradebot study.
- You want more than paper trading: Write down, before you look at results, what the journal must show for you to go live: a minimum number of paper trades, profit after fees, and a worst day you can live with. Then start with caps small enough that being wrong is cheap. The from-paper-to-live checklist in the starter pack covers the steps.
- A market touches information you have: Do not trade it. Polymarket US rules bar trading on confidential information you owe a duty to protect, or when you can influence the outcome, and some markets also bar people connected to a sports event or with material nonpublic information.
- You would rather trade stocks: Use the [AI trading bot setup](/best-ai-setup/ai-trading-bot/), which pairs Claude Code with Alpaca's free paper account. For crypto exchanges, see the [crypto trading bot setup](/best-ai-setup/crypto-trading-bot/).
What changed
- : Page launched: Claude Code or Codex, the Polymarket US public API, Claude Opus 5.5 and The Risk Manager persona, with fees, the 70% API taker rebate and bot-result claims checked against the sources below.
FAQ
Do Polymarket bots make money?
Most do not, in the best public data we found. polymtradebot tracked 2,500 always-on bots in Polymarket's Bitcoin Up or Down markets from Sep 6 to Oct 3, 2026. 32% finished in profit after fees and rebates (28% before rebates), and the median bot lost $59. The company sells a $499 bot, and the study covers Polymarket's international crypto markets, not Polymarket US, so treat it as context rather than a forecast.
Can people in the US use a Polymarket bot?
Polymarket US is the US product. It is a fiat-based, CFTC-regulated exchange, and you must complete identity verification (KYC) before you can deposit, trade or use the trading API. Public market data needs no account, which is why paper trading is the right first step.
What does the Polymarket US API cost to trade?
From Nov 21 through Dec 31, 2026, API taker trades use a 0.0695 fee coefficient and get a 70% rebate on those fees, for straight trades. The fee is 0.0695 x contracts x price x (1 - price). At $0.50, 100 contracts cost $1.74 before the rebate, about $0.52 after. Fees are charged only when an order fills, and Polymarket says it intends to extend the program based on how it performs, so recheck the fee page.
Is the $794K Claude Polymarket bot real?
The public record does not support the story as told. agenteconomy.cloud's fact check found the wallet was created Mar 25, 2026, so it was 58 days old at the first post, not 14 months. The 40,266 figure counted markets, not trades. The $794,000 matched the profile's older P&L display that day, while Polymarket's newer figures for the start of that day ranged from $34,759.69 to $595,488.69. Nothing public ties the wallet to Claude or to the student in the story.
Do I need an API key to paper trade?
No. The Polymarket US events, markets, best bid and offer, and order book endpoints are public. You need an approved account and an API key only when you want to place real orders.
Which AI model should run the bot?
Let code run the bot and let a model advise it. Use Claude Opus 5.5 or another frontier model to read rules and estimate probabilities, and keep sizing, caps and order logic in plain code you can test. A model should never be the only thing standing between your account and a bad order.
Sources
- Polymarket US: Fee schedule and 70% API taker rebate
- Polymarket US: Quickstart (KYC, API keys, SDKs, public endpoints)
- Polymarket US: Overview (CFTC-regulated exchange)
- Polymarket US: Create an account and KYC
- Polymarket US: Get market BBO (public endpoint)
- Polymarket US: Rate limits and latency stopgap
- Polymarket US: Trading restrictions
- polymtradebot (bot seller): Do Polymarket bots work? 2,500 bots tracked for 28 days (Oct 4, 2026)
- polymtradebot: product and pricing
- agenteconomy.cloud fact check: the $794,000 Bonereaper claim
- Claude plans and pricing
- ChatGPT plans and pricing
- Anthropic models overview and pricing
- Gemini Developer API pricing
Disclosure: links marked "affiliate" may earn us a commission, and sponsored slots are always labeled. Neither affects our picks. Read our methodology.
Related setups
Related skills and personas
Agent skills and bot personas that pair well with running an AI bot that trades Polymarket event markets, paper trading first.
SQL Query Performance & Indexing Skill
EXPLAIN ANALYZE interpretation, B-tree vs GIN index selection, and query refactoring.
Redis Cache & Pub/Sub MCP Server
Key-value cache inspection, TTL monitoring, and queue diagnostics in Redis.
Systematic Root-Cause Debugging Skill
Disciplined scientific investigation of software defects without guessing or blind trial-and-error.
Astro 5 & Tailwind Static Site Rule
Astro content collections, zero-JS default hydration, and Cloudflare Pages adapter setup.
The High-Throughput DBA
Relational integrity, optimal index plans, zero sequential scans, and connection pools.
The Runtime Evidence Operator
Keeps model, runtime, hardware and verification evidence attached to every agent result.