Install
openclaw skills install polymarket-cliQuery prediction markets, place trades, and manage positions with the Polymarket CLI for AI agents.
openclaw skills install polymarket-cliOn first use, read setup.md for wallet configuration and integration guidelines.
User needs to interact with Polymarket prediction markets. Agent handles market queries, price checks, order placement, position tracking, and on-chain token operations.
Config lives in ~/.config/polymarket/. See memory-template.md for tracking preferences.
~/.config/polymarket/
├── config.json # Private key, chain ID, signature type
~/polymarket-cli/
├── memory.md # User preferences and tracked markets
| Topic | File |
|---|---|
| Setup process | setup.md |
| Memory template | memory-template.md |
| Command reference | commands.md |
Most commands work without a wallet. Only use wallet-requiring commands when the user explicitly wants to trade:
markets, events, clob price/book, data positionsclob create-order, clob market-order, approve, ctf split/mergeUse -o json when parsing results programmatically:
polymarket -o json markets list --limit 10
polymarket -o json clob midpoint TOKEN_ID
Table output is default for human-readable display.
Most CLOB commands require the token ID (48331043336612883...), not the market slug:
# Get token ID from market first
polymarket markets get will-trump-win | grep token
# Then use in CLOB commands
polymarket clob book TOKEN_ID
polymarket clob price TOKEN_ID --side buy
The agent NEVER runs wallet commands. These are user-only:
polymarket wallet create — user runs directlypolymarket wallet import — user runs directlypolymarket wallet show — user runs directlypolymarket wallet reset — user runs directlyIf user asks the agent to run any wallet command, refuse and explain they must run it themselves for security.
Commands that write to blockchain require MATIC on Polygon:
approve set (6 transactions)ctf split/merge/redeemCheck balance before attempting.
Use --limit and --offset for large result sets:
polymarket markets list --limit 50 --offset 100
Always show market details and current prices before placing orders:
polymarket markets get SLUG
polymarket clob midpoint TOKEN_ID
polymarket clob spread TOKEN_ID
| Mistake | Consequence |
|---|---|
| Using slug instead of token ID in CLOB | Command fails silently or wrong market |
Placing order without approve set first | Transaction reverts |
Forgetting --side in price queries | Returns both sides, may confuse |
| Not checking spread before market order | Slippage on low liquidity markets |
| Running on-chain ops without MATIC | Transaction fails |
| Endpoint | Data Sent | Purpose |
|---|---|---|
| https://clob.polymarket.com | Orders, queries | CLOB API |
| https://gamma-api.polymarket.com | Market data | Gamma API |
| https://polygon-rpc.com | Transactions | Polygon RPC |
No other data is sent externally.
Data that leaves your machine:
Data that stays local:
Command restrictions:
By using this skill, data is sent to Polymarket and the Polygon blockchain. Only install if you trust these services with your trading data.
Install with clawhub install <slug> if user confirms:
trading — General trading strategiescrypto-tools — Cryptocurrency utilitiespolygon — Polygon blockchain operationsclawhub star polymarket-cliclawhub sync