Perp Cli
Multi-DEX perpetual futures CLI + MCP server — Pacifica (Solana), Hyperliquid, Lighter (Ethereum). 18 MCP tools for AI-powered trading
Multi-DEX perpetual futures CLI — Pacifica (Solana), Hyperliquid (HyperEVM), Lighter (Ethereum), Aster (BNB Chain), Lighter RH (Robinhood chain), Ondo Perps (off-chain), Arcus (Robinhood chain), QFEX (off-chain, TradFi perps), RISEx (RISE chain — read-only in 0.15.0, trading in a later release), TxFlow (market data only — unofficial API), Variational Omni (market data only — official API, RFQ venue), GRVT (market data only — official API; trading in a later release), Extended (Starknet, market data only — official API; trading in a later release), and Derive options data (read-only).
npm install -g perp-cli # global install
perp --json portfolio
# Or without global install (restricted environments)
npx -y perp-cli --json portfolio
Features
- 13 perp venues — trade on 8: Pacifica, Hyperliquid, Lighter, Aster, Lighter RH, Ondo Perps, Arcus, QFEX (bridge / perp-perp arb cover the original four); market data on RISEx (read-only in 0.15.0, trading in a later release) TxFlow (unofficial API, read-only), Variational (official API, read-only — no public trading API yet) GRVT (official API, read-only in this version — trading in a later release) and Extended (official API, read-only in this version — trading in a later release); plus Derive options data (read-only). See the support matrix
- Funding Rate Arb — perp-perp + spot-perp scan & one-command dual-leg execution
- Portfolio — single call returns balances, positions, risk level across all exchanges
- Funds — deposit, withdraw, transfer, multi-provider bridge (cctp/relay/debridge), inter-exchange rebalance — all in one group
- Bots — TWAP, grid, DCA, trailing-stop with background job management
- Agent-First Design —
--json,--fields,--ndjson,--dry-run, runtime schema introspection - Safety — pre-trade validation, response sanitization, client-id deduplication
Support matrix
What each venue supports in this release, derived from the code (venue definitions in src/exchanges/venues/*.ts, perp-cli/ws codecs in src/ws/codecs/, the funds deposit|withdraw commands, the options registry). ✅ = implemented and available; — = not available. This says what perp-cli offers, not what was run with real money — for that see What works — mainnet verification.
From the project's README.