> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zenrows.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The Zenrows HTTP API serves Fetch and Extract (extract=auto) at https://api.zenrows.com/v1/, Crawl at https://api.zenrows.com/v1/crawls, and Batch at https://async.api.zenrows.com/v1. Fetch, Extract, Crawl and Batch are described in OpenAPI 3.1 at https://www.zenrows.com/openapi.json and listed in the RFC 9727 API catalog at https://www.zenrows.com/.well-known/api-catalog. Every endpoint also has its own page under /api-reference with its schema. Use the spec for exact parameter names and types. Crawl's endpoints, parameters and errors are also at https://docs.zenrows.com/crawl/endpoints.md. To call Zenrows from an agent, connect the MCP server at https://mcp.zenrows.com/mcp. To search these docs from an agent, connect the docs MCP server at https://docs.zenrows.com/mcp. Agent skills for Zenrows are published at https://github.com/ZenRows/cli and install with `npx skills add ZenRows/cli`.

# Zenrows CLI

> Install the Zenrows CLI, authenticate, and get your first result from the terminal in under five minutes.

Zenrows gives your terminal, and your AI agents, reliable access to the protected web: sites that are dynamic, JavaScript-heavy, or built to block ordinary tools. The `zenrows` CLI puts fetching, extracting, crawling, and running jobs at scale behind one command, plus the skills, templates, and MCP config that make it work naturally with an agent, not just a script.

It's [open source](https://github.com/ZenRows/cli).

## Installation

```bash theme={"theme":"css-variables"}
npx -y @zenrows/cli init
```

> [!NOTE]
>
> No API key needed to start. The first cloud call auto-provisions a Free-plan account and stores the key in `.zenrows/secrets.json`. Claim it later to keep your usage history, the same key keeps working. `zenrows account claim` opens the claim link, asking for a fresh one when the stored link is missing or 25 days old or more, and tells you if the account is already claimed:
>
> ```bash theme={"theme":"css-variables"}
> zenrows account claim
> ```

To use an existing key instead of the auto-provisioning flow:

```bash theme={"theme":"css-variables"}
zenrows login --api-key <your-key>
# or
export ZENROWS_API_KEY=<your-key>
zenrows login --env
```

### Run the CLI in CI

The CLI keeps its key in the project's `.zenrows/secrets.json`, which a fresh CI checkout doesn't have. Without a key, every run creates a new Free account, and the fourth run from the same network within 24 hours is refused with `SIGNUP_RATE_LIMITED`. Store your API key as a CI secret and pass it as `ZENROWS_API_KEY`, or cache the project's `.zenrows/` folder between runs. Add `--no-signup` to CI commands so a missing secret fails the job instead of creating an account. See [Agent signup and unclaimed accounts](https://docs.zenrows.com/authentication.md#agent-signup-and-unclaimed-accounts).

## Quickstart

```bash theme={"theme":"css-variables"}
npx -y @zenrows/cli init
zenrows fetch https://httpbin.io/html
zenrows extract https://www.scrapingcourse.com/ecommerce/
```

## Full setup

One command instead of many: creates your workspace, installs every skill, template, workflow, recipe, and eval, prints the MCP config to paste into your agent clients, and checks the capability matrix.

```bash theme={"theme":"css-variables"}
zenrows init --all
```

Target specific agent clients instead of the defaults:

```bash theme={"theme":"css-variables"}
zenrows init --agents claude-code,cursor,windsurf
```

> [!NOTE]
>
> `init` never skips a client silently. By default it targets `claude-code`, `cursor`, and `vscode`, and for each client it prints the config and the file it belongs in, where the client has one.

## Commands

### Primitives

The actual scraping work.

| Command | Does |
| - | - |
| [`fetch`](https://docs.zenrows.com/cli/fetch/introduction) | Get any page as clean, usable content, even if it's protected |
| [`extract`](https://docs.zenrows.com/cli/extract/introduction) | Turn messy pages into clean, structured JSON |
| [`crawl`](https://docs.zenrows.com/cli/crawl/introduction) | Collect the URLs behind one start page, and each page's HTML when you ask for it |
| [`batch`](https://docs.zenrows.com/cli/batch/introduction) | Process thousands of URLs reliably, in one job |
| [`browser`](https://docs.zenrows.com/cli/browser/introduction) | Click, log in, navigate, and interact, like a real user |

### Agent Toolkit

What makes Zenrows easy for an agent, or a developer, to actually use.

| Command | Does |
| - | - |
| [`mcp`](https://docs.zenrows.com/cli/mcp) | Connect an AI agent, Claude Code, Cursor, and more, to Zenrows |
| [`skill`](https://docs.zenrows.com/cli/skills) | Install agent-readable playbooks for choosing the right tool |
| [`template`](https://docs.zenrows.com/cli/templates) | Scaffold a minimal, working project |
| [`workflow`](https://docs.zenrows.com/cli/workflows) | Read a multi-step playbook with `workflow explain` |
| [`recipe`](https://docs.zenrows.com/cli/recipes) | Run a single, ready-made example |
| [`eval`](https://docs.zenrows.com/cli/evals) | Run a reproducible benchmark |

Check your setup, and what's already installed:

```bash theme={"theme":"css-variables"}
zenrows status
```

## Next steps

> [card] [Connect an agent](https://docs.zenrows.com/cli/mcp.md)
>
> Get the MCP config for Claude Code, Cursor, Windsurf, and more, printed by one command.

> [card] [Troubleshooting](https://docs.zenrows.com/cli/troubleshooting.md)
>
> Read a failed run's trace and find the specific next action.


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