@goclaw/perplexity-cli
v1.0.0
Published
CLI tool to search and research the web via Perplexity API
Maintainers
Readme
@goclaw/perplexity-cli
CLI tool to search and research the web via the Perplexity API.
Installation
npm install -g @goclaw/perplexity-cliSetup
Get your API key at https://www.perplexity.ai/settings/api and export it:
export PERPLEXITY_API_KEY=pplx-xxxUsage
Ask a question
goclaw-perplexity ask "What is quantum computing?"
goclaw-perplexity ask "Latest AI news" --model sonar-reasoning --recency weekOptions:
-m, --model <model>— Model to use:sonar,sonar-pro,sonar-reasoning(default:sonar-pro)-d, --domains <domains...>— Restrict search to specific domains-r, --recency <recency>— Filter by recency:day,week,month,year
Search the web
goclaw-perplexity search "best restaurants in Hanoi" --max-results 5Options:
-n, --max-results <number>— Maximum number of results (default:10)-d, --domains <domains...>— Restrict search to specific domains-r, --recency <recency>— Filter by recency:day,week,month,year
Deep research
goclaw-perplexity research "AI trends 2026" --focus "focus on open source models"Options:
-f, --focus <focus>— System hint to focus or constrain the research
License
MIT
