Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

perplexica-search-localperplexica 搜索本地

Agent Skill

perplexica-search-local 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,233

周安装

418

GitHub Stars

公开资料未说明

下载量

3,311
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:perplexica-search-local(perplexica 搜索本地)
来源仓库:https://github.com/eplt/perplexica-search-local
安装命令:
openclaw skills install perplexica-search-local
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install perplexica-search-local

简介

基于本地 Perplexica 实例实现 AI 驱动的搜索与推理功能。

  • 适用于需要离线或私有化部署环境下的深度信息检索任务。
  • 支持网络搜索结合大模型推理,返回带引用来源的答案。
  • 需确保本地环境已部署 Perplexica 服务方可正常使用。
  • perplexica-search-local 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
perplexica-search
description
AI-powered search using your local Perplexica instance. Runs deep research (quality mode) with web search and LLM reasoning; returns answers with cited sources in OpenClaw while keeping search/RAG state in Perplexica. Use when the user asks to "search with Perplexica", "ask Perplexica", "deep search", "research with sources", or wants AI search with citations. Local-only; no data exfiltration.
version
1.0.3
homepage
https://github.com/eplt/perplexica-search
metadata
openclaw
emoji
🔍
requires
bins
install
[]
files

Perplexica Search Skill

AI-powered search using your local Perplexica instance. This skill calls Perplexica's search API for deep research (quality mode), returns the answer and cited sources in OpenClaw, and leaves search/RAG state in Perplexica. Local-only: only localhost, 127.0.0.1, ::1, or host.docker.internal (Docker) are allowed; remote URLs are rejected. HTTP redirects are not followed, so the client cannot be sent to a non-local host.

When to Use

Use this skill when the user wants to:

  • Search the web with AI-powered reasoning
  • Get answers with cited sources
  • Perform deep research on a topic (use --mode quality)
  • Search academic papers or discussions
  • Use a local, privacy-focused search engine
  • Get structured search results with metadata

Prerequisites

  • python3 (required to run the script)
  • Perplexica running locally (default: http://localhost:3000)
  • At least one chat model provider configured in Perplexica
  • At least one embedding model configured

Usage

Run the script by path; do not rely on cd to the skill directory. The script finds its config from its own location. Use the skill directory your environment provides (e.g. {baseDir} or the path where this skill is installed).

# Basic search (replace <SKILL_DIR> with the actual skill path, e.g. ~/.openclaw/skills/perplexica-search or {baseDir})
python3 <SKILL_DIR>/scripts/perplexica_search.py "What is quantum computing?"

# Specify optimization mode
python3 <SKILL_DIR>/scripts/perplexica_search.py "Latest AI developments" --mode quality

# Search specific sources
python3 <SKILL_DIR>/scripts/perplexica_search.py "Machine learning papers" --sources academic

# Different local port or Docker host (allowed: localhost, 127.0.0.1, ::1, host.docker.internal)
python3 <SKILL_DIR>/scripts/perplexica_search.py "Climate change research" --url http://127.0.0.1:3000
python3 <SKILL_DIR>/scripts/perplexica_search.py "Query" --url http://host.docker.internal:3000

# JSON output for programmatic use
python3 <SKILL_DIR>/scripts/perplexica_search.py "Python best practices" --json

# Deep research (allow slow chunks, e.g. 5 min between chunks)
python3 <SKILL_DIR>/scripts/perplexica_search.py "Comprehensive review of X" --mode quality --timeout 300

# With conversation history
python3 <SKILL_DIR>/scripts/perplexica_search.py "Explain more" --history '[["human", "What is Python?"], ["assistant", "Python is a programming language..."]]'

# Custom system instructions
python3 <SKILL_DIR>/scripts/perplexica_search.py "Explain Rust" --instructions "Focus on memory safety and performance"

# Minimal output (answer + sources only), e.g. for OpenClaw/agents
python3 <SKILL_DIR>/scripts/perplexica_search.py "Your query" --quiet

If the agent has a skill base path variable (e.g. {baseDir}), use it: python3 {baseDir}/scripts/perplexica_search.py "query". Do not cd into the skill directory first; run the script by full path so it works regardless of current working directory and install location.

Minimal output in OpenClaw: To avoid extra decorative headers when the runner adds its own messages (e.g. "Exec running/finished", "An async command you ran earlier has completed..."), use --quiet or -q. That prints only the answer and a compact sources list. The "System: Exec...", "Handle the result internally", and timestamp lines are from OpenClaw, not this skill; they cannot be disabled from the skill.

CLI Flags

FlagShortDefaultDescription
query*(required)*The search query
--url-uhttp://localhost:3000Local Perplexica base URL only (localhost, 127.0.0.1, ::1, or host.docker.internal)
--mode-mbalancedOptimization mode: speed, balanced, quality
--sources-swebSearch sources: web, academic, discussions (comma-separated)
--chat-modelautoChat model key (e.g., gpt-4o-mini, llama3.1:latest)
--embedding-modelautoEmbedding model key (e.g., text-embedding-3-large)
--instructions-iNoneCustom system instructions
--historyNoneConversation history as JSON array
--json-joffOutput raw JSON instead of formatted summary
--quiet-qoffMinimal output: answer and sources only (no decorative headers). Use from OpenClaw/agents to reduce clutter.
--timeout180Seconds to wait between stream chunks (increase if the LLM is slow)

How It Works

  1. Validate URL: Ensures the Perplexica base URL is local only (localhost, 127.0.0.1, ::1, or host.docker.internal); exits with error if not. Redirects are rejected so the client never follows a redirect to a remote host.
  2. Fetch Providers: Calls /api/providers to get available chat and embedding models
  3. Auto-Select Models: If not specified, selects the first available chat and embedding models
  4. Execute Search: POSTs to /api/search with streaming (same as the Perplexica web UI), so chunks arrive as they’re generated and long-running quality/deep research does not time out
  5. Format Results: Displays answer with sources and citations in OpenClaw; search/RAG state remains in Perplexica

Library / past chats in the Perplexica web UI

Searches run via this skill (API) are not saved to Perplexica’s “library of past chats and sources.” The Perplexica API uses in-memory sessions only and does not write to the same database the web UI uses for the library. So you will not see those API searches in the web UI’s history. To have a search appear in the library, run it in the Perplexica web UI. The skill still returns the full answer and sources in OpenClaw.

Output Structure

Human-Readable Summary

🔍 Query: What is Perplexica?
⚡ Mode: balanced | Sources: web

📄 Answer:
Perplexica is an AI-powered search engine that...

📚 Sources:
[1] Title - https://example.com/page1
[2] Title - https://example.com/page2

JSON Output

{
  "query": "What is Perplexica?",
  "mode": "balanced",
  "sources": ["web"],
  "answer": "Perplexica is...",
  "sources_used": [
    {
      "title": "Page Title",
      "url": "https://example.com",
      "content": "Snippet..."
    }
  ],
  "model_used": "gpt-4o-mini",
  "took_ms": 1234
}

Configuration

Optional: create a config.json in the skill directory. perplexica_url must be a local URL only (localhost, 127.0.0.1, ::1, or host.docker.internal); remote URLs are rejected.

{
  "perplexica_url": "http://localhost:3000",
  "default_chat_model": "llama3.1:latest",
  "default_embedding_model": "nomic-embed-text",
  "default_mode": "balanced",
  "default_sources": ["web"]
}

API Endpoints

EndpointMethodPurpose
/api/providersGETList available model providers
/api/searchPOSTExecute search query

Error Handling

  • Connection Error: Perplexica instance unreachable — check URL and that it's running. If the agent runs in Docker, try --url http://host.docker.internal:3000 or --url http://127.0.0.1:3000.
  • No Providers: No chat models configured — configure at least one provider in Perplexica settings
  • Invalid Model: Specified model not found — use --json to see available models
  • Timeout: The skill uses streaming (like the web UI); --timeout is the max seconds to wait between chunks (default 180). If the LLM is slow, use e.g. --timeout 300.

Troubleshooting: "failed 2m" or step failing after curl

  • Do not cd into the skill directory. Some runners run cd ~/.openclaw/skills/perplexica-search and then the script; if the skill is installed elsewhere (e.g. by ClawHub under a different path), cd can fail or the path may be wrong. Invoke the script by full path instead: python3 /path/to/perplexica-search/scripts/perplexica_search.py "query" (use whatever path or variable your environment gives for the skill directory, e.g. {baseDir}/scripts/perplexica_search.py).
  • Runner timeout: If the runner has a 2-minute (or other) limit for a single step, a long search can be killed. Use --mode speed for faster results, or increase the runner’s tool/step timeout if possible.
  • Check where the skill is installed: Run ls ~/.openclaw/skills/ or your ClawHub/OpenClaw skills path; then use that directory in the script path.

Examples

Quick Fact Check

python3 scripts/perplexica_search.py "Who won the 2024 Nobel Prize in Physics?"

Research with Academic Sources

python3 scripts/perplexica_search.py "Transformer architecture improvements 2024" --sources academic --mode quality

Technical Documentation Search

python3 scripts/perplexica_search.py "Python async await best practices" --instructions "Focus on Python 3.10+ examples"

Publishing to ClawHub

To publish this skill to ClawHub:

cd ~/.openclaw/skills/perplexica-search
clawhub publish . --slug perplexica-search --name "Perplexica Search" --version 1.0.0 --changelog "Initial release"

Security & Privacy

  • Local only: The script accepts only local Perplexica URLs (localhost, 127.0.0.1, ::1, or host.docker.internal for Docker). Remote URLs are rejected. HTTP redirects are not followed. Resolved IPs are validated: the hostname is resolved and every address must be loopback (127.x, ::1) or private (RFC 1918); if DNS or /etc/hosts points a allowed hostname to a public IP, the script exits with an error. The script uses a request-scoped URL opener (no global install_opener), so it is safe to run as a subprocess and does not affect other code if imported.
  • No API keys in skill: Uses Perplexica's configured providers; API keys are configured in Perplexica, not in this skill.

Limitations

  • Requires Perplexica to be running locally
  • Search quality depends on configured models and SearXNG setup
  • Streaming mode requires additional client-side handling

External Endpoints

EndpointData SentPurpose
http://localhost:3000/api/providersNoneFetch available model providers
http://localhost:3000/api/searchQuery, model selections, sourcesExecute AI-powered search

All requests go to your local Perplexica instance. Perplexica itself may make external requests to search engines (SearXNG, Tavily, Exa) and LLM providers based on your configuration.

Implementation notes

  • Run as subprocess: Invoke the script with python3 path/to/perplexica_search.py (not by importing it). The script uses a request-scoped URL opener only; it does not call install_opener, so it does not modify global urllib state.
  • Resolved IP check: Before connecting, the script resolves the hostname and ensures every address is loopback (127.x, ::1) or private (RFC 1918). If DNS or /etc/hosts maps an allowed hostname to a public IP, the script exits with an error. Verify that localhost and your Perplexica host resolve to local or private IPs.
  • Sandboxing: For higher assurance, run the skill in a network-restricted or sandboxed environment so that only localhost (or your Perplexica host) is reachable.

Trust Statement

By installing this skill, you trust that: (1) the skill will make HTTP requests only to a local Perplexica instance (URLs are validated to localhost, 127.0.0.1, ::1, or host.docker.internal); (2) resolved IPs are checked (loopback or private only) to mitigate DNS/hosts tampering; (3) HTTP redirects are rejected; (4) the script does not install a global urllib opener (intended to be run as a subprocess: python3 path/to/perplexica_search.py). Only install if you are running Perplexica locally. For higher assurance, run in a sandboxed or network-restricted environment.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.09%
按下载量换算2,552

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills