LaunchKit · 2026
Back to Skills

perplexity-wrapped

Search the web with AI-powered answers via Perplexity API.

1
1.7k downloads
by @vacinc

Setup & Installation

openclaw skills install @vacinc/perplexity-wrapped

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install perplexity-wrapped

Version History

v2.1.2Feb 9, 2026 - Version note by skill developer:

Simplify config: env var only (no child_process), fixes code_safety scanner flag

What This Skill Does

Web search tool wrapping the Perplexity API with three modes: ranked results via Search API, AI-generated answers with citations via Sonar API, and deep research via the Agentic Research API using models from OpenAI, Anthropic, Google, and xAI. All output is wrapped in untrusted-content boundaries to prevent prompt injection.

Combines three distinct Perplexity API modes in one CLI with built-in prompt injection protection, so agents can query the live web without manually sanitizing or attributing external content.

When to use it

  • Getting AI-summarized answers to current events questions
  • Finding cited sources for a research topic
  • Batch searching multiple queries in a single API call
  • Running deep analysis on complex technical subjects
  • Querying recent news or product releases without stale training data

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: what's the current state of fusion energy research

AGENT
  1. 1Runs search.mjs with the query in default Sonar mode
  2. 2Sends query to Perplexity Sonar API
  3. 3Receives AI-generated answer with inline citations
  4. 4Wraps response in untrusted-content boundaries
OUTPUT

AI-written summary of fusion energy research with numbered citations linking to source URLs, enclosed in <<<EXTERNAL_UNTRUSTED_CONTENT>>> markers

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Perplexity API key (PERPLEXITY_API_KEY environment variable or set in OpenClaw config)