packages/docs/plugin-registry/llm/perplexity.md
The Perplexity plugin connects Eliza agents to Perplexity's search-augmented language models. These models combine LLM reasoning with live web search, making them ideal for agents that need up-to-date information.
On-demand plugin. This plugin is resolved from the remote elizaOS plugin registry and auto-installs when its API key is detected. It is not included in Eliza's bundled
plugins.jsonindex.
Package: @elizaos/plugin-perplexity
eliza plugins install @elizaos/plugin-perplexity
The plugin auto-enables when PERPLEXITY_API_KEY is present:
export PERPLEXITY_API_KEY=pplx-...
| Environment Variable | Required | Description |
|---|---|---|
PERPLEXITY_API_KEY | Yes | Perplexity API key from perplexity.ai |
{
"auth": {
"profiles": {
"default": {
"provider": "perplexity",
"model": "sonar-pro"
}
}
}
}
| Model | Context | Best For |
|---|---|---|
sonar-pro | 200k | Complex research, multi-source synthesis |
sonar | 128k | General-purpose search-augmented answers |
sonar-reasoning-pro | 128k | Step-by-step reasoning with citations |
sonar-reasoning | 128k | Fast reasoning with web context |