> Documentation index: https://docs.crawlapi.dev/llms.txt
> Fetch the index before exploring further; it lists every page with its description.

# Agent skill

> Install the crawlapi skill so any coding agent knows how to call the API, read its errors and keep the key out of the chat.

## What it is

One `SKILL.md` file in the open [Agent Skills](https://agentskills.io) format, so it works in any agent that loads skills: Claude Code, Codex, Cursor, Gemini CLI, OpenCode, pi and others. It tells the agent when to use crawlapi, how to send the request, what the response holds, what every error code means and when to retry, and how to keep the key out of the chat.

It is instructions only. It holds no key and calls nothing by itself; the agent still needs `CRAWLAPI_API_KEY` set, and a page costs what the API charges for it.

The file: [docs.crawlapi.dev/skill.md](https://docs.crawlapi.dev/skill.md). It is built from the same data as the rest of these docs, so its fields, limits, prices and error codes match the API.

## Install

**Shell**

```bash
npx skills add https://docs.crawlapi.dev --skill crawlapi
```

The installer reads the skill index at `docs.crawlapi.dev/.well-known/agent-skills/index.json`, checks the file against its digest and links it into each agent it finds in the project. Add `--global` to install it for every project, or `--agent claude-code` (or `codex`, `cursor`, …) for one agent; `npx skills add --help` lists the options. Pass the site address, not the address of the file, so the index and its digest are used.

## Install by hand

Agents read skills from a folder named after the skill. Most of them (Codex, Cursor, Gemini CLI, OpenCode, pi and others) read `.agents/skills/` in the project; Claude Code reads `.claude/skills/`.

**Shell**

```bash
mkdir -p .agents/skills/crawlapi
curl -fsSL https://docs.crawlapi.dev/skill.md -o .agents/skills/crawlapi/SKILL.md
```

For Claude Code, put the same file at `.claude/skills/crawlapi/SKILL.md`. The folder must be named `crawlapi`, the name the file declares. Start a new agent session afterwards so the skill is picked up.

## Check that it loaded

Ask the agent, in a new session:

**Prompt**

```text
Using the crawlapi skill, show the request that reads https://example.com as markdown. Don't run it.
```

An agent with the skill answers with `POST https://api.crawlapi.dev/v1/scrape`, the body `{"url": "https://example.com", "format": "markdown"}` and the key taken from `$CRAWLAPI_API_KEY`. If it invents another endpoint or other fields, check that the file is named `SKILL.md`, sits in a `crawlapi` folder the agent reads, and that the session was restarted.

## Update

**Shell**

```bash
npx skills update crawlapi
```

If you installed it by hand, run the same `curl` again.

## Next

- [Agent quickstart](/agent-quickstart): set crawlapi up in a project, key and first request included.
- [Errors and retries](/errors): every code the skill describes.
