CLI for the Perplexity API. Search, ask, research, and reason from your terminal.
cargo install compound-perplexityThe binary is called compound-pplx.
| Command | What it does | Model | Est. cost |
|---|---|---|---|
compound-pplx search <query> |
Quick web search | sonar | ~$0.006 |
compound-pplx ask <query> |
Pro search with analysis | sonar-pro | ~$0.01 |
compound-pplx research <query> |
Deep research | sonar-deep-research | ~$0.40 |
compound-pplx reason <query> |
Reasoning with thinking | sonar-reasoning-pro | ~$0.01 |
compound-pplx log |
Show recent queries | — | — |
compound-pplx log --stats |
Usage and cost breakdown | — | — |
- Four modes matching Perplexity's model tiers — from quick lookups to deep research
- Cited sources extracted and displayed inline
- Cost tracking — every query logged with timestamp, model, estimated cost, and duration
- Color-coded output — each mode has a distinct colour for easy scanning
--rawflag for JSON output,--no-logto skip history
Requires PERPLEXITY_API_KEY in your environment.
MIT