Perplexity
Sonar models with the familiar aliases for fast answers, reasoning, and deep research.
Default model
sonar
One command surface for the models and knowledge you already use.
Choose Perplexity, NVIDIA NIM, or OpenRouter for chat. Keep your RAG knowledge base fast, local, and under your control.
$ install
pip install pplx-cli
$ configure default
perplexity setup --provider nvidia
✓ NVIDIA NIM key stored securely
$ ask with an override
perplexity ask --provider openrouter --model openrouter/free "Summarize the release"
Using provider: OpenRouter
Response ready · history saved locally
01 / providers
The CLI keeps provider setup uncomplicated: save a default once, or select a provider and native model per command when the task calls for it.
Sonar models with the familiar aliases for fast answers, reasoning, and deep research.
Default model
sonar
Route requests to NVIDIA-hosted models while keeping the same concise CLI workflow.
Default model
meta/llama-3.3-70b-instruct
Reach a broad model catalog through one provider, including the default free route.
Default model
openrouter/free
Environment variables take priority for CI and shell-specific credentials; otherwise perplexity setup stores the selected provider key and default locally.
02 / LLM wiki
Turn an interlinked Markdown vault into a living knowledge graph. See how notes, research, prompts, and open questions actually connect.
Build the graph
$ perplexity knowledge-graph --dir ~/my-vaultParses wikilinks, aliases, headings, Markdown links, relative paths, and external URLs.
Drag, zoom, and inspect a force-directed graph that reveals clusters and high-connection notes.
Open a local graph immediately or save a standalone HTML file for offline sharing and review.
Save it offline
$ perplexity knowledge-graph --dir ~/my-vault --output ~/Desktop/wiki.html03 / local context
Hosted model choice and local retrieval are separate on purpose. Use the provider that fits the answer; keep the context you’ve built close.
See the four-step setup$ perplexity rag "How did we handle auth retries?"
mode hybrid sources notes + chats
matches 12 latency 89msVector similarity and keyword matching are fused so exact names and related ideas both surface.
Notes and chat history stay together in a portable SQLite-backed index built for fast recall.
RAG indexing and retrieval happen on your machine; route only the answer generation you choose.
04 / quickstart
Set a default once. Search locally, then make the connections in your Markdown wiki visible.
$ pip install pplx-cli$ perplexity setup --provider openrouter$ perplexity rag "what did we decide about retries?"$ perplexity knowledge-graph --dir ~/my-vault$ pip install pplx-cli$ perplexity setup --provider openrouter$ perplexity rag "what did we decide about retries?"$ perplexity knowledge-graph --dir ~/my-vaultOpen source / MIT licensed / cross-platform
Read the docs on GitHub