360 Secure SkillHub
360 安全技能中心

openrouter-perplexity

该 Skill 通过 Node 脚本调用 OpenRouter 上的 Perplexity 模型执行联网搜索,支持单条与批量查询,返回带引用的答案,可用 --json 输出原始 JSON 响应;运行需配置 OPENROUTER_API_KEY 环境变量。

mrnicholasbcarter-code
mrnicholasbcarter-code
热度 81.84
最近更新 2026-05-11 17:25:42
分类:搜索依赖:代码执行 / 第三方 API / 内部调用大模型应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openrouter-perplexity
Metadata
name
perplexity
description
Search the web with AI-powered answers via Perplexity API. Returns grounded responses with citations. Supports batch queries.
homepage
https://openrouter.ai/
metadata
{"clawdbot":{"emoji":"🔮","requires":{"bins":["node"],"env":["OPENROUTER_API_KEY"]},"primaryEnv":"OPENROUTER_API_KEY"}}

Perplexity Search

AI-powered web search that returns grounded answers with citations.

Search

Single query:

node {baseDir}/scripts/search.mjs "what's happening in AI today"

Multiple queries (batch):

node {baseDir}/scripts/search.mjs "What is Perplexity?" "Latest AI news" "Best coffee in NYC"

Options

  • --json: Output raw JSON response

Notes

  • Requires OPENROUTER_API_KEY environment variable
  • Responses include citations when available
  • Batch queries are processed in a single API call