polymarket-trading
Skill6.6k starsChanged 3 months agoMITView on GitHub
Use when the user wants to actually PLACE, manage, or redeem bets on Polymarket (not just read odds — that's the blockrun_predexon_* data tools). Covers setup (deposit wallet, funding, approvals), buy/sell with confirm gating, positions, redeeming winnings, geoblock handling, and the end-to-end flow.
3 other projects use a version of this, 1 of them edited.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- machina-sports/sports-skillstheir own version, first seen Oct 2, 2026
- BlockRunAI/blockrun-mcpedited, first seen Sep 15, 2026
- joinQuantish/skillstheir own version, first seen Feb 17, 2026
Who's talking about BlockRunAI/ClawRouter
- didilili/ai-agents-from-zero“关于今日 Issue 区遭受恶意bot攻击的事件说明与共同举报倡议”GitHub · May 31, 2026 · 22 reactions
- A Hacker News story“Show HN: ClawRouter – Open-source LLM router that saves 78% on inference costs”Hacker News · Feb 5, 2026 · 12 points
- openclaw/crabpot“chore(deps): bump plugins/clawrouter from `e318761` to `788c547`”GitHub · Jul 21, 2026 · 1 reactions
- openclaw/crabpot“chore(deps): bump plugins/clawrouter from `e318761` to `f54d722`”GitHub · Jul 20, 2026 · 1 reactions
- openclaw/crabpot“chore(deps): bump plugins/clawrouter from `e318761` to `36d26b3`”GitHub · Jul 14, 2026 · 1 reactions
The biggest 5 of 27 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 27
Talked about on GitHub and Hacker News (27 times).
On GitHub · 26
- May 31, 2026关于今日 Issue 区遭受恶意bot攻击的事件说明与共同举报倡议 — didilili/ai-agents-from-zero22 reactions · 23 comments
- Jul 21, 2026chore(deps): bump plugins/clawrouter from `e318761` to `788c547` — openclaw/crabpot1 reaction · 3 comments
- Jul 20, 2026chore(deps): bump plugins/clawrouter from `e318761` to `f54d722` — openclaw/crabpot1 reaction · 2 comments
- Jul 14, 2026chore(deps): bump plugins/clawrouter from `e318761` to `36d26b3` — openclaw/crabpot1 reaction · 3 comments
- Jul 6, 2026chore(deps): bump plugins/clawrouter from `9706b01` to `9ae23c3` — openclaw/crabpot1 reaction · 3 comments
21 more on GitHub
- Jun 30, 2026chore(deps): bump plugins/clawrouter from `5e6cc2e` to `60caaf0` — openclaw/crabpot1 reaction · 1 comment
- Jun 23, 2026chore(deps): bump plugins/clawrouter from `aab2619` to `5e6cc2e` — openclaw/crabpot1 reaction · 1 comment
- Jun 12, 2026chore(deps): bump plugins/clawrouter from `bccb18a` to `aab2619` — openclaw/crabpot1 reaction · 1 comment
- Jun 10, 2026chore(deps): bump plugins/clawrouter from `8926950` to `bccb18a` — openclaw/crabpot1 reaction · 1 comment
- Jun 2, 2026chore(deps): bump plugins/clawrouter from `d87dd07` to `8926950` — openclaw/crabpot1 reaction · 1 comment
- May 25, 2026chore(deps): bump plugins/clawrouter from `ed699ce` to `d87dd07` — openclaw/crabpot1 reaction · 1 comment
- Oct 5, 2026agent-skills.github.blockrunai.clawrouter: 0.12.281 → 0.12.282 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.blockrunai.clawrouter: 0.12.279 → 0.12.281 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.blockrunai.clawrouter: init at 0.12.279 — sudosubin/agents.nix0 reactions
- Sep 14, 2026research: benchmark agent routing by successful task cost before claiming savings — rolter-ai/roltersays it tested it0 reactions
- Sep 14, 2026feat(gateway): add capability-first agent routing profiles to auto-mode — rolter-ai/rolter0 reactions
- Sep 7, 2026feat(x402): opt-in TWZRD AutoGate after SpendControl (#355) — twzrd-sol/ClawRouter-10 reactions
- Aug 4, 2026chore(deps): bump plugins/clawrouter from `e318761` to `40c7a2a` — openclaw/crabpot0 reactions · 2 comments
- Jul 10, 2026chore(deps): bump plugins/clawrouter from `9706b01` to `e318761` — openclaw/crabpot0 reactions
- May 18, 2026chore(deps): bump plugins/clawrouter from `ed699ce` to `e18d6d7` — openclaw/crabpot0 reactions · 3 comments
- May 13, 2026chore(deps): bump plugins/clawrouter from `bb72bdd` to `ed699ce` — openclaw/crabpot0 reactions · 2 comments
- Apr 30, 2026chore(deps): bump plugins/clawrouter from `44bc6be` to `bb72bdd` — openclaw/crabpot0 reactions · 4 comments
- Mar 28, 2026[Submit] Agent skills on Base — curated Base ecosystem agent skills collection — jiayaoqijia/cryptoskill0 reactions · 2 comments
- Mar 9, 2026Integration with ClawRouter — RightNow-AI/openfang0 reactions · 1 comment
- Mar 3, 2026implement clawrouter — TinyAGI/tinyagi0 reactions
- Feb 10, 2026feat: pluggable router support (API + Local) — Irona-ai/irona-node-sdk0 reactions · 7 comments
On Hacker News · 1
- Feb 5, 2026Show HN: ClawRouter – Open-source LLM router that saves 78% on inference costssays it tested it12 points · 1 comment
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- BlockRunAI/blockrun-mcp★ 39353% same
Wrote their own version · 2
- machina-sports/sports-skills★ 242same name
- joinQuantish/skills★ 13same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Zero setup: no Polymarket account, no API keys, no gas token.
- Very specific: line 102
No manual creds are ever needed — ClawRouter bootstraps its builder key from the user's own wallet on first setup.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Polymarket Trading (blockrun_polymarket)
Real-money trading on Polymarket's CLOB V2 (Polygon), signed locally by the
user's ClawRouter wallet key. Data discovery stays on the
blockrun_predexon_* tools — blockrun_polymarket only trades.
Mental model
- Signer = the ClawRouter wallet key (
~/.openclaw/blockrun/wallet.key, orBLOCKRUN_WALLET_KEY) — the SAME wallet that pays for LLM calls. Never leaves the machine. - Deposit wallet = a Polygon vault contract derived from that key (POLY_1271). It holds the betting funds in pUSD and only honors the signer's EIP-712 signatures. Deploy/approve/redeem are gasless (relayer).
- Money separation: bets spend pUSD on Polygon; x402 API fees spend USDC on
Base — but both come from the ONE ClawRouter wallet. The x402 budget ledger
does NOT cover bets —
confirm:true+ caps do. - Zero setup: no Polymarket account, no API keys, no gas token. On first
setupClawRouter bootstraps a builder key from the user's OWN wallet, then derives + deploys the vault (all gasless). Geoblock is handled by default — CLOB traffic routes through BlockRun's Tokyo egress out of the box.
Golden rules for agents
- Never pass
confirm:trueunless the user explicitly approved that exact trade. Call once WITHOUT confirm → show the dry-run preview → ask → re-call withconfirm:true. - Per-order cap
POLYMARKET_MAX_BET_USD(default $25) and optional session cap are enforced locally; don't try to split orders to sneak past them. - On ANY error, read the message — it says exactly what to do next (fund, approve, region, re-run setup). Don't retry blindly.
End-to-end flow
# 0. No Polymarket account or API keys needed — ClawRouter bootstraps everything
# from the user's own wallet on first setup. (Set POLYMARKET_CLOB_HOST to a
# permitted-region egress only if the user is in a geoblocked region.)
# 1. Provision + inspect (idempotent, safe to re-run any time)
blockrun_polymarket action:"setup"
# → deposit wallet address + funding instructions + region status
# 2. Fund the vault from the user's Base USDC — gasless x402, one call ($0.01 fee,
# non-custodial). pUSD credit is ASYNC (minutes) — re-run setup to watch it. Min $2.
blockrun_polymarket action:"fund" amount_usd:5 # dry-run preview
blockrun_polymarket action:"fund" amount_usd:5 confirm:true
# 3. Sign the one-time gasless approval batch (after user consent)
blockrun_polymarket action:"setup" confirm:true
# 4. Find a market + token (data tool, paid data)
blockrun_predexon_markets ... # → clobTokenIds, conditionId (Polymarket /v1/pm data)
# 5. Preview, then place
blockrun_polymarket action:"buy" token_id:"..." amount_usd:2 # dry-run
blockrun_polymarket action:"buy" token_id:"..." amount_usd:2 confirm:true # market FOK
# or limit: price:0.45 size:10 (GTC; order_type:"GTD" + expires_at for expiry)
# or via condition: condition_id:"0x..." outcome:"Yes"
# 6. Manage
blockrun_polymarket action:"orders" # open orders
blockrun_polymarket action:"cancel" order_id:"..." # or all:true
blockrun_polymarket action:"positions" # holdings + PnL + redeemable
# 7. Claim winnings after resolution (gasless)
blockrun_polymarket action:"redeem" condition_id:"0x..." # preview
blockrun_polymarket action:"redeem" condition_id:"0x..." confirm:true
# 8. Cash out — pUSD → native USDC on Base, back to the user's agent wallet
blockrun_polymarket action:"withdraw" # dry-run (full balance)
blockrun_polymarket action:"withdraw" confirm:true # (partial: amount_usd:5)Order semantics
- Prices are probabilities 0–1, auto-rounded to the market's tick grid.
- Market buy =
amount_usd(dollars). Market sell =size(shares). - Limit orders:
price+size; default GTC;post_only:truefor maker-only. - FOK fails whole-or-nothing; FAK fills what it can. On "FOK not filled", offer FAK or a limit at the shown book price.
Regions / geoblock
Order placement is IP-geoblocked (US/UK/EU + many regions). Handled by
default — CLOB traffic routes through BlockRun's Tokyo egress, so setup
reports ✅ Region: order placement permitted out of the box; you don't need to
do anything. A user can override with POLYMARKET_CLOB_HOST (their own relay),
or POLYMARKET_CLOB_PROXY / HTTPS_PROXY. Respecting Polymarket's ToS for the
user's jurisdiction is the user's responsibility — never suggest evading it.
Troubleshooting
- "No deposit wallet configured" → run
action:"setup". - "No ClawRouter wallet found" → generate one via the
/walletcommand (or setBLOCKRUN_WALLET_KEY) before trading. - No manual creds are ever needed — ClawRouter bootstraps its builder key from
the user's own wallet on first
setup. (Advanced:POLYMARKET_SIG_TYPE=0= plain EOA mode; needs POL gas + pUSD in the EOA, and is read-only for orders.) - Balance/allowance errors right after funding →
setupagain (refreshes the CLOB's balance cache). - 403 → region issue; see setup's region line.
- "order signer address has to be the address of the API KEY" → auto-recovered
once (creds re-derived); if persistent,
setup, then considerPOLYMARKET_SIG_TYPE=0(upstream clob-client-v2 issue #65).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

