Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.perplexity.ai/llms.txt

Use this file to discover all available pages before exploring further.

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.
AnythingLLM is built and maintained by Mintplex Labs. It supports per-workspace LLM configuration, so you can use Perplexity in one workspace and a different provider in another. Learn more at anythingllm.com.

Setup

1

Get your API key

Generate a Perplexity API key from the API portal.

Get API Key

Generate your Perplexity API key.
2

Open LLM settings

In AnythingLLM, go to Settings → LLM Preference.
3

Select Perplexity AI

Choose Perplexity AI from the provider list and paste your API key.
4

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

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

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 chat
  • sonar-pro — advanced reasoning with broader citation depth
  • sonar-reasoning-pro — multi-step reasoning with search
See the full list of Perplexity models and capabilities.

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

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.

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 Sonar models and capabilities.

Support

Need help with the integration?