AgentCan
← All checks

llms.txt validator: check your llms.txt file

Group B5 pointsrubric r1

We fetch /llms.txt and check it is non-empty and not HTML, then check for an H1 line starting with # and at least one Markdown link.

Why it matters

llms.txt is a short Markdown index written for language models. Without it an agent has to guess which pages matter from navigation HTML. A file that exists earns 3 points; the extra 2 require the H1 title and a Markdown link list, because a file without them is not a usable index. A 200 response that returns your HTML homepage does not count.

How to fix it

  1. Create /llms.txt at the site root and serve it as text/plain or text/markdown.
  2. Start with an H1: # Your Site Name.
  3. Add a one-line summary as a blockquote: > What the site offers.
  4. List key pages as links under H2 sections: - [Pricing](https://example.com/pricing): plans and limits.
  5. Make sure unknown paths do not fall back to the HTML homepage with status 200.

How to verify

Run curl -s https://example.com/llms.txt | head -5 and confirm it begins with # .

llms.txt validator: example and validation rules

This is an online validator for the llms.txt on your site. It works from the address, not from pasted text: enter your domain and we fetch the live /llms.txt and test what a crawler would actually receive. Here is a valid file you can copy and adapt.

# Example Store

> Example Store sells handmade ceramics. Prices are in EUR and ship from Lisbon.

## Products

- [All products](https://example.com/products): full catalogue with prices
- [Gift cards](https://example.com/gift-cards): digital gift cards

## Help

- [Shipping and returns](https://example.com/shipping): delivery times and return policy
- [Contact](https://example.com/contact): support email and opening hours

What counts as a valid llms.txt

  1. The file is served at /llms.txt on the site root, and the response succeeds.
  2. The body is not empty.
  3. The body is not HTML. A homepage returned with status 200 for an unknown path fails here.
  4. The first heading is an H1: a line that starts with # followed by the site name.
  5. At least one Markdown link in the form [title](https://example.com/page).
  6. Recommended, not scored: a > blockquote summary and H2 sections that group the links.

Common llms.txt errors

llms.txt FAQ

What is llms.txt?
A Markdown file at /llms.txt that gives language models a short index of your site: a title, a summary and links to the pages that matter most.

Is llms.txt required?
No. No standard forces you to publish it and it does not change how search engines rank you. It is a cheap way to give agents a clear map instead of making them guess from navigation HTML.

Do I also need llms-full.txt?
It is optional. llms-full.txt holds the full text of your key pages in one file. We score it separately in the llms-full.txt check, and a missing one does not affect this check.

Does the validator work on a file I paste?
No. It only checks the live file at your site address, because that is the file agents will fetch. Deploy first, then scan.

Check your site free

Related checks

All checks

AgentCan scores a site at one moment; it is not a guarantee about how every agent will treat it.