Slash Command
Community

/web-research

Install
1
Install the plugin
$
npx claudepluginhub rafaelcalleja/claude-market-place --plugin personal-ai-infrastructure

Want just this command?

Then install: npx claudepluginhub u/[userId]/[slug]

Description

```bash

Command Content

Web Research Command - Perplexity AI

Quick Usage

# Basic research query (API key in ${PAI_DIR}/.env as PERPLEXITY_API_KEY)
source ${PAI_DIR}/.env && curl -s -X POST https://api.perplexity.ai/chat/completions \
  -H "Authorization: Bearer $PERPLEXITY_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"model\":\"sonar\",\"messages\":[{\"role\":\"user\",\"content\":\"YOUR_QUERY_HERE\"}]}" \
  | python3 -c "import sys, json; data = json.load(sys.stdin); print(data['choices'][0]['message']['content'])"

With Citations

source ${PAI_DIR}/.env && curl -s -X POST https://api.perplexity.ai/chat/completions \
  -H "Authorization: Bearer $PERPLEXITY_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"model\":\"sonar\",\"messages\":[{\"role\":\"user\",\"content\":\"YOUR_QUERY_HERE\"}],\"return_citations\":true}" \
  | python3 -m json.tool

Models

  • sonar-pro - Deeper analysis with more sources

When to Use

  • Current events and recent information
  • Technical documentation research
  • Multi-source information synthesis
  • Fact-checking and verification
Stats
Stars2
Forks1
Last CommitNov 10, 2025

Other plugins with /web-research