Polymarket CLI
Developers and AI agents use Polymarket's Rust terminal client to browse markets, place trades, and read JSON output.

Polymarket CLI: Terminal Trading and AI Agent Access
What is Polymarket CLI?
Polymarket CLI is an official open source Rust command-line client that lets developers and AI agents browse prediction markets, read order books, and place trades from a terminal.
Ready to try Polymarket CLI?
Open the official site and get started in a few clicks.
Polymarket CLI Overview
Polymarket CLI is a command line client for Polymarket, the prediction market where people trade on real world outcomes. It is a Rust binary published in Polymarket's official GitHub repo. Install it, type a command, get markets, prices or order books back in your terminal. Every command also speaks JSON, and that second part is why a lot of people install it.
It fits two groups. Developers building bots, dashboards or research scripts, and traders who already work in a shell and would rather type polymarket markets list than load the site. Agent builders are the noisiest crowd around it, because a CLI is an easy surface to hand to a model: give the agent a shell, tell it the commands, and it can read what a market is pricing and act on it.
Install with Homebrew through the Polymarket tap, with the curl script, or from source with cargo. Browsing needs no wallet. You can list and search markets, filter by active or closed, group them into events, and pull CLOB market data: prices, midpoints, spreads, the book, last trade, and price history from one minute to max. Tags, series, comments, public profiles and sports metadata are there too.
Trading needs a configured key. polymarket setup walks you through it once. After that you get limit and market orders, batch posting, cancel by id or by market or all, and the usual time in force flags. Positions, trades, balances, open orders and order scoring each have a command. On chain pieces cover approvals and conditional token split, merge and redeem on Polygon, paid in MATIC, with amounts in pUSD. Bridge helpers hand you deposit addresses for EVM chains, Solana and Bitcoin.
The difference from most Polymarket tooling is shape. It is a terminal tool with an interactive shell, MIT licensed and free. The only interface is the shell. Table output by default, JSON on request, errors to stderr and a non zero exit code on failure, which is what a script needs to branch on. The docs are a command reference rather than a landing page.
Check the version before you build on it. The last tagged release is v0.1.5 from March 2026 and the last code push is May 2026, so run polymarket --version and upgrade rather than assuming a newer Polymarket endpoint is wrapped. My read: a plain tool that does what a CLI should, nothing magic. Whether you want an agent placing orders at 3am while nobody watches is your call.
Polymarket CLI Key features
-
Market browsing
List, search, and fetch markets by id or slug, filter by active or closed status, and read tags, events, series, and comments. None of it needs a wallet.
-
Public CLOB data
Pull prices, midpoints, spreads, order books, last trade, and price history on intervals from one minute to max. Tick size, fee rate, server time, and the geoblock check sit in the same group of commands.
-
Order placement
Send limit orders or market orders sized in notional, batch them, and pick GTC, FOK, GTD, or FAK. Limits take a post-only flag.
-
Order management
Cancel a single order, a batch, everything open in one market, or the whole book. List your open orders and past trades from the same shell.
-
Rewards and API keys
Check daily earnings, per-market rewards, and whether your orders score for liquidity rewards. Create, list, and delete API keys alongside them.
-
Portfolio and leaderboards
Read positions, closed positions, portfolio value, trade history, holders, open interest, and event volume. Trader and builder leaderboards come from the same data commands.
-
Onchain approvals
approve check shows what the contracts can spend; approve set sends the transactions and costs MATIC for gas. Split, merge, redeem, and redeem-neg-risk conditional tokens work the same way.
-
Bridge deposits
Look up a deposit address for an EVM chain, Solana, or Bitcoin, read the supported assets list, and poll deposit status. This brings funds onto Polymarket and does not trade on those chains.
-
Wallet setup
Create a random key, import one you already hold, print the address, or reset the config. Keys live in ~/.config/polymarket/config.json or the POLYMARKET_PRIVATE_KEY variable.
-
JSON output
Every command prints a table by default; add -o json for machine-readable output. Errors go to stderr in table mode and as a JSON object in JSON mode, with a non-zero exit code either way.
-
Guided setup
polymarket setup walks a new user through wallet and config choices. status, upgrade, --version, and --help handle the housekeeping.
-
Install paths
Use the Homebrew tap, the curl install script, or cargo build after cloning. Source builds need a Rust toolchain.
-
Interactive shell
polymarket shell opens a session so you can run commands without retyping the binary name each time.
Polymarket CLI Fees
-
Free client The CLI itself costs nothing: it is MIT licensed open source with no SaaS subscription.
-
Trading fees Trades pay Polymarket's normal CLOB fee rates, and the clob fee-rate command shows the live rate for a given token.
-
Gas costs Approvals, CTF split, merge, redeem, and bridge steps spend MATIC on Polygon (chain_id 137).
-
Liquidity rewards Some resting orders earn protocol liquidity rewards that the reward and order-scoring commands check, and those are not a rebate from the CLI.
Polymarket CLI Supported networks
Polygon- EVM
Solana
Bitcoin
How to use Polymarket CLI
-
Install with Homebrew
Run brew tap Polymarket/polymarket-cli, then brew install polymarket. The repo also ships a curl install script, and you can build from source with cargo install --path . after cloning.
-
Check your version
Run polymarket --version. The newest tagged release is v0.1.5 from 10 March 2026, so know what you have before you trust any newer docs.
-
Browse markets first
Run polymarket markets list to see what is trading. No wallet is needed here, and you can filter by active or closed, set a limit, and page with offset.
-
Search for a market
Run polymarket markets search with your question, or pull a single market by id or slug. Use polymarket events list when you want the group of related markets around one question.
-
Read the order book
Run polymarket clob book for a token id to see resting bids and asks. polymarket clob price-history takes intervals from 1 minute up if you want to see where the price has been.
-
Turn on JSON output
Add -o json to any command when you plan to pipe the result into jq or hand it to an agent. Errors come back as a JSON object in JSON mode and always exit non-zero on failure.
-
Run the setup wizard
Run polymarket setup for the guided first pass. It writes to ~/.config/polymarket/config.json, and the defaults are chain 137 with the proxy signature type.
-
Create or import a wallet
Use polymarket wallet create for a fresh random key, or import one you already have. Give it a dedicated trading key holding a small balance, because the key sits in a plain config file or the POLYMARKET_PRIVATE_KEY variable.
-
Confirm your signature type
Work out whether your account signs as proxy, eoa, or gnosis-safe before you send anything. You can override the type per command or with POLYMARKET_SIGNATURE_TYPE.
-
Approve your contracts
Run polymarket approve set so the contracts can move your collateral. This sends onchain transactions and burns MATIC for gas on Polygon, so leave some in the wallet.
-
Check your balance
Run polymarket clob balance for collateral and conditional token balances. polymarket clob fee-rate shows the live rate for the token you plan to trade, and clob geoblock tells you if your location is restricted.
-
Place a small test order
Start with polymarket clob create-order at a size you are fine losing. GTC is the default order type, and the post-only flag keeps you from crossing the spread.
-
Watch orders and trades
Run polymarket clob orders to see what is resting and polymarket clob trades for fills. Cancel a single one with cancel, or clear everything on a market with cancel-market.
-
Review your positions
Run polymarket data positions with your wallet address, then polymarket data value for the total. These reads are public, so they work even before you configure a key.
-
Open the shell
Run polymarket shell when you want one session instead of typing the binary name each time. Every command inside still takes -o json.
-
Upgrade when needed
Run polymarket upgrade to pull a newer build if one exists. No release has been tagged since March 2026 and the last push was May, so do not assume the newest Polymarket API endpoints are wrapped.
Polymarket CLI Demo video
Polymarket CLI Screenshots
Polymarket CLI User Reviews
-
Ah I see, installing Polymarket CLI 🫡
View on X ↗ -
Now with the Polymarket CLI claude can prolly go copy trading
View on X ↗ -
Just opened the PR to the official Polymarket CLI repo.
View on X ↗
@SuhailKakar when you have a minute, would love your review on this! 🤝
> https://t.co/3bhlqKZSVl
Polymarket CLI Review
Pros
- Market browsing works without a wallet, so you can read prices before handing over a key.
- Every command can print JSON, which is what agents and jq scripts need.
- The binary installs with one Homebrew command and the license is MIT, so there is no subscription and no lock-in.
- It ships from the Polymarket GitHub org, so you can read the source before you trust it with a key.
- Limit orders, market orders, batch posts, and cancel by market all run from one terminal session.
- Errors go to stderr with a non-zero exit code, so a broken script stops instead of pretending it worked.
- The readme calls the tool experimental and tells you to keep funds small, which is the warning you want before the first trade.
- Geoblock and fee-rate checks are built in, so you see the real cost and restrictions before placing anything.
Cons
- No tagged release since v0.1.5 on 10 March 2026, so the install has sat still for months.
- Wallet setup accepts a raw private key, and a leaked key empties the account.
- Trading only runs on Polygon, so funds on other chains stay outside the CLI.
- Approvals and CTF steps burn MATIC gas, which you have to keep topped up.
- Two contributors carry 28 open issues and 38 open pull requests, so fixes can wait a long time.
- The readme itself calls it experimental and warns against using it with large amounts of funds.
- There is no AI inside the binary, so the agent framing depends on whatever tool you wrap around it.
- Documentation lives only in the GitHub readme, with no separate guide or support channel.
Our verdict
Polymarket CLI comes from the official Polymarket GitHub org, and it handles the unglamorous work well: read markets and order books with no wallet attached, then place or cancel orders once you import a key, with JSON output on every command and non-zero exit codes on failure for scripts. I use it for research, since clob price-history -o json piped into jq beats clicking around the site. The weak spot is momentum. v0.1.5 landed in March 2026, the last push was May, and the readme still calls it early experimental software you should not trust with large funds, so newer Polymarket API surfaces may not be wrapped yet. Pick it up if you are building trading agents or terminal dashboards and want a small official client; for casual betting in a browser, skip it.
Is Polymarket CLI safe & legit?
Polymarket CLI comes from Polymarket's own GitHub organization, and Suhail Kakar, the company's head of defi integrations, introduced it, so the publisher is the real Polymarket team. Developers have done real work in the repo and opened pull requests against it, and I found no reports calling it a scam or a lookalike, so no red flags on the origin side. The risks are the ones the readme admits: it is early experimental software the team says not to use with large funds, and wallet setup takes a raw private key, so trade from a dedicated key holding small amounts and check the version, since the last release was March 2026.
X account intel @SuhailKakar
-
Based in Netherlands
-
Joined X July 2018 8 years ago
-
Username changes Never renamed
-
Signup source United States App Store
Public profile signals from X. Use as one input alongside other due-diligence.
Security scan checked Nov 22, 2026
- Google Web Risk Not flagged
- MetaMask Not flagged
- Phantom Not flagged
- ScamSniffer Not flagged
- EtherAddressLookup Not flagged
- Keplr Wallet Not flagged
Domain github.com checked against Google's lists of unsafe sites and public crypto wallet blacklists.
This is an automated check, not a security audit. The summary is drafted from the project's own pages and public posts, and the domain is looked up on public blocklists. Nothing here is financial advice: only put in money you can afford to lose. How we review listings
Polymarket CLI FAQ
Is this an official Polymarket tool?
Can I browse markets without a wallet?
Is it safe to use with real money?
What does it cost to use?
The last release was March 2026. Is the project abandoned?
Polymarket CLI Updates
-
there are grown men taking days off work just to play gta 6
there's literally zero competition, lock in- 7 replies
- 4 reposts
- 29 likes
- 2.6K views
-
Lower fees are coming to more markets on Polymarket International.
Starting Friday, Nov 20 at 11:59 PM UTC, we’re dropping the taker fee coefficient to 0.01 across politics, culture, weather, economics, mentions, & non-5/15m-BTC crypto on polymarket.com.
Full breakdown 🧵
https://polymarket.com/r/7OeW4Jd- 91 replies
- 82 reposts
- 447 likes
- 378.1K views
-
- 7 replies
- 1 reposts
- 53 likes
- 2.8K views
-
we've been waiting years for this one
nex is the fastest exchange in prediction markets: 412x faster order placement, 196x faster cancels and 10x the scale of our current exchange
if you're trading or building on polymarket, dm me and i'll get you set up personally- 21 replies
- 8 reposts
- 112 likes
- 7.5K views
-
elon should do everything he can to team up with jensen
he knows chips and nvidia inside out. add elon's compute, capital and xai and it's game over for literally every ai company for the next decade.- 7 replies
- 30 likes
- 2.8K views
-
New security feature: Withdrawal address allowlisting
You can now lock withdrawals from your deposit wallet to addresses you’ve approved. Adding a new address requires email verification and a 48-hour time lock, and you can cancel it from the email if it wasn’t you. That means even if someone gets into your session or you sign a bad transaction, they can’t drain funds or transfer your positions to an address you don’t control. I highly recommend enabling it if you are on the latest wallet version.
Turn it on in Settings → Account. Passkey support is coming soon to strengthen security further.
For non-deposit wallet users, we are developing a migration tool to help you move everything to the new wallet type. If you don't want to wait, you can open a new account to access this feature immediately.
We are also working on adding more advanced built-in security protection, without requiring you to enable anything on your deposit wallet - will also be live soon.
- 95 replies
- 36 reposts
- 319 likes
- 49.4K views
-
Last night was special.
Election days just never get old for us at Polymarket. Watching regular people experience the beauty of market based forecasts as the results come in. How practically useful it is. How simple it is to interpret. When it clicks, it clicks.
It’s now routinely hours between when prediction markets call it versus the TV networks. The networks hold out until absolute certainty, and the suspense keeps it entertaining all night. No knock to them, but now there’s Polymarket, and many people are realizing they want to know what's happening in real time.
I know the industry has gained a mixed rap for a variety of reasons, many of which are criticisms with real merit. But I think I speak for both myself and my peers when I say we got into this because we really love the idea of markets being able to place a price on the future (e.g. Democrats had a 92% chance to take the House on Polymarket), and how that can help people better understand what's likely to happen and make decisions accordingly.
Our mission is to make sure we deliver on the promise of prediction markets, which was on full display last night. In the midst of so much noise around what we do, the American people get to see what Polymarket is really all about. Feels like one step closer to the dream. Onwards.- 131 replies
- 73 reposts
- 771 likes
- 541K views
-
Today's an exciting day for prediction markets.
It's not necessarily about the volume (although I'm tracking), but more about the predictive power.
I got into PMs because I'm a believer. I did this shit for free before hired by Poly. This shit is fun. Excited for tonight.- 9 replies
- 7 reposts
- 104 likes
- 7.6K views
-
Digital minimalism
https://vitalik.eth.limo/general/2026/10/31/digital_minimalism.html- 580 replies
- 509 reposts
- 4.4K likes
- 1.1M views
-
Yesterday, a 3rd-party performance script on polymarket.com was compromised by its vendor's attacker & swapped for one built to target our users. For a small window of time, it used open sessions to sell positions and move funds. The vendor has publicly confirmed the breach..- 30 replies
- 20 reposts
- 197 likes
- 43K views
-
- 27 replies
- 27 reposts
- 181 likes
- 30.4K views
-
- 98 replies
- 57 reposts
- 2.3K likes
- 266.5K views
-
HOLY SHIT.
For crypto, this is one of the most insane posts of the year, but I'm guessing most people don't understand it.
Let me explain...
Bitcoin's accounts, and subsequently Ethereum's (and therefore every other EVM chain's), are built on a specific elliptic curve called secp256k1.
secp256k1 is a different elliptic curve from the one used across nearly every modern hardware device, including iPhones.
Modern devices mostly use a different curve called secp256r1, which is usually referred to as P-256 - one of the curves investigated in the article.
This mismatch has made it sooo difficult in the past to integrate crypto accounts natively into the security systems of modern hardware.
For example, Apple's Secure Enclave natively supports P-256, not secp256k1.
This has prevented crypto accounts from being able to use the same hardware protection as things like Apple Pay.
Same goes for the web with passkeys - WebAuthn uses P-256 signatures, which means Ethereum accounts using secp256k1 can't use them natively either.
But why did Satoshi do this?
The main theory for choosing secp256k1 was distrust of the P-256 curve - i.e. he thought there was an NSA backdoor.
A "backdoor" here basically means a secret, intentional weakness in the curve that would allow the NSA to exploit it and access private keys.
This was because P-256 was created with involvement from the NSA...
And the NSA provided a mysterious "seed" used to generate one of the curve's parameters without explaining where that seed came from.
This eventually transformed into a ~25-year-old mystery with a 5-figure reward for finding where this seed came from.
Claude figured it out in less than 30 mins.
And the best part is its internal thinking was: "Hmm wait... is it suspicious that such an obvious thing wasn’t discovered in 25 years?"
The solution was stupidly simple - just the time the curve was created, put into a specific random number generator function.
This doesn't 100% prove there's no backdoor yet, but it provides strong evidence that this seed wasn't secretly engineered by the NSA.
And Claude did this with "just a simple prompt" in under 30 minutes.- 116 replies
- 217 reposts
- 2.9K likes
- 552.4K views
-
Calling all API traders in prediction markets 👋
I’m building out exchange product across both @Polymarket’s DeFi and US platforms, and my goal is to build the best trading APIs in prediction markets.
What’s broken, slow, or missing? Latency, rate limits, order types, market data, docs?
Replies and DMs are open. I want to hear what we should fix first.- 21 replies
- 5 reposts
- 63 likes
- 6.6K views
-
You can now tag @Polymarket inside Perplexity Computer for market and real time trends research tasks!- 27 replies
- 6 reposts
- 160 likes
- 23.8K views
-
our cracked protocol team rebuilt polymarket’s smart-contract foundation from the position token up
reach out with any migration questions or blockers- 13 replies
- 5 reposts
- 102 likes
- 6.4K views
-
privacy and computing are going to matter a lot more over the next decade
and crypto is the only way to make this possible
bullish on all privacy and compute tokens- 31 replies
- 7 reposts
- 101 likes
- 7.8K views
-
polymarket is now live in coinbase wallet!
you can trade crypto, sports, and more without leaving the app
we’re also live in metamask, rainbow, gate exchange, jupiter, and hundreds of other apps and wallets
lots more to come- 22 replies
- 7 reposts
- 93 likes
- 5.2K views
-
We usually don't share timelines, but we want to be as transparent as possible about the new Rust CLOB build-out for Polymarket DeFi. The current CLOB is the system behind most of the issues we see today, so we've got all hands on deck building the new one.
- Oct - full order lifecycle working end to end in staging: trading + settlement flow + onchain + indexer + engine notification flow
- Nov - mirroring full production traffic to the new exchange cluster and diffing outputs against the current system. MM test access opens in Nov; we'll confirm the exact date by the end of Oct.
- Nov - migration cutover plan locked, with 2x full rehearsals before we flip anything
If all goes well, we then release it.
The migration is designed to require minimal to no work on any MM/developer's side. Request and response interfaces should stay as they are: we may add extra useful fields, one field may be deprecated, and anything we deprecate will have a notice period before go-live.- 48 replies
- 19 reposts
- 276 likes
- 31.7K views
Polymarket CLI Reviews & Comments
No reviews yet. Be the first to share your experience.
Polymarket CLI alternatives
Other Polymarket tools that do a similar job. Compare and pick what fits your workflow.
-
Compare
PolyEdge
PolyEdge gives developers low-latency Polymarket mempool data and fee-adjusted on-chain a…
-
Compare
Predexon
Traders and app builders get live Polymarket, Kalshi, and multi-venue data plus wallet an…
-
Compare
Wethr
Weather market traders use Wethr for fast station charts, model forecasts, and settlement…
-
Compare
NautilusTrader
Quant teams backtest and trade live with the same strategy code using this open-source Ru…
Recommended reading
In-depth guides for Data & APIs — get more out of tools like Polymarket CLI.
-
Tool Reviews
Polymarket Tools Directory: Find Polymarket Ecosystem APP Lists
Compare Polymarket tools directories side by side. Find trading bots, analytics dashboards, whale trackers and APIs, plus safety…
10 min read -
Tool Reviews
Free Polymarket Open Source Tools and Trading Bots on GitHub
Free Polymarket open source tools and trading bots on GitHub. Datasets, backtesters, copy trading, weather bots, and AI agents, w…
10 min read -
Tool Reviews
Polymarket CLI Commands and Features: A Full Guide for Traders, Scripts, and AI Agents
A practical guide to Polymarket CLI commands and features. Install it, browse markets, read order books, place orders, and pipe J…
8 min read
Ready to try Polymarket CLI?
Open the official site and get started in a few clicks.







Leave a comment