> ## 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.

# Onboard your agents

> Give Claude Code, Codex or Cursor one prompt and it installs the Valyu CLI and skill, signs in, verifies a first search and is ready to run DeepResearch.

Give your coding agent the prompt below to install Valyu, sign in and verify a first search. It sets up the CLI for the agent you already use. To connect a chat app instead, use [Valyu in Claude or ChatGPT](https://docs.valyu.ai/get-started/chat-apps.md).

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).

Copy this into any coding agent. It fetches the runbook and does the rest.

Fetch [https://www.valyu.ai/agents.md](https://www.valyu.ai/agents.md) (use curl if you have no fetch tool) and follow it to set up Valyu.

## Launch it from a link

These agents publish a URL scheme that carries a prompt, so one click opens them with the line above already typed. Nothing is auto-sent - you still press Enter.

[Open in Claude Code↗](claude-cli://open?q=Fetch%20https%3A%2F%2Fwww.valyu.ai%2Fagents.md%20%28use%20curl%20if%20you%20have%20no%20fetch%20tool%29%20and%20follow%20it%20to%20set%20up%20Valyu.)
[Open in Codex↗](codex://new?prompt=Fetch%20https%3A%2F%2Fwww.valyu.ai%2Fagents.md%20%28use%20curl%20if%20you%20have%20no%20fetch%20tool%29%20and%20follow%20it%20to%20set%20up%20Valyu.)
[Open in Cursor↗](cursor://anysphere.cursor-deeplink/prompt?text=Fetch%20https%3A%2F%2Fwww.valyu.ai%2Fagents.md%20%28use%20curl%20if%20you%20have%20no%20fetch%20tool%29%20and%20follow%20it%20to%20set%20up%20Valyu.)
[View agents.md↗](https://www.valyu.ai/agents.md)

> [!NOTE]
>
> Deep links need the agent installed locally with its URL handler registered. If a link does not open your client, copy the prompt into it instead.

## What the agent actually does

Working through [`valyu.ai/agents.md`](https://www.valyu.ai/agents.md), the agent:

**1. Installs the CLI**

`curl -fsSL https://get.valyu.ai | bash` on macOS/Linux, or Homebrew, npm, or PowerShell. It checks for an existing install first rather than blindly reinstalling.

**2. Runs the login flow**

`valyu login` opens a browser device flow that mints a scoped key - there is nothing for you to copy and paste. With `--json` the CLI streams `device_code`, `auth_waiting`, and `auth_success` events, so the agent can show you the user code and tell you it is waiting on you.

**3. Verifies before claiming success**

`valyu doctor` and `valyu account balance`, then a single query against a source that works on every plan. The runbook tells the agent not to report success without this, and not to run paid DeepResearch tasks or top up your balance on its own.

**4. Installs the skill**

`npx skills add @valyu/cli` teaches the agent the full command surface, so it stops guessing at flags. See [CLI agent integration](https://docs.valyu.ai/integrations/cli.md#agent-integration).

**5. Runs a real research task**

After setup, ask the agent to run a research task you choose. Specify the scope and output you want, review the mode and expected charges, then inspect the resulting report and sources.

## Build Valyu into your app

To have your coding agent write Valyu into your own codebase, start from the [playground](https://platform.valyu.ai/playground/search). Set up the request you want, then use **Build with your agent** above the settings: one click copies a prompt that carries your exact request and points the agent at [platform.valyu.ai/integrate.md](https://platform.valyu.ai/integrate.md), and its menu opens Claude Code, Codex or Cursor with the prompt already filled in.

The agent then:

* signs you in with one browser approval and writes a new key, capped at 10 USD a month and named after your project, straight into your env file, so no key is pasted or printed
* picks the client for your stack: `valyu-js`, the Python SDK, the Vercel AI SDK tools, LangChain or plain HTTP
* writes a small server-side module, tests with the API mocked and one live check, then reports the files it changed and how to set the key in production

You can change the cap or revoke the key on the [API keys page](https://platform.valyu.ai/user/account/apikeys).

## Agent with its own inbox?

If your agent has an AgentMail inbox, it doesn't need your account at all: it can open its own with **Continue with AgentID**, get its own key and free credits, and share them with your other agents. See [Sign in with AgentID](https://docs.valyu.ai/integrations/agentid.md).

## Prefer to do it yourself

> [card] [CLI](https://docs.valyu.ai/integrations/cli.md)
>
> Install, authenticate, and run search, content extraction, and deep research from your terminal.

> [card] [Remote MCP](https://docs.valyu.ai/integrations/mcp-server.md)
>
> Hosted server with six tools. Drops into Claude, ChatGPT, Cursor, or any MCP client.

> [card] [Quickstart](https://docs.valyu.ai/quickstart.md)
>
> First API request in minutes with Python, TypeScript, or REST.

## Agent-readable surfaces

Every surface here has a machine-readable form. Point an agent at these directly rather than scraping HTML.

| Surface | What it is |
| - | - |
| [valyu.ai/agents.md](https://www.valyu.ai/agents.md) | Executable setup runbook - install, auth, verify, first query |
| [docs.valyu.ai/AGENTS.md](https://docs.valyu.ai/AGENTS.md) | Integration reference: endpoint choice, source presets, querying well |
| [platform.valyu.ai/integrate.md](https://platform.valyu.ai/integrate.md) | Integration runbook - key into the project, client for the stack, tests, report |
| [docs.valyu.ai/llms.txt](https://docs.valyu.ai/llms.txt) | Docs index sized for one context window (full corpus at `/llms-full.txt`) |
| [docs.valyu.ai/mcp](https://docs.valyu.ai/mcp) | Hosted MCP server over these docs, so an agent can search them as a tool |
| Append `.md` to any page URL | Markdown version of that page |
| [valyu.ai/.well-known/mcp/server-card.json](https://www.valyu.ai/.well-known/mcp/server-card.json) | Machine-readable card for the hosted MCP server and its tools |

> [!TIP]
>
> Accounts without a plan 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). In the first month, the first 1,000 with a work email (500 with a personal email) work on every source on the standard plans, including SEC filings, patents and genomics. After that, free credits cover web search, arXiv and PubMed, and specialist sources depend on your plan. Check your balance before running a paid task, and see [pricing](https://docs.valyu.ai/pricing.md) for plans and usage charges.


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