Installation
- cURL (macOS/Linux)
- Homebrew
- npm
- PowerShell (Windows)
The cURL, Homebrew, and PowerShell methods install standalone binaries that do not require Node.js.
Authentication
Runvalyu login to authenticate. It opens your browser, you approve the request, and the CLI mints a scoped val_ key and stores it locally - there is nothing to copy and paste:
--no-browser to print the URL and code instead (useful for headless or agent environments), or request specific management scopes with --scope:
Key precedence:
--api-key flag, then your valyu login key, then VALYU_API_KEY. A logged-in key takes precedence over the environment variable, so you don’t need to unset VALYU_API_KEY after logging in.Make your first call
Commands
Search
Search across web and specialised data sources:-n, --limit <number>- Number of results (default: 10)--max-price <number>- Cap on the cost of the whole request; see pricing
Contents
Extract clean content from web pages:--async --watch to submit a job and wait for its results.
Deep research
Generate comprehensive research reports:fast, standard, heavy, and max. Duration depends on the task and mode; see DeepResearch for mode guidance.
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:Account and API keys
Manage your organisation’s keys, balance, and budgets, all self-serve from the terminal. An agent can provision its own scoped, budget-capped key, use Valyu, and revoke it when it is done.keys create options:
--cap <usd>- hard spend ceiling for the key (omit for uncapped). Once a key reaches its cap, further requests are rejected.--window <total|monthly>- whether the cap is a running total or resets monthly (default:total).--scopes <list>- comma-separated management scopes (see below). Search and data access is automatic, so omit this for a search-only key.--rate-limit <rpm>- requests-per-minute limit.--expires <iso>- expiry as an ISO 8601 timestamp.
A key can only create child keys with a subset of its own scopes and a cap within its remaining budget, so you can hand a scoped, budget-capped key to a sub-agent and trust it cannot exceed those limits.
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), research and retrieval commands output structured JSON without needing the--json flag.
This means agents can call Valyu directly:
Global flags
Browse data sources for coverage, or run
valyu sources to inspect the live catalogue.
Additional resources
GitHub Repository
Source code, issues, and releases
npm Package
Install via npm
Get API Key
Sign up for $10 free credits ($20 with a company email)
API Reference
Full Valyu API documentation