Skip to main content
Use the CLI to search, extract URLs and run research from your terminal. Commands also return JSON for scripts and coding agents. For automatic installation and login, use Onboard your agents.

Installation

The cURL, Homebrew, and PowerShell methods install standalone binaries that do not require Node.js.

Authentication

Run valyu 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:
Use --no-browser to print the URL and code instead (useful for headless or agent environments), or request specific management scopes with --scope:
For CI or scripting, log in with an existing key or use an environment variable:
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.
Don’t have a key yet? Sign up at platform.valyu.ai for $10 free credits ($20 with a company email). The CLI supports multiple named profiles for switching between accounts:

Make your first call

Inspect the source URLs and returned content. Then choose Search for individual retrievals or DeepResearch when you want a finished report.

Commands

Search across web and specialised data sources:
Options:
  • -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:
Accepts up to 10 URLs synchronously. For 11-50 URLs, add --async --watch to submit a job and wait for its results.

Deep research

Generate comprehensive research reports:
Research modes: 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.
Create and manage API keys:
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.
Top up your balance in dollars (minimum $10):
Charges the card on file, or returns a Stripe Checkout link if there is none. Management scopes gate account management only - search and data access is always automatic: 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:
The CLI also ships with an Agent Skill that teaches AI coding agents how to use it without an MCP server:

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