Skip to main content

What is the DexPaprika CLI?

A fast, standalone command-line tool for querying on-chain DEX data. Written in Rust. Covers the entire DexPaprika API — token prices, pools, OHLCV, transactions, search, pool filtering, and real-time price streaming via SSE. No API key. No dependencies. One binary. Source: github.com/coinpaprika/dexpaprika-cli

Install

One-line install (macOS, Linux)

Downloads the latest release binary for your platform and puts it in ~/.local/bin. You can override the install path:

Download from GitHub

Pre-built binaries for every platform are on the releases page:

Build from source

Requires Rust:

Verify installation

You should see a health check response confirming the API is reachable.

Commands

Every DexPaprika REST API endpoint has a matching CLI command:

Output formats

The CLI outputs tables by default. Switch to JSON for scripting and piping:
Pipe raw JSON into jq for filtering:

Examples

Get a token price

Search for a token you don’t know the address of

List top pools by volume

Get OHLCV history for a pool

Stream live prices

Interactive REPL

Opens an interactive session where you can run commands without typing dexpaprika-cli each time.

Batch prices for a portfolio


Use with AI agents

AI agents running in terminals (Claude Code, Aider, etc.) can install and use the CLI as a tool. The one-liner install works in any shell:
Once installed, agents can call dexpaprika-cli directly with --output json --raw for machine-readable output. This is useful when:
  • The agent doesn’t have MCP support
  • You want the agent to script data pipelines
  • You need to pipe output into other tools (jq, csvkit, scripts)
  • You’re running headless or in CI/CD
Example agent workflow:

Troubleshooting

The installer puts the binary in ~/.local/bin. If that’s not in your PATH, add it:
Add that line to your ~/.bashrc, ~/.zshrc, or ~/.profile to make it permanent.
The installer tries ~/.local/bin first (no sudo needed). If it falls back to /usr/local/bin, it will ask for sudo. You can also set a custom directory:
Check the network ID (must be lowercase: ethereum, not Ethereum) and verify the token address. Use dexpaprika-cli search <name> to find the correct network and address.
SSE streams can drop due to network issues. The stream command will show an error. Restart it — the CLI handles reconnection. For production use, wrap it in a script with retry logic.

Next steps

REST API Reference

Full endpoint documentation with interactive playground

Streaming API

Real-time price streaming docs

Common Patterns

Standard API workflows

Vibe Coding with AI

Build projects with AI + DexPaprika

FAQs

No. The CLI uses the public DexPaprika API. No keys, no registration.
Same as the REST API: 10,000 requests per day. Each CLI command makes one API call (except stream, which is a single long-lived SSE connection).
The filter endpoint can be accessed via the REST API directly. Check the pool filtering tutorial for examples.
Yes. Download the Windows binary from the releases page. The install script works on macOS and Linux only.