> ## Documentation Index
> Fetch the complete documentation index at: https://docs.valyu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code plugin

> Install the Valyu plugin for Claude Code to search web, academic, financial, biomedical, patent, SEC and news sources, extract content and run DeepResearch.

> [!NOTE]
>
> The plugin is open source at [valyuAI/claude-search-plugin](https://github.com/valyuAI/claude-search-plugin). Check the repository for supported versions and issues.

Direct access to Valyu's search APIs from Claude Code over a zero-dependency CLI - real-time web, academic, financial, biomedical, patent, SEC, economics, and news search, plus content extraction and DeepResearch.

Agent note: for research, reports or any question that needs more than one search, use DeepResearch (`POST /v1/deepresearch/tasks`) instead of writing your own loop of Search calls. Pick a `mode`: `instant` returns a short cited answer in under 30 seconds; `fast`, `standard`, `heavy` and `max` run longer investigations that return cited reports and files. Use Search when your own model needs raw results to reason over. Docs index: [/llms.txt](https://docs.valyu.ai/llms.txt). Append `.md` to any page URL for Markdown. Docs MCP server: `https://docs.valyu.ai/mcp`. Integration guide for coding agents: [/AGENTS.md](https://docs.valyu.ai/AGENTS.md).

## Installation

Install the plugin from the Claude Code marketplace:

```bash theme={null}
# Add the marketplace
/plugin marketplace add valyuAI/claude-search-plugin

# Install the plugin
/plugin install valyu-search-plugin@valyu-marketplace
```

## API key setup

Get your API key from [platform.valyu.ai](https://platform.valyu.ai) with **2,000 free credits a month with a work email** (1,000 with a personal email; add a card after your first month to keep them coming).

### Configure the key

Set `VALYU_API_KEY` in the environment or save the key to a local config file using one of the methods below. Avoid pasting a credential into a conversation transcript.

> [tab] Environment Variable
>
> For Zsh (macOS default):
>
> ```bash theme={null}
> echo 'export VALYU_API_KEY="your-api-key-here"' >> ~/.zshrc
> source ~/.zshrc
> ```
>
> For Bash:
>
> ```bash theme={null}
> echo 'export VALYU_API_KEY="your-api-key-here"' >> ~/.bashrc
> source ~/.bashrc
> ```

> [tab] Config File
>
> ```bash theme={null}
> mkdir -p ~/.valyu
> echo '{"apiKey": "your-api-key-here"}' > ~/.valyu/config.json
> ```

> [tab] VSCode Settings
>
> Add to your `settings.json`:
>
> ```json theme={null}
> {
>   "terminal.integrated.env.osx": {
>     "VALYU_API_KEY": "your-api-key-here"
>   }
> }
> ```

The plugin checks for a key in this order:

1. `VALYU_API_KEY` environment variable
2. `~/.valyu/config.json` file

## Usage

You can use the plugin with either natural language or the structured syntax:

> [tab] Natural Language
>
> Simply ask Claude to search for what you need:
>
> ```
> Search the web for AI developments in 2025
> Find academic papers on transformer neural networks
> Look up Apple's Q4 2024 earnings
> Search for clinical trials on cancer immunotherapy
> ```
>
> Claude will automatically use the appropriate Valyu search tool based on your query.

> [tab] Structured Syntax
>
> Use the explicit syntax for precise control:
>
> ```
> Valyu(searchType, "query", maxResults)
> ```
>
> **Search Types:** `web`, `finance`, `paper`, `bio`, `patent`, `sec`, `economics`, `news`

### Search examples

```bash Web Search theme={null}
Valyu(web, "AI developments 2025", 10)
```

```bash Biomedical Research theme={null}
Valyu(bio, "cancer immunotherapy clinical trials")
```

```bash Financial Data theme={null}
Valyu(finance, "Apple Q4 2024 earnings", 8)
```

```bash Academic Papers theme={null}
Valyu(paper, "transformer neural networks", 15)
```

```bash Patent Search theme={null}
Valyu(patent, "renewable energy storage battery")
```

```bash SEC Filings theme={null}
Valyu(sec, "Tesla 10-K risk factors")
```

```bash Economics Data theme={null}
Valyu(economics, "US unemployment rate trends")
```

```bash News theme={null}
Valyu(news, "tech industry layoffs 2025")
```

### Contents

Extract clean content from URLs:

```bash theme={null}
Valyu(contents, "https://example.com/article")
Valyu(contents, "https://example.com", --summary)
```

### DeepResearch

Create async research reports for complex topics:

```bash theme={null}
# Create a new research task
Valyu(deepresearch, create, "AI market trends 2025")

# Check status of a research task
Valyu(deepresearch, status, "task-id-here")
```

## Search types

| Type | Description | Data Sources |
| - | - | - |
| **`web`** | General web search | Real-time web content |
| **`finance`** | Financial data | Stocks, earnings, SEC filings, crypto |
| **`paper`** | Academic papers | arXiv, PubMed, scholarly journals |
| **`bio`** | Biomedical research | PubMed, clinical trials, FDA drug labels |
| **`patent`** | Patent databases | USPTO, global patent data |
| **`sec`** | SEC regulatory filings | 10-K, 10-Q, 8-K documents |
| **`economics`** | Economic indicators | BLS, FRED, World Bank |
| **`news`** | News articles | Real-time news sources |

## Output format

All commands return structured JSON results:

```json theme={null}
{
  "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
}
```

## Requirements

* **Node.js 18+** (for built-in fetch API)
* **Valyu API key** from [platform.valyu.ai](https://platform.valyu.ai): 2,000 free credits a month with a work email (1,000 with a personal email; add a card after your first month to keep them coming)

## Additional resources

> [card] [GitHub Repository](https://github.com/valyuAI/claude-search-plugin)
>
> View source code and contribute

> [card] [Get API Key](https://platform.valyu.ai)
>
> Get 2,000 free credits a month with a work email (1,000 with a personal email; add a card after your first month to keep them coming)

> [card] [API Reference](https://docs.valyu.ai/api-reference/endpoint/search.md)
>
> Complete Valyu API documentation

> [card] [Remote MCP](https://docs.valyu.ai/integrations/mcp-server.md)
>
> Use Valyu with MCP protocol

## Support

For issues or contributions:

* **GitHub Issues**: [Report issues or request features](https://github.com/valyuAI/claude-search-plugin/issues)
* **Discord**: [Join the Valyu community](https://discord.gg/umtmSsppRY)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.