Install
openclaw skills install nash0-polymarket-cliUse the Polymarket CLI (`polymarket`) to browse markets, inspect order books and prices, check public wallet data, review account state, and place or cancel orders. Use when a user asks to interact with Polymarket from the terminal, especially for: (1) listing, searching, and fetching markets or events, (2) reading CLOB books, spreads, midpoints, and price history, (3) checking positions, volume, holders, or leaderboards, (4) reviewing approval or account status, or (5) trading via `clob` commands. Never run wallet-management commands or read local private-key config files.
openclaw skills install nash0-polymarket-cliUse the polymarket binary directly. Prefer read-only commands by default, use -o json for structured output, and treat any trading or on-chain action as sensitive.
Never read ~/.config/polymarket/config.json or any file that may contain private keys.
Never run wallet-management commands yourself. The user must run these directly:
polymarket wallet createpolymarket wallet importpolymarket wallet showpolymarket wallet resetpolymarket wallet addresspolymarket setupAsk before running any command that can:
Safe to run without extra confirmation:
markets, events, tags, series, comments, profiles, sportsclob commands like book, price, midpoint, spread, price-history, marketdata commands for wallets, markets, holders, volume, leaderboardsRead-only authenticated commands are allowed only when they do not reveal secrets and do not modify state.
Check availability first:
polymarket --help
polymarket --version
Use JSON for agent work:
polymarket -o json markets list --limit 5
polymarket -o json markets search "bitcoin" --limit 5
polymarket -o json clob midpoint TOKEN_ID
Use this when the user wants a quick market read without trading.
polymarket -o json markets search "QUERY" --limit 10
polymarket -o json markets get MARKET_ID_OR_SLUG
polymarket -o json clob midpoint TOKEN_ID
polymarket -o json clob spread TOKEN_ID
polymarket -o json clob book TOKEN_ID
polymarket -o json clob price-history TOKEN_ID --interval 1d --fidelity 30
Summarize with: question, current odds, spread/liquidity hints, recent price context, and any obvious caveats.
Use this when the user wants exposure, PnL-ish status, or activity without changing anything.
polymarket -o json data positions 0xWALLET
polymarket -o json data value 0xWALLET
polymarket -o json data trades 0xWALLET --limit 50
If the local configured wallet is relevant and the user wants account state, use read-only authenticated checks that do not expose secrets:
polymarket -o json clob balance --asset-type collateral
polymarket -o json clob orders
polymarket -o json clob trades
polymarket approve check
Do not run wallet show; tell the user to run wallet-management commands themselves.
Do not run until the user confirms all of:
buy/sell)Recommended sequence:
# 1) Verify market context first
polymarket -o json clob midpoint TOKEN_ID
polymarket -o json clob spread TOKEN_ID
polymarket -o json clob book TOKEN_ID
# 2) Then place only after confirmation
polymarket clob create-order --token TOKEN_ID --side buy --price 0.50 --size 10
Repeat the full order back to the user before execution.
polymarket markets list --limit 10
polymarket markets search "election" --limit 5
polymarket markets get MARKET_ID_OR_SLUG
polymarket events list --limit 10
polymarket events get EVENT_ID
polymarket clob ok
polymarket clob book TOKEN_ID
polymarket clob midpoint TOKEN_ID
polymarket clob spread TOKEN_ID
polymarket clob price-history TOKEN_ID --interval 1d --fidelity 30
polymarket data positions 0xWALLET
polymarket data value 0xWALLET
polymarket data trades 0xWALLET --limit 50
polymarket data holders 0xCONDITION_ID
polymarket data open-interest 0xCONDITION_ID
polymarket data leaderboard --period month --order-by pnl --limit 10
Wallet-management commands are user-only. Do not run them yourself. If the user wants setup help, tell them which command to run locally.
# user-only
polymarket setup
polymarket wallet create
polymarket wallet import 0xPRIVATE_KEY
polymarket wallet show
# agent may run read-only approval checks
polymarket approve check
# agent must ask before any on-chain approval write
polymarket approve set
Only run after confirmation.
polymarket clob create-order --token TOKEN_ID --side buy --price 0.50 --size 10
polymarket clob market-order --token TOKEN_ID --side buy --amount 5
polymarket clob orders
polymarket clob cancel ORDER_ID
polymarket clob cancel-all
-o json and parse the result.--help on the relevant subcommand to inspect flags.brew tap Polymarket/polymarket-cli https://github.com/Polymarket/polymarket-cli
brew install polymarket
Read references/command-map.md when you need a fuller command inventory or a reminder of which areas are read-only vs sensitive.