# What llms.txt is and which docs sites serve one | Spider

llms.txt is a markdown file, usually at a site's root, that lists pages for AI agents. What it holds, what it is not, and what ten documentation sites returned for it.

Canonical: https://spider.cloud/learn/llms-txt/

An llms.txt file is a markdown file, usually at `/llms.txt` on a site, that points a language model at the pages worth reading. The proposal requires only an H1 with the site's name, and most files add a short summary and lists of links. It is a proposal from one author and not a standard, and it grants or denies no access to anything.

Where robots.txt tells a crawler what it may fetch, llms.txt tells a reader where to start. A site can have either, both or neither, and the two do not touch each other.

## Where the idea comes from

The proposal comes from Jeremy Howard, who published it on 3 September 2024 and revised it in 2026. The reason he gives is that pages are built for people, so an agent that wants the text has to dig it out of navigation, ads and scripts. His page says "Agents are best served by concise, expert-level information gathered in a single, accessible location."

The same page says how far it has spread: "thousands of sites publish an llms.txt file". That is the author counting his own proposal's uptake, not a survey, so treat it as a rough size.

## What is in the file

The file is markdown with a fixed order of parts. The proposal lists an H1 with the name of the site, a blockquote with a short summary, optional paragraphs of notes, and then sections of links. A link may carry a short description after it, but does not have to. Only the first part is mandatory. The spec puts it this way: "An H1 with the name of the project or site. This is the only required section".

A small file looks like this.

```markdown
# Example Docs

> Guides and API reference for the Example library.

## Guides

- [Quick start](https://example.com/docs/start.md): Install and run it.
- [Configuration](https://example.com/docs/config.md): Every option.
```

The links can point at markdown versions of pages, not at the HTML ones. The proposal recommends that a site serve a `.md` copy of a page, at the page's address with `.md` added or in place of its original extension, so an agent can follow a link and get clean text. The file stays small, and the detail sits behind the links.

A file can also sit below the root. A file at `/docs/llms.txt` covers the pages under `/docs/`, and when two files apply the more specific one is the one to use.

## How it differs from robots.txt

| Compared on | robots.txt                           | llms.txt                  |
| ----------- | ------------------------------------ | ------------------------- |
| Purpose     | Says which paths a crawler may fetch | Lists pages worth reading |
| Standing    | An IETF standard                     | A proposal                |
| Format      | Plain directives in groups           | Markdown with links       |
| Effect      | A request to follow the rules        | None on access            |

Nothing in an llms.txt file works as a rule. If you want to know whether a path is allowed, read [robots.txt](/learn/robots-txt/) and follow it, and treat llms.txt as a table of contents for what you are already allowed to read.

## Do search engines need it

Google answers this in its guide to AI features. The page says "You don't need to create new machine readable files, AI text files, or markup to appear in these features." That covers Google's own AI results in Search. It says nothing about other agents, such as coding assistants that read documentation directly, which is the use the proposal is aimed at.

## Ten documentation sites asked for one

A claim about adoption is easy to check, so we asked ten documentation sites for their `/llms.txt` in one request. The sites are a mix of developer platforms, libraries and databases. The request sends a client name and contact address in `user_agent`, as [a polite client should](/learn/robots-txt/), and it sets `request` to `http` because the file is plain text and needs no browser. Addresses are separated by commas, and the key sits in `SPIDER_API_KEY`.

```bash
curl -s https://api.spider.cloud/scrape \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://docs.stripe.com/llms.txt,https://docs.anthropic.com/llms.txt,https://developers.cloudflare.com/llms.txt,https://vercel.com/docs/llms.txt,https://docs.astro.build/llms.txt,https://react.dev/llms.txt,https://docs.github.com/llms.txt,https://developer.mozilla.org/llms.txt,https://docs.python.org/llms.txt,https://www.postgresql.org/llms.txt", "request": "http", "return_format": "raw", "user_agent": "examplebot/1.0 (+https://example.com/bot; bot@example.com)"}'
```

All ten answers were in after 38.1 seconds, on 2026-11-21 at 02:27 UTC. The answer is a JSON array with one object per address, each with a `url`, a `status` and the file in `content`. This block lists the status and the heading of the text in `content` for each, in the order they came back. The 404 pages returned an error page, or nothing, in place of a file.

```text
200  https://react.dev/llms.txt                    # React Documentation
404  https://docs.python.org/llms.txt
200  https://vercel.com/llms.txt                   # Vercel
200  https://docs.github.com/llms.txt              # GitHub Docs
200  https://platform.claude.com/llms.txt          # Anthropic Developer Documentation
200  https://developers.cloudflare.com/llms.txt    # Cloudflare Developer Documentation
404  https://developer.mozilla.org/llms.txt
404  https://www.postgresql.org/llms.txt/
200  https://docs.stripe.com/llms.txt              # Stripe Documentation
404  https://docs.astro.build/llms.txt
```

Six of the ten returned a file with a 200 and four returned a 404. Three of the returned addresses differ from the ones we asked for. The Anthropic request, sent to `docs.anthropic.com`, answered from `platform.claude.com`. The Vercel request, sent to `/docs/llms.txt`, answered from `vercel.com/llms.txt`. The PostgreSQL address came back with a trailing slash. If your client keys results by the address it asked for, expect that mismatch.

Our record of the run keeps only the first 2,000 characters of each body, and each of the six files filled all 2,000, so each was cut. So this page does not count links, because a count from a cut body would be wrong. If you want counts, keep the whole body when you make the request yourself.

What the first 2,000 characters do show is the kind of link each file starts with. These are the first link lines from four of the files, copied from `content` as they arrived.

```text
react.dev                  - [Quick Start](https://react.dev/learn.md)
vercel.com                 - [Vercel overview](https://vercel.com/home.md): The homepage as Markdown.
platform.claude.com        - [Documentation](https://platform.claude.com/docs/en/home.md)
developers.cloudflare.com  - [Argo Smart Routing](https://developers.cloudflare.com/argo-smart-routing/llms.txt): Route web traffic across the fastest, most reliable network paths
```

React, Vercel and Anthropic link straight to `.md` copies of pages, the pattern the proposal recommends. Vercel's link carries a description and React's does not, and both forms are allowed. Cloudflare's first link goes to another llms.txt file, one for a single product, so its root file works as an index of smaller files. GitHub's file uses `*` for its list instead of `-`, which is still a markdown list.

The Stripe body came back different from the other five. It started with an HTML wrapper, `<html><head>`, and the file's text sat inside a `<pre>` element. The other five bodies started with their H1 line. A client that only checks the status would not notice the wrapper.

## Reading one without guessing

When you write a client that uses these files, take the status first. A 404 means your request found no file at that address, and the right move is to go on without it, or to look for one under another path. A 200 does not prove the body is the bare file. Before parsing, skip a byte order mark if the body starts with one, since the proposal allows it before the H1. If the body starts with `<html`, take the text inside its `<pre>` element, as the Stripe result needed. Then check that the first line is an H1. The links are the useful part, and a link that points at a `.md` page saves you from stripping markup. The [web scraping guide](/web-scraping/) covers what to do for pages that have no markdown copy.

A page that a site lists for agents is still the site's work. Its terms of use still apply to what you do with the text, and so does its copyright. This page is not legal advice, and if you plan to reuse the text, read the terms first.

## Do this, avoid this

### Do this

- Request /llms.txt once per site and treat a 404 as no file at that address.
- Strip a byte order mark or an HTML wrapper, then check that the body starts with an H1 before you parse links from it.
- Follow the links the file gives you, and prefer the .md pages it lists.
- Read robots.txt for access rules, and use llms.txt only to decide where to start.

### Avoid this

- Assuming every documentation site publishes one.
- Parsing a 200 body as markdown before you have looked at its first line.
- Taking a link in the file as permission to fetch it when robots.txt disallows it.
- Reusing the text of a listed page without reading the site's terms and copyright notice.
- Keying your results by the address you asked for when the answer may come from another one.

## Sources

1. [The /llms.txt file, v2, Jeremy Howard, llmstxt.org](https://llmstxt.org/) Read November 20, 2026
2. [Google Search Central, AI features and your website](https://developers.google.com/search/docs/appearance/ai-features) Read November 20, 2026
