CLI for searching with Perplexity's API. Can also be used as a chatbot.
- Perplexity account and API key. You'll be prompted for the API key the first time you run
pplx
.
With Homebrew
brew install japelsin/tap/pplx
If you have go installed:
go install github.com/japelsin/pplx@latest
You could also grab the appropriate executable from releases.
Search command. Most parameters allowed by pplx-api
are available as options. The model is set through the config (see below).
Usage:
pplx search [flags]
Flags:
-f, --frequency_penalty float Token frequency penalty [0, 1.0]
-l, --max_tokens int Token limit per request (default 1000)
-m, --model string Model to use (default "sonar-small-online")
-p, --presence_penalty float Token presence penalty [-2.0, 2.0]
-q, --query string Your query
-t, --temperature float Response randomness [0, 2.0]
-K, --top_k int Number of tokens to sample from [0, 2048]
-P, --top_p float Probability cutoff for token selection [0, 1.0]
The API reference can be found here.
Usage:
pplx config [command]
Available Commands:
path Get configuration file path
reset Reset config
set Set config value