by texsellix
Polymarket from your terminal. Copy whales, run autonomous strategies, place orders with one command. CLI-only, no dashboard, no setup.
# Add to your Claude Code skills
git clone https://github.com/texsellix/polymarket-trading-botGuides for using ai agents skills like polymarket-trading-bot.
Polymarket from your terminal.
Mirror the smartest wallets, run autonomous strategies, and place orders with one command. No dashboard, no signup, no config files.
30-second start · Commands · SDK · AI agents · Architecture
npm i -g polybot # installs and prompts for your wallet key once
polybot scan # see trending markets
polybot copy --target 0xWhale --size-multiplier 0.05 # paper-trade by default
That's it. No .env to edit, no database to set up, no account to create.
The first time you install Polybot it will ask for your Polygon wallet private key. The key is encrypted before it leaves your machine and stored in a hosted vault — Polybot can sign Polymarket orders for you, but the plaintext key is never written to disk and never logged.
Paper-trading is on by default. Pass
--liveto commit real USDC.
| Command | What it does |
|---|---|
| polybot login | Connect a wallet (one-time setup, also runs automatically after install) |
| | List trending Polymarket markets |
| | Live BUY/SELL quote for a market |
| | Place a single order |
| | Mirror a Polymarket whale |
| | Run autonomous strategies (arbitrage / momentum / mean-reversion / endgame) |
| | USDC and CTF allowances on your wallet |
| | Open positions with PnL |
| | Live stream of authenticated trade/order events |
| | Show connected wallets |
| | Disconnect a wallet |
No comments yet. Be the first to share your thoughts!
polybot scan [--limit 25]polybot quote --market <slug>polybot trade --market <slug> --side BUY --usdc 25polybot copy --target 0xWALLET [--size-multiplier 0.05]polybot auto [--strategies arbitrage,endgame]polybot balancespolybot positionspolybot watchpolybot wallets listpolybot wallets forget <addr>Every command supports --live to commit real USDC. Without it you're in paper mode.
By default Polybot signs as a Polygon EOA. For Polymarket Magic / proxy wallets or Gnosis Safe, set:
POLY_FUNDER_ADDRESS=0xYourPolymarketProxy
POLY_SIGNATURE_TYPE=1 # 1 = proxy, 2 = safe, 0 = EOA (default)
polybot auto runs any combination of:
Combine them: polybot auto --strategies arbitrage,momentum --per-trade 25 --live.
Every signal goes through the risk engine before execution: position caps, daily loss limits, slippage guards, market black/whitelists. Paper mode is enforced at the engine level — strategies cannot bypass it.
polybot copy --target 0xWhale --size-multiplier 0.05 --max-trade 50 --live
Polybot watches the target wallet on the Polymarket Data API and mirrors every entry/exit at a fraction of the original size. Per-market cooldowns and slippage guards prevent you from chasing a moving price.
Find good targets with:
polybot scan --limit 50
Or browse the Polymarket leaderboard.
Embed Polybot in your own backend, AI agent, or CI job:
npm i @polybot/sdk
import { Polybot } from "@polybot/sdk";
const bot = await Polybot.create({
privateKey: process.env.PRIVATE_KEY!,
paperTrading: false,
});
// Manual order
await bot.trade({
market: "trump-2028",
side: "BUY",
outcome: "YES",
usdcSize: 25,
});
// Mirror a whale
bot.copy.addTarget({
wallet: "0xWhale",
sizeMultiplier: 0.05,
maxTradeUsd: 50,
});
await bot.copy.start();
// Or run autonomous strategies
await bot.auto.start({ strategies: ["arbitrage", "endgame"], perTradeUsd: 25 });
Full API: packages/sdk/README.md.
Polybot is the cleanest Polymarket layer for any LLM agent — Claude, GPT, Gemini, Vercel AI SDK, MCP — because everything important is one TypeScript call away:
import { Polybot } from "@polybot/sdk";
const bot = await Polybot.create({ privateKey, paperTrading: true });
// Tool 1: market discovery
const trending = await bot.trendingMarkets(25);
// Tool 2: live quote
const market = await bot.findMarket("trump-2028");
// Tool 3: place an order (paper or live)
await bot.trade({ market: market.slug!, side: "BUY", outcome: "YES", usdcSize: 25 });
Wire those into your agent's tool list and you have a fully-functioning Polymarket trader. No browser automation. No screen scraping. Direct REST + EIP-712 signing. The risk engine still gates every order, so a misbehaving agent cannot bypass position caps or daily loss limits.
polybot/
└── packages/
├── cli/ # 📦 polybot — the npm CLI you install
├── sdk/ # 📦 @polybot/sdk — embed Polybot in any Node app
├── core/ # Gamma, CLOB v2, Data API, WebSocket clients
└── engine/ # RiskManager, WalletWatcher, strategies
Four packages, no backend services to run, no database to provision. Every command goes through the same code path — CLI is just @polybot/sdk plus a kleur-coloured front-end.
~/.polybot/wallets.json.privateKey, secret, passphrase automatically.See SECURITY.md for the threat model and disclosure policy.
That's it. No Docker, no Postgres, no Redis.
PRs welcome — see CONTRIBUTING.md. The codebase is small on purpose: keep it that way.
MIT — see LICENSE.