agentsclimarketplace

Perplexity cli

Skill semantic-craft/opencli-stack/skills/perplexity-cli

OpenCLI 技能资产与运行时插件适配器的 monorepo(学术检索 + 报销流程)。Monorepo for OpenCLI skill assets and runtime plugin adapters.

Install
npx -y skills add semantic-craft/opencli-stack --skill perplexity-cli

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

3 things to look at

  • 13 days oldThe repository was created 13 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Perplexity CLI setup, auth, and subcommand reference. Use when the user mentions Perplexity CLI, pplx command, PERPLEXITY_API_KEY, or needs help with pplx installation or configuration. For actual search tasks use perplexity-search.

SKILL.md

3.3 KB, as published. Nobody here has run it

perplexity cli

Shell-native Perplexity access. No MCP required. Installed as a pip package via pipx.

Install

# Install from source
pipx install /path/to/opencli-stack/skills/perplexity-cli/

# Verify
pplx models

Credentials: PERPLEXITY_API_KEY env var → macOS Keychain service perplexity-api-key fallback.

# Set key
export PERPLEXITY_API_KEY="pplx-..."

# Or Keychain
security add-generic-password -a "$USER" -s perplexity-api-key -w "<key>" -U

Subcommands

CommandAPIPurpose
pplx searchSearch APIStructured web results with URLs
pplx askSonar (sonar-pro)Quick grounded answer
pplx reasonSonar (sonar-reasoning-pro)Analytical reasoning with evidence
pplx researchSonar (sonar-deep-research)Deep multi-source investigation
pplx agentAgent APIMulti-turn search loop with presets
pplx expandSonar (no search)Query reformulations
pplx batchParallel stdin dispatch
pplx jobs [ID]Async APIList async jobs / fetch one result
pplx modelsModels APIList available models

Common flags

FlagApplies toPurpose
--jsonallRaw JSON output
-o FILEallWrite to file
--domain Dsearch, ask, reason, research, agentDomain allow/denylist (repeatable)
--recency {hour,day,week,month,year}search, ask, reason, research, agentPublication recency
--language XXsearch, ask, reason, researchISO 639-1 (repeatable)
--search-context-size {low,medium,high}ask, reason, researchWeb search depth (cost lever)
--search-type {auto,pro,fast}ask, reason, researchSearch pipeline; fast is the cheap/quick tier
--search-mode {web,academic,sec}ask, reason, researchSource type
--streamask, reason, researchSSE streaming
--asyncresearchSubmit async job (sonar-deep-research only); poll with pplx jobs ID
--preset {fast-search,pro-search,deep-research}agentAgent preset
--instructions TEXTagentSystem prompt (replaces preset default)

Every sonar/agent call prints actual usage to stderr, e.g. [pplx] usage: 17 prompt + 871 completion tokens, $0.0191 (suppress with --no-cost-warn). 429/5xx responses are retried once automatically.

Cost

Command / presetApprox per call
search~free
ask / agent --preset fast-search~$0.005
agent --preset pro-search~$0.01
reason~$0.05
research / agent --preset deep-researchup to ~$2

Deep research holds the connection for minutes; prefer pplx research "..." --async then pplx jobs ID over blocking.

Scripting convention

# Installed via pipx — just use the command directly
pplx search "..."

# Upgrade after git pull
pipx install /path/to/opencli-stack/skills/perplexity-cli/ --force

See also

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.