← Home

Setup Guide

OpenClaw Perplexity Search Setup

Perplexity is an AI-powered search engine that synthesizes answers from multiple sources with citations. This guide covers how to get a Perplexity API key, install the perplexity-search skill, and configure AI-powered web research for your OpenClaw agent.

What Is Perplexity?

Perplexity is an AI-powered search engine that goes beyond returning links — it reads, analyzes, and synthesizes answers from multiple web sources in real time. Every response includes inline citations so you can verify the information and trace it back to its original source.

Unlike traditional search APIs that return raw snippets, Perplexity uses large language models to understand your query, search the web, and compose a coherent answer. This makes it especially powerful for complex research questions, multi-step reasoning, and staying up to date with real-time information.

Why Use Perplexity with OpenClaw?

OpenClaw supports several web search options. Here is how Perplexity compares to the alternatives:

PerplexityTavilyBrave SearchBuilt-in
Answer qualityAI-synthesized, citedAI-optimized, structuredRaw search resultsRaw HTML / page text
CitationsYes — inline sourcesSource URLs onlySource URLs onlyNo
Real-time dataYes — live web accessYesYesYes
Deep researchYes — multi-stepAdvanced depth modeNoNo
CostPay-per-queryFree tier: 1,000/moFree tier: 2,000/moFree (included)
API key requiredYesYesYesNo

Perplexity excels when your agent needs to answer complex research questions, provide cited sources, or perform multi-step web research. For simple lookups, the built-in search or Tavily may be sufficient.

Step 1: Get a Perplexity API Key

  1. Go to perplexity.ai and create an account
  2. Navigate to Settings → API in your Perplexity dashboard
  3. Generate a new API key (starts with pplx-)
  4. Add credits to your account — Perplexity API uses pay-per-query pricing

Perplexity API pricing is based on the model you use. Sonar Small queries cost fractions of a cent, while Sonar Pro queries cost more but deliver higher-quality research results.

Step 2: Install the Perplexity Skill

Install the perplexity-search skill from ClawHub:

/skill install @anthropic/perplexity-search

The skill will prompt you for your Perplexity API key during installation. Enter the key you copied from the Perplexity dashboard.

Alternatively, you can configure the API key manually in your openclaw.json:

{
  "skills": {
    "perplexity-search": {
      "apiKey": "pplx-your-api-key-here",
      "model": "sonar"
    }
  }
}

Step 3: Test It

After installation, test the Perplexity search skill with questions that showcase its strengths — complex research queries that benefit from AI-synthesized answers:

  • “Compare the latest features of React 19 vs Vue 4 with sources”
  • “What are the current FDA regulations for AI in healthcare?”
  • “Summarize the key findings from the latest IPCC climate report”

Your agent will use Perplexity to search the web and return a synthesized answer with inline citations. You can tell Perplexity is being used because responses will include numbered source references.

Perplexity Models

Perplexity offers several model tiers through its Sonar API. Choose based on your needs:

Sonar (Default)

The standard model for everyday search queries. Fast response times, good answer quality, and the most cost-effective option. Best for straightforward questions, quick lookups, and general web research.

Sonar Pro

The premium model for complex research. Uses more compute to search deeper, analyze more sources, and provide more thorough answers. Best for multi-faceted research questions, technical topics, and queries that require synthesizing information from many sources.

Sonar Deep Research

The most powerful option for in-depth research tasks. Performs multiple rounds of search and analysis, following leads across sources. Best for comprehensive research reports, literature reviews, and questions that require extensive investigation.

Configure your preferred model in openclaw.json:

{
  "skills": {
    "perplexity-search": {
      "apiKey": "pplx-your-api-key-here",
      "model": "sonar-pro"
    }
  }
}

Deep Research Mode

Perplexity's deep research mode is designed for complex, multi-step research queries. Instead of answering in a single pass, it:

  1. Breaks your question into sub-queries
  2. Searches the web for each sub-query independently
  3. Cross-references findings across sources
  4. Synthesizes a comprehensive answer with citations

Deep research is ideal for questions like “What are the pros and cons of different database architectures for a real-time analytics platform?” or “Compare the economic policies of the top 5 EU countries in 2026.”

To enable deep research, set the model to sonar-deep-research in your skill configuration, or ask your agent explicitly: “Do a deep research on...”

Perplexity vs Tavily

Both Perplexity and Tavily are popular search skills for OpenClaw. Here is a detailed comparison to help you decide:

  • Answer style — Perplexity returns fully synthesized prose with inline citations. Tavily returns structured JSON with extracted content and a short answer.
  • Best for — Perplexity excels at research questions that need analysis and synthesis. Tavily excels when your agent needs raw, structured data to process further.
  • Pricing — Tavily has a generous free tier (1,000 searches/mo). Perplexity is pay-per-query from the start, but delivers more polished results.
  • Deep research — Perplexity has a dedicated deep research mode for multi-step investigation. Tavily has an advanced depth setting but does not perform multi-step reasoning.
  • Citations — Perplexity provides inline numbered citations in the answer text. Tavily provides source URLs alongside extracted content.

For most users: choose Tavily if you want a free tier and structured data. Choose Perplexity if you need high-quality synthesized answers with citations and deep research capability.

Troubleshooting

API Key Errors

If you see authentication errors when using Perplexity:

  • The key should start with pplx-
  • Check for extra spaces or newlines in the key
  • Verify your Perplexity account has API credits remaining
  • Ensure the API key has not been revoked or expired

Quota and Rate Limits

Perplexity API has rate limits based on your plan. If you hit rate limits:

  • Check your current usage in the Perplexity dashboard
  • Add more credits to your account if depleted
  • Consider using Sonar (standard) instead of Sonar Pro for routine queries to reduce cost
  • Space out rapid consecutive requests

Model Selection Issues

If the skill is not using your preferred model:

  • Verify the model field in your skill config matches a valid Perplexity model name
  • Valid options: sonar, sonar-pro, sonar-deep-research
  • Restart your OpenClaw instance after changing the model config

Use Perplexity on OpenClaw Launch

On OpenClaw Launch, the Perplexity search skill is available as a one-click install from the Dashboard. Enter your Perplexity API key in the configurator, select your preferred Sonar model, and it's automatically configured for your instance. No JSON editing needed.

Frequently Asked Questions

Is Perplexity API free?

Perplexity API uses pay-per-query pricing — there is no permanent free tier. However, new accounts may receive introductory credits. Query costs vary by model: Sonar queries cost fractions of a cent, while Sonar Pro and Deep Research cost more per query.

Perplexity vs Tavily for OpenClaw?

Choose Perplexity when you need AI-synthesized answers with inline citations and deep research capability. Choose Tavily when you want a free tier, structured JSON responses, and clean extracted content for your agent to process. Both work well with OpenClaw — you can even install both and let your agent choose based on the query.

What is Perplexity Sonar?

Sonar is Perplexity's API model family for programmatic search. It comes in three tiers: Sonar (standard, fast, cost-effective), Sonar Pro (premium, deeper analysis), and Sonar Deep Research (multi-step investigation). All tiers include real-time web access and cited answers.

Can Perplexity replace regular web search?

For most AI agent use cases, yes. Perplexity provides better answer quality than raw web search results because it synthesizes information from multiple sources. However, the built-in web search is still useful for fetching specific URLs directly or when you need to avoid API costs. Many users keep both available and let the agent choose.

What's Next?

AI-Powered Web Research

Deploy your AI agent with Perplexity search pre-configured. Cited answers in seconds.

Deploy with OpenClaw Launch