Trade Polymarket prediction markets from the CLI: list markets, buy and sell YES/NO tokens via CLOB, manage positions.
The CLI ships with first-class Polymarket support: discover markets by volume or keyword, fund a Polymarket proxy wallet from the smart wallet, place CLOB orders for YES/NO outcomes, and list open positions and orders. Polymarket uses a separate EOA key for CLOB signing, imported once via set-key. The proxy wallet needs a one-time approve call before the first buy.For an enterprise context, this is the surface for hedging operational risk (regulatory events, supply-chain disruptions, demand shocks) at small dollar values within a clear cap.
The proxy wallet is Polymarket’s per-EOA execution wallet. clob-buy funds it from the smart wallet first, then submits the buy order. sell and order management work directly against the proxy.
polygon-agent polymarket set-key 0xYOUR_EOA_PRIVATE_KEYpolygon-agent polymarket proxy-wallet# 0xProxyAddress (the destination for funding)polygon-agent polymarket approve --broadcast
set-key stores the EOA private key encrypted in ~/.polygon-agent/. approve is a one-time onchain transaction that authorizes the proxy wallet to spend USDC on Polymarket’s CLOB; without it, the first buy fails.