Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Online search from your terminal using Perplexity AI

License

NotificationsYou must be signed in to change notification settings

japelsin/pplx

Repository files navigation

GoLicense

CLI for searching withPerplexity's API. Can also be used as a chatbot.

Prerequisites

  • Perplexity account and API key. You'll be prompted for the API key the first time you runpplx.

Installation

brew install japelsin/tap/pplx

From source

If you havego installed:

go install github.com/japelsin/pplx@latest

You could also grab the appropriate executable fromreleases.

Usage

Search

Search command. Most parameters allowed by thePerplexity API are available as options. The defaults for some flags can also be set through the config (see below).

Usage:  pplx search [flags]Flags:  -a, --api_key string                     API Key  -f, --frequency_penalty float            Token frequency penalty [0, 1.0]  -l, --max_tokens int                     Token limit per request  -m, --model string                       Model to use  -p, --presence_penalty float             Token presence penalty [-2.0, 2.0]  -q, --query string                       Your query  -d, --search_domain_filter stringArray   Domain filter (e.g. '-d https://x.com -d https://y.com')  -r, --search_recency_filter string       Recency filter (month, week, day or hour)  -s, --system_prompt string               System prompt  -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]

Config

The following config options are available:

Usage:  pplx config set [command]Available Commands:  api_key       Set API key  max_tokens    Set default max tokens  model         Set default model  stream        Set whether to stream response  system_prompt Set default system prompt

[8]ページ先頭

©2009-2025 Movatter.jp