Skip to main content
Search the web, extract pages, crawl and map sites, and run deep research. Mirage implements the command subset below using the official tvly grammar and prints what tvly prints when its output is piped.

Setup

Create an API key in the Tavily dashboard.
No service mount is required. For YAML and multiple accounts, see the CLI overview.

SKILL.md

The SKILL.md an agent reads with tvly installed.
Available commandsThese commands are registered with this shell; --help after a command or subcommand shows its usage.tvly

Supported commands

Run tvly <command> --help for the supported flags and operands. This list is generated from Mirage’s registered command tree.

Usage

Each result prints as its number and title, its URL and its content on one line, cut to --max-chars characters (600, shared across up to five queries run in parallel; 0 prints it whole). --json prints the API’s answer whole: one object for one query, an array for several.

Extract, crawl and map

extract and crawl print each page as # <url>, a blank line and its content; a URL the API could not fetch is listed after them. map prints one URL per line. --output-dir saves each crawled page as a .md file named after its URL.

Research

A task is polled every --poll-interval seconds until it finishes or --timeout passes; --no-wait prints the request ID at once, and research poll resumes waiting on it. --stream prints each step on stderr and the report on stdout. research status and research poll take no run options.

Save the answer

-o FILE saves the full JSON answer through the workspace, relative to the session’s working directory. A bare -o saves it as .tavily/<command>-<slug>-<time>-<hex>.json, and a new .tavily/ gets a .gitignore that ignores it.

Behavior

Authentication is the install’s: its config supplies the key from outside the shell, and nothing in the shell can sign in or change it. tvly auth names the install as the key’s source and never prints the key. On an install without one, tvly auth, the commands that need a key and the keyless rate cap say that no api_key is set in the install’s config, where tvly would point at tvly login. The setup verbs (init, login, logout, setup, set-default, update), --version, --status and the interactive shell change the machine tvly runs on and are absent. Help pages use Mirage’s argparse layout rather than commander’s. Option parsing follows commander: no long option abbreviates, an unknown option names the closest spelling, and every usage error exits 2. With --json, a failure prints {"error": "<message>"} on stdout instead of the message on stderr. The shared conformance suite checks the implemented surface against tvly. The suite pins tvly 1.0.2.

License

Adapted code from @tavily/core and Commander.js keeps its license in licenses/third_party/. See compatibility and licenses.