Perplexity SearchSAFE
The largest open-source medical AI skills library for OpenClaw🦞.
Overview
The largest open-source medical AI skills library for OpenClaw🦞.
29f31a89230cOBSERVED · 2026-10-08Install
Commands as the repository documents them. They are shown, not run.
uv pip install litellm
uv pip install litellm
uv pip install litellm
uv pip install python-dotenv
uv pip install jq
pip install python-dotenv
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
--- name: perplexity-search description: Perform AI-powered web searches with real-time information using Perplexity models via LiteLLM and OpenRouter. This skill should be used when conducting web searches for current information, finding recent scientific literature, getting grounded answers with source citations, or accessing information beyond the model's knowledge cutoff. Provides access to multiple Perplexity models including Sonar Pro, Sonar Pro Search (advanced agentic search), and Sonar Reasoning Pro through a single OpenRouter API key. --- # Perplexity Search ## Overview Perform AI-powered web searches using Perplexity models through LiteLLM and OpenRouter. Perplexity provides real-time, web-grounded answers with source citations, making it ideal for finding current information, recent scientific literature, and facts beyond the model's training data cutoff. This skill provides access to all Perplexity models through OpenRouter, requiring only a single API key (no separate Perplexity account needed). ## When to Use This Skill Use this skill when: - Searching for current information or recent developments (2024 and beyond) - Finding latest scientific publications and research - Getting real-time answers grounded in web sources - Verifying facts with source citations - Conducting literature searches across multiple domains - Accessing information beyond the model's knowledge cutoff - Performing domain-specific research (biomedical, technical, clinical) - Comparing current approaches or technologies **Do not use** for: - Simple calculations or logic problems (use directly) - Tasks requiring code execution (use standard tools) - Questions well within the model's training data (unless verification needed) ## Quick Start ### Setup (One-time) 1. **Get OpenRouter API key**: - Visit https://openrouter.ai/keys - Create account and generate API key - Add credits to account (minimum $5 recommended) 2. **Configure environment**: ```bash # Set API key export OPENROUTER_API_KEY='sk-or-v1-your-key-here' # Or use setup script python scripts/setup_env.py --api-key sk-or-v1-your-key-here ``` 3. **Install dependencies**: ```bash uv pip install litellm ``` 4. **Verify setup**: ```bash python scripts/perplexity_search.py --check-setup ``` See `references/openrouter_setup.md` for detailed setup instructions, troubleshooting, and security best practices. ### Basic Usage **Simple search:** ```bash python scripts/perplexity_search.py "What are the latest developments in CRISPR gene editing?" ``` **Save results:** ```bash python scripts/perplexity_search.py "Recent CAR-T therapy clinical trials" --output results.json ``` **Use specific model:** ```bash python scripts/perplexity_search.py "Compare mRNA and viral vector vaccines" --model sonar-pro-search ``` **Verbose output:** ```bash python scripts/perplexity_search.py "Quantum computing for drug discovery" --verbose ``` ## Available Models Access models via `--model` parameter: - **sonar-pro** (default): General-purpose search, best balance of cost and quality - **sonar-pro-search**: Most advanced agentic search with multi-step reasoning - **sonar**: Basic model, most cost-effective for simple queries - **sonar-reasoning-pro**: Advanced reasoning with step-by-step analysis - **sonar-reasoning**: Basic reasoning capabilities **Model selection guide:** - Default queries → `sonar-pro` - Complex multi-step analysis → `sonar-pro-search` - Explicit reasoning needed → `sonar-reasoning-pro` - Simple fact lookups → `sonar` - Cost-sensitive bulk queries → `sonar` See `references/model_comparison.md` for detailed comparison, use cases, pricing, and performance characteristics. ## Crafting Effective Queries ### Be Specific and Detailed **Good examples:** - "What are the latest clinical trial results for CAR-T cell therapy in treating B-cell lymphoma published in 2024?" - "Compare the efficacy and safety profiles of mRNA vaccines versus viral vector vaccines for COVID-19" - "Explain AlphaFold3 improvements over AlphaFold2 with specific accuracy metrics from 2023-2024 research" **Bad examples:** - "Tell me about cancer treatment" (too broad) - "CRISPR" (too vague) - "vaccines" (lacks specificity) ### Include Time Constraints Perplexity searches real-time web data: - "What papers were published in Nature Medicine in 2024 about long COVID?" - "What are the latest developments (past 6 months) in large language model efficiency?" - "What was announced at NeurIPS 2023 regarding AI safety?" ### Specify Domain and Sources For high-quality results, mention source preferences: - "According to peer-reviewed publications in high-impact journals..." - "Based on FDA-approved treatments..." - "From clinical trial registries like clinicaltrials.gov..." ### Structure Complex Queries Break complex questions into clear components: 1. **Topic**: Main subject 2. **Scope**: Specific aspect of interest 3. **Context**: Time frame, domain, constraints 4. **Output**: Desired format or type of answer **Example:** "What improvements does AlphaFold3 offer over AlphaFold2 for protein structure prediction, according to research published between 2023 and 2024? Include specific accuracy metrics and benchmarks." See `references/search_strategies.md` for comprehensive guidance on query design, domain-specific patterns, and advanced techniques. ## Common Use Cases ### Scientific Literature Search ```bash python scripts/perplexity_search.py \ "What does recent research (2023-2024) say about the role of gut microbiome in Parkinson's disease? Focus on peer-reviewed studies and include specific bacterial species identified." \ --model sonar-pro ``` ### Technical Documentation ```bash python scripts/perplexity_search.py \ "How to implement real-time data streaming from Kafka to PostgreSQL using Python? Include considerations for handling backpressure and ensuring exactly-once semantics." \ --model sonar-reasonin
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (5)
print(f" export OPENROUTER_API_KEY={args.api_key}")cat > .env << EOF
# Load environment variables from .env
# For bash: Add to ~/.bashrc or ~/.bash_profile
# For zsh: Add to ~/.zshrc
Gates applied: no_behavioural_pass.
29f31a89230cfull audit observations/trust-audit/skill/freedomintelligence__perplexity-search.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 29f31a89230c | SAFE | B | 89 | first audit |
Questions
What does the Perplexity Search skill do?
The largest open-source medical AI skills library for OpenClaw🦞.
Is Perplexity Search safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Perplexity Search access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (29f31a89230c), read on 2026-10-08. The repository is watched, and a new audit runs when it changes — this is the first audit.