Overview
The Valyu CLI brings Valyu’s full platform to your terminal - search, deep research, content extraction, and AI-powered answers across web and specialised data sources. It’s agent-native, built for use inside AI coding agents like Claude Code, Cursor, and Windsurf, but equally powerful as a standalone tool for knowledge workers who prefer the terminal. Key features:- Deep research - Generate comprehensive research reports with human-in-the-loop review on plans, sources, and outlines
- Batch research - Run multiple research queries in parallel
- AI-powered answers - Streaming answers with real-time source citations
- Content extraction - Pull clean content from any URL with optional summarization and structured output
- Search - Web and specialised sources including academic, financial, biomedical, patents, SEC filings, economics, and news
- Agent-native - Auto-detects non-TTY environments and outputs structured JSON for piping and scripting
- Stdin support - Pipe queries from other tools directly into Valyu
Installation
- cURL (macOS/Linux)
- Homebrew
- npm
- PowerShell (Windows)
The cURL, Homebrew, and PowerShell methods install standalone binaries that do not require Node.js.
Authentication
Get your API key from platform.valyu.ai with $10 free credits, then log in:Commands
Search
Search across web and specialised data sources:-n, --limit <number>- Number of results (default: 10)--max-price <number>- Maximum price per result
Answer
Get AI-powered answers with streaming and source citations:Contents
Extract clean content from web pages:Deep research
Generate comprehensive research reports:fast (~5 min), standard (~10-20 min), heavy (~60 min), max (~90 min).
The watch command supports human-in-the-loop interactions where the research agent pauses for your input on planning questions, research plans, sources, and report outlines.
Batch research
Run multiple research queries in parallel:Browse data sources
View all available data sources and their pricing:Utility commands
Agent integration
The CLI is designed to work seamlessly inside AI coding agents. When stdout is not a TTY (e.g. when called by an agent or piped), all commands automatically output structured JSON without needing the--json flag.
This means agents can call Valyu directly:
Global flags
| Flag | Description |
|---|---|
--api-key <key> | Override stored API key for a single request |
-p, --profile <name> | Use a named credential profile |
--json | Force JSON output (automatic in non-TTY) |
-q, --quiet | Suppress spinners and progress, implies --json |
-v, --version | Show CLI version |
Search types
| Type | Description | Example sources |
|---|---|---|
web | General web search | Real-time web content |
paper | Academic papers | arXiv, PubMed, scholarly journals |
finance | Financial data | Stock prices, earnings, balance sheets |
bio | Biomedical research | PubMed, clinical trials, FDA drug labels, ChEMBL |
patent | Patent databases | USPTO, global patent records |
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 |
Additional resources
GitHub Repository
Source code, issues, and releases
npm Package
Install via npm
Get API Key
Sign up for free $10 credit
API Reference
Full Valyu API documentation

