Perplexity with AnythingLLM
Overview
Section titled “Overview”AnythingLLM is an all-in-one AI productivity app that turns any document, resource, or piece of content into context for LLM-powered chat. It supports both desktop and self-hosted deployments and works with dozens of LLM providers — including Perplexity as a first-class cloud provider, giving every workspace access to web-grounded answers with citations.
Get your API key
Generate a Perplexity API key from the API portal.
Get API Key
Generate your Perplexity API key.
Open LLM settings
In AnythingLLM, go to Settings → LLM Preference.
Select Perplexity AI
Choose Perplexity AI from the provider list and paste your API key.
Choose a model
Once your key is entered, the Chat Model Selection dropdown automatically populates with available Perplexity models. Pick the model you want (e.g.,
sonar-pro) and save.
System vs. Workspace Models
Section titled “System vs. Workspace Models”AnythingLLM lets you scope LLM choice at two levels:
- System LLM — The default provider used for every workspace and agent.
- Workspace LLM — Per-workspace override that takes precedence when chatting inside that workspace.
You can mix providers freely. For example, set Anthropic as your system default and use Perplexity in a specific workspace where you need real-time web grounding for research-heavy chats.
To override per workspace: open the workspace, go to Workspace Settings → Chat Settings → Workspace LLM Provider, and select Perplexity AI with the model you want.
Available Models
Section titled “Available Models”All Perplexity models supported by the API are available to AnythingLLM users — the model dropdown populates dynamically once your API key is validated. Recommended models:
sonar— fast, cost-effective web-grounded chatsonar-pro— advanced reasoning with broader citation depthsonar-reasoning-pro— multi-step reasoning with search
See the full list of Perplexity models and capabilities.
Use Cases
Section titled “Use Cases”Pairing Perplexity with AnythingLLM gives you:
- Live web answers inside document workflows — your workspace can answer questions about uploaded PDFs and the open web in the same chat.
- Citation-grounded retrieval — Perplexity returns source URLs you can audit alongside your retrieval-augmented context.
- No-RAG fallback for current events — when documents don't contain the answer, the model can reach for live web context automatically.
Agent Configuration
Section titled “Agent Configuration”When using AnythingLLM's AI agents, you can configure Perplexity as the agent's LLM in the workspace's Agent Configuration menu. This is useful for agents that need to chain web research with skills like web browsing, document Q&A, or external API calls.
Links & Resources
Section titled “Links & Resources”AnythingLLM Perplexity Docs
Official AnythingLLM setup guide for Perplexity AI.
AnythingLLM Docs
Full AnythingLLM documentation.
Perplexity API Reference
Full Perplexity API reference.
Perplexity Models
Available models and capabilities.
Support
Section titled “Support”Need help with the integration?
- Browse the AnythingLLM documentation
- Review our FAQ