Skip to main content
The PolyNode CLI (pn) gives you instant access to every PolyNode feature from the terminal. Watch live settlements scroll by, view full-depth orderbooks with bid/ask visualization, track short-form crypto markets with countdown timers, and monitor Chainlink price feeds. Every command also supports --json for programmatic use by agents and scripts.

Install

The binary is called pn.

Authentication

The CLI resolves your API key in this order:
  1. --key flag: pn markets --key pn_live_...
  2. POLYNODE_API_KEY environment variable
  3. ~/.config/polynode/key file (auto-saved when you run pn key create)

Commands

pn --help Every command supports --json for machine-readable output.

Static Commands

Markets

View the top markets by 24h trading volume.
pn markets Full-text search across all market questions.
pn search bitcoin

Status

System health, connection count, and state metrics.
pn status

Market Detail

Look up a single market by slug or token ID.

Live TUI Commands

Live commands open a full-screen terminal UI that updates in real-time. Press q or Esc to exit.

Stream

Watch every settlement, trade, block, or oracle event as it happens.
pn stream settlements Events are color-coded: yellow for pending, green for confirmed. The header shows event count and throughput rate.

Orderbook

Full-depth live orderbook with proportional bid/ask bars. Green bars show bid depth growing left, red bars show ask depth growing right.
pn orderbook Use arrow keys to scroll deeper into the book. The footer shows midpoint, spread, total updates, and update rate.

Short-Form Dashboard

Multi-coin dashboard for Polymarket’s short-form crypto markets. Shows all 7 coins (BTC, ETH, SOL, XRP, DOGE, HYPE, BNB) with beat price, direction, odds, liquidity, volume, and a countdown timer. Auto-rotates to the next window when the current one expires.
pn short-form 5m Live Chainlink data stream prices with bid/ask.
pn chainlink

JSON Mode (for Agents)

Every command supports --json for programmatic use. Static commands output pretty-printed JSON. Streaming commands output newline-delimited JSON (NDJSON), one object per line, with no TUI.
This makes pn composable with standard Unix tools and usable as a data source for automated trading agents.

Key Bindings (TUI)