polymarket-copy-trading-bot — Claude Code skill: setup guide
Configures a TypeScript bot that monitors target Polymarket wallets and mirrors BUY orders on Polygon mainnet. Useful for automated copy trading via CLOB API.
npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a claude-codeWhat polymarket-copy-trading-bot does
This bot tracks a target wallet on Polymarket using REST polling every two seconds or a real-time WebSocket connection. Once the target buys an outcome, the bot sizes your order based on POSITION_MULTIPLIER and applies minimum and maximum bounds. It ignores target SELL events by default. Orders submit directly through the CLOB client as FOK, FAK, or LIMIT.
Risk controls enforce maximum notional caps per market and per session. You need Node.js 18 or higher, and the CLOB SDK specifically requires ethers v5. Without POL tokens in an EOA wallet, initial token allowance approvals will fail. Authentication works with EOA keys, Poly Proxy, or Poly Polymorphic modes.
What it helps with
- mirror BUY trades from target Polymarket wallets in real time
- submit automated CLOB orders as FOK, FAK, or LIMIT
- cap trading exposure per session and individual market
- create and test Polymarket trading API credentials
Example prompts for the agent
- Help me configure the .env file for polymarket-copy-trading-bot with EOA authentication
- Run npm run generate-api-creds to set up Polymarket trading credentials
- Adjust position sizing and session risk limits in the trading config
How to install polymarket-copy-trading-bot
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a claude-code2Manually: put the files in place
~/.claude/skills/polymarket-copy-trading-bot/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/polymarket-copy-trading-bot/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a codex2Manually: put the files in place
.agents/skills/polymarket-copy-trading-bot/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a cursor2Manually: put the files in place
.cursor/skills/polymarket-copy-trading-bot/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/trending-skills polymarket-copy-trading-bot2Manually: put the files in place
.github/skills/polymarket-copy-trading-bot/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/trending-skills --path skills/polymarket-copy-trading-botManually: put the files in place
.devin/skills/polymarket-copy-trading-bot/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about polymarket-copy-trading-bot
How do I install polymarket-copy-trading-bot in Claude Code?
Run npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a claude-code in your terminal.
Does the bot mirror sell orders?
No, it only executes BUY trades. The monitor detects SELL transactions but ignores them by default.
What are the prerequisites before starting?
You need Node.js v18+, a Polygon RPC endpoint, and POL in your wallet to cover gas for contract approvals.