Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
valyuai avatar

Valyu Search

  • 3 installs
  • 3 repo stars
  • Updated January 15, 2026
  • valyuai/claude-search-plugin

Helps with ai & agent building tasks.

About

valyu-search is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.

  • valyu-search
  • AI & Agent Building
  • AI-coding skill

Valyu Search by the numbers

  • 3 all-time installs (skills.sh)
  • Ranked #13,677 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/valyuai/claude-search-plugin --skill valyu-search

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs3
repo stars3
Last updatedJanuary 15, 2026
Repositoryvalyuai/claude-search-plugin

What it does

Helps with ai & agent building tasks.

Files

SKILL.mdMarkdownGitHub ↗

Valyu Complete API Tool

Reference Documentation

For detailed guidance, consult these references:

DocumentPurpose
references/design-philosophy.mdCore principles and when to use Valyu
references/datasources.mdAvailable datasets and data coverage (40+ sources)
references/api-guide.mdComplete API documentation for all endpoints
references/prompting.mdBest practices for writing effective search queries
references/recipes.mdRecipe index and common workflows
references/search-recipes/14 search patterns (academic, finance, healthcare, news, monitoring)
references/content-recipes/6 content extraction patterns (summarization, structured data)
references/answer-recipes/4 answer patterns (fast mode, streaming, structured output)
references/deepresearch-recipes/3 research patterns (fast, lite, heavy modes)
references/integrations/SDK & platform integration guides (13 integrations)

Integrations

When users ask how to integrate Valyu with other platforms or SDKs, consult the integration guides:

IntegrationFileUse Case
MCP Remoteintegrations/mcp-server.mdClaude Desktop, Claude Code CLI, OpenAI agents via MCP
MCP Localintegrations/mcp-desktop.mdLocal MCP server with Python virtual environment
Claude Code Pluginintegrations/claude-code-plugin.mdDirect plugin for Claude Code CLI
LM Studiointegrations/lmstudio.mdEnhance local LLMs with Valyu search
AWS Bedrockintegrations/aws-agentcore.mdEnterprise deployment with Strands Agents
n8nintegrations/n8n.mdWorkflow automation integration
Vercel AI SDKintegrations/vercel-ai-sdk.mdTypeScript tools for AI SDK v5
LangChainintegrations/langchain.mdPython agents with ValyuSearchTool
LlamaIndexintegrations/llamaindex.mdValyuToolSpec for RAG applications
Claude Agent SDKintegrations/claude-agent-sdk.mdCommunity SDK with MCP tools
Anthropicintegrations/anthropic.mdAnthropicProvider for Claude API
OpenAIintegrations/openai.mdOpenAIProvider for Responses API
Google Geminiintegrations/google.mdGemini function calling integration

Comprehensive CLI tool for all Valyu APIs: Search, Answer, Contents, and DeepResearch.

CRITICAL: Script Path Resolution

IMPORTANT: The scripts/valyu commands in this documentation are relative to this skill's installation directory, NOT the user's current working directory.

Finding the Script Path

Before running any command, you MUST locate the script using one of these methods:

1. For marketplace installs, the script is at:

   ~/.claude/plugins/cache/valyu-marketplace/valyu-search-plugin/<version>/skills/valyu-search/scripts/valyu

2. Quick method - Find it dynamically:

   VALYU_SCRIPT=$(find ~/.claude/plugins/cache -name "valyu" -path "*/valyu-search-plugin/*/scripts/*" -type f 2>/dev/null | head -1)

3. Then use the full path for all commands:

   $VALYU_SCRIPT search web "query"
   # OR use the full path directly:
   ~/.claude/plugins/cache/valyu-marketplace/valyu-search-plugin/1.0.0/skills/valyu-search/scripts/valyu search web "query"

4. Self-location commands - Once you have the path, you can verify it:

   /path/to/valyu --path      # Prints the script's full path
   /path/to/valyu --script-dir # Prints the script's directory

Important Notes

  • NEVER run scripts/valyu directly - it will fail with "no such file or directory"
  • ALWAYS use the full absolute path to the script
  • The version number in the path (e.g., 1.0.0) may change with updates

IMPORTANT: API Key Setup Flow

When you run any Valyu command and receive a response with "setup_required": true, follow this flow:

1. Ask the user for their API key: "To use Valyu search, I need your API key. You can get one free ($10 credits) at https://platform.valyu.ai. Please paste your API key."

2. Once the user provides the key, run the setup command:

   scripts/valyu setup <api-key>

3. After successful setup, retry the original command.

Example Flow:

User: Valyu(web, "AI news")
→ Response: {"success": false, "setup_required": true, ...}
→ Claude asks: "Please provide your Valyu API key from https://platform.valyu.ai"
→ User: "val_abc123..."
→ Claude runs: scripts/valyu setup val_abc123...
→ Response: {"success": true, "type": "setup", "message": "API key saved..."}
→ Claude retries: scripts/valyu search web "AI news"
→ Success!

Requirements

1. Node.js 18+ (uses built-in fetch) 2. API key from https://platform.valyu.ai (setup automatically via scripts/valyu setup <key>) 3. Scripts are executable (already set in packaged skill)

Commands Overview

0. SETUP - Configure API key (auto-triggered on first use)

scripts/valyu setup <api-key>

1. SEARCH - Multi-domain search

scripts/valyu search <type> <query> [maxResults]

2. ANSWER - AI-powered answers

scripts/valyu answer <query> [--fast] [--structured <schema>]

3. CONTENTS - Extract content from URLs

scripts/valyu contents <url> [--summary [instructions]] [--structured <schema>]

4. DEEPRESEARCH - Async research reports

scripts/valyu deepresearch create <query> [--model <fast|lite|heavy>] [--pdf]
scripts/valyu deepresearch status <task-id>

1. SEARCH API

Search Types

TypeDescriptionSources
webGeneral web searchAll web sources
financeFinancial dataStocks, SEC, earnings, crypto, forex
paperAcademic papersarXiv, bioRxiv, medRxiv, PubMed
bioBiomedical researchPubMed, clinical trials, drug labels
patentPatent databasesPatent filings
secSEC filings10-K, 10-Q, 8-K reports
economicsEconomic dataBLS, FRED, World Bank
newsNews articlesNews sources

Usage Examples

# Web search
scripts/valyu search web "AI developments 2025" 10

# Academic papers
scripts/valyu search paper "transformer architectures" 15

# Financial data
scripts/valyu search finance "Apple earnings Q4 2024" 8

# Biomedical research
scripts/valyu search bio "cancer immunotherapy clinical trials"

Output Format

{
  "success": true,
  "type": "search",
  "searchType": "web",
  "query": "AI news",
  "resultCount": 10,
  "results": [
    {
      "title": "Article Title",
      "url": "https://example.com",
      "content": "Full content...",
      "source": "web",
      "relevance_score": 0.95
    }
  ],
  "cost": 0.025
}

2. ANSWER API

AI-powered answers with real-time search integration.

Basic Usage

# Simple answer
scripts/valyu answer "What is quantum computing?"

# Fast mode (quicker, less comprehensive)
scripts/valyu answer "Latest AI news" --fast

# With structured output
scripts/valyu answer "Top tech companies 2024" --structured '{
  "type": "object",
  "properties": {
    "companies": {
      "type": "array",
      "items": {"type": "string"}
    },
    "market_summary": {"type": "string"}
  }
}'

Features

  • Fast Mode: Lower latency, finance and web sources prioritized
  • Structured Output: Define JSON schema for consistent responses
  • Source Citations: Returns sources used in the answer
  • Search Integration: Automatically searches relevant sources

Output Format

{
  "success": true,
  "type": "answer",
  "query": "What is quantum computing?",
  "answer": "Quantum computing is...",
  "data_type": "unstructured",
  "sources": [
    {
      "title": "Source Title",
      "url": "https://example.com"
    }
  ],
  "cost": 0.032
}

3. CONTENTS API

Extract clean, structured content from web pages.

Basic Usage

# Extract raw content
scripts/valyu contents "https://techcrunch.com/article"

# Extract with AI summary
scripts/valyu contents "https://example.com" --summary

# Extract with custom instructions
scripts/valyu contents "https://example.com" --summary "Summarize key findings in 2 paragraphs"

# Extract structured data
scripts/valyu contents "https://product-page.com" --structured '{
  "type": "object",
  "properties": {
    "product_name": {"type": "string"},
    "price": {"type": "number"},
    "features": {
      "type": "array",
      "items": {"type": "string"}
    }
  },
  "required": ["product_name", "price"]
}'

Features

  • Batch Processing: Process multiple URLs (up to 10)
  • AI-Powered Summarization: Generate summaries with custom instructions
  • Structured Extraction: Extract specific data points using JSON schema
  • Response Length Control: short (25k), medium (50k), large (100k), max
  • Extract Effort: normal, high, auto

Response Length Options

LengthCharactersUse For
short25,000Summaries, key points
medium50,000Articles, blog posts (default)
large100,000Academic papers, long-form
maxUnlimitedFull document extraction

Output Format

{
  "success": true,
  "type": "contents",
  "urls_requested": 1,
  "urls_processed": 1,
  "urls_failed": 0,
  "results": [
    {
      "title": "Article Title",
      "url": "https://example.com",
      "content": "Extracted content...",
      "data_type": "unstructured",
      "summary_success": true,
      "length": 12840
    }
  ],
  "total_cost": 0.001
}

4. DEEPRESEARCH API

Asynchronous deep research with comprehensive reports.

Research Modes

ModeUse CaseTypical Time
fastQuick lookups, simple questions~5 minutes
liteBalanced research (default)~10-20 minutes
heavyIn-depth analysis, complex researchUp to ~90 minutes

Create Research Task

# Basic research (lite mode, markdown)
scripts/valyu deepresearch create "AI market trends 2024"

# Heavy mode with PDF output
scripts/valyu deepresearch create "Climate change mitigation strategies" --model heavy --pdf

# Fast mode for quick lookup
scripts/valyu deepresearch create "Current Bitcoin price trends" --model fast

Check Task Status

scripts/valyu deepresearch status f992a8ab-4c91-4322-905f-190107bd5a5b

Output Formats

  • Markdown: Default, clean formatted report
  • PDF: Add --pdf flag for downloadable PDF
  • JSON Schema: Custom structured output (advanced)

Task Lifecycle

queued → running → completed/failed

Statuses:

  • queued: Waiting to start
  • running: Actively researching
  • completed: Research finished
  • failed: Error occurred
  • cancelled: User cancelled

Create Response

{
  "success": true,
  "type": "deepresearch_create",
  "deepresearch_id": "f992a8ab-4c91-4322-905f-190107bd5a5b",
  "status": "queued",
  "query": "AI market trends 2024",
  "model": "lite",
  "created_at": 1759617800000
}

Status Response

{
  "success": true,
  "type": "deepresearch_status",
  "deepresearch_id": "f992a8ab-4c91-4322-905f-190107bd5a5b",
  "status": "completed",
  "query": "AI market trends 2024",
  "output": "# AI Market Trends 2024\n\n## Overview...",
  "pdf_url": "https://storage.valyu.ai/reports/...",
  "sources": [
    {
      "title": "Market Analysis 2024",
      "url": "https://example.com",
      "snippet": "Key findings...",
      "source": "web",
      "word_count": 2500
    }
  ],
  "progress": {
    "current_step": 5,
    "total_steps": 5
  },
  "usage": {
    "search_cost": 0.0075,
    "ai_cost": 0.15,
    "total_cost": 0.1575
  },
  "completed_at": 1759617836483
}

Processing Results

With jq

# Get search result titles
scripts/valyu search web "AI" 5 | jq '.results[].title'

# Get answer text
scripts/valyu answer "What is AI?" | jq -r '.answer'

# Get extracted content
scripts/valyu contents "https://example.com" | jq -r '.results[].content'

# Get research output
scripts/valyu deepresearch status <task-id> | jq -r '.output'

# Check if completed
result=$(scripts/valyu deepresearch status <task-id>)
if echo "$result" | jq -e '.status == "completed"' > /dev/null; then
  echo "Research complete!"
fi

Error Handling

All commands return JSON with success field:

{
  "success": false,
  "error": "Error message"
}

Exit codes:

  • 0 - Success
  • 1 - Error (check JSON for details)

Use Cases

Research Assistant

# Deep research with PDF
scripts/valyu deepresearch create "Blockchain in healthcare" --model heavy --pdf

News Monitoring

# Latest news
scripts/valyu search news "AI regulation EU" 20

Content Aggregation

# Extract and summarize
scripts/valyu contents "https://blog.com/post" --summary "Key takeaways in bullet points"

Quick Q&A

# Fast answer
scripts/valyu answer "Who won the 2024 election?" --fast

Academic Research

# Search papers
scripts/valyu search paper "CRISPR gene editing 2024" 15

Financial Analysis

# Get financial data
scripts/valyu search finance "Tesla stock performance 2024" 10

Requirements

  • Node.js 18+ - For built-in fetch API
  • VALYU_API_KEY - Environment variable
  • No npm packages - Direct API calls only

Get API key: https://platform.valyu.ai ($10 free credits)

API Endpoints Used

  • /v1/search - Search API
  • /v1/answer - Answer API
  • /v1/contents - Contents API
  • /v1/deepresearch/tasks - DeepResearch API
  • /v1/deepresearch/tasks/{id}/status - Task status

Architecture

scripts/
├── valyu          # Bash wrapper
└── valyu.mjs      # Node.js CLI (all APIs)

Direct API calls using Node.js built-in fetch(), zero external dependencies.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.