Technical

llms.txt Explained: Do You Actually Need One?

What llms.txt is, whether AI engines really read it, and the common setup mistake that makes most versions worse than having none.

Nikhil Mishra, Founder & CEO
· Updated · 6 min read

An llms.txt file is a simple text file you put at the root of your website that describes what your business does and lists your most important pages, written for AI assistants rather than for people. It is a community proposal rather than an official standard, and none of the major AI companies have confirmed they use it, so treat it as cheap insurance rather than something that will move your rankings. OPSYRA generates yours automatically from your actual pages, so it never goes out of date, and more usefully it checks for the setup mistake below that leaves most llms.txt files silently broken.

Here is what it is for, what it is not, and the one thing that goes wrong on most websites.

What it looks like

A basic, valid file:

# Your Company

> One paragraph describing what you do, written so it can be
> quoted without any surrounding context.

## Pages

- [Pricing](https://example.com/pricing): What each plan includes.
- [Documentation](https://example.com/docs): Setup and API reference.

## Articles

- [A guide to X](https://example.com/blog/x): What the article covers.

## Contact

- Email: hello@example.com

The format is deliberately plain. Your name, a short summary, then sections of links with a line of description on each. Those descriptions matter. A bare list of addresses tells an AI almost nothing, while one line about each page tells it what it would be getting.

What it is for

The reasoning behind it is sound. An AI that wants to understand your website has to crawl it, work through navigation written for humans, and guess which pages matter. An llms.txt file skips all that: here is what we do, here are the pages worth reading, in a format that needs no interpretation.

It is a recommendation, not a permission system. Which brings us to the most common confusion.

It is not robots.txt

They solve opposite problems.

robots.txtllms.txt
PurposeWhat crawlers may not fetchWhat AI should read
ToneRestrictionSuggestion
FormatDirectivesPlain text
StatusUniversally respectedA proposal, patchily adopted
EnforcedYes, by conventionNo

An llms.txt file grants no permissions and blocks nothing. If you want to control which AI crawlers can access your website, that is still robots.txt.

Does anything actually read it?

Be sceptical of confident claims in either direction. No major AI company has publicly committed to using it as a ranking or retrieval input, and there is no reliable way to watch one doing so from the outside.

What is true: some AI developer tools and documentation readers do use it, it costs almost nothing to produce, and it does no harm. That is a reasonable basis for adding one. It is not a reasonable basis for the "essential for AI SEO" framing you will find on some vendor blogs, several of which happen to sell generators for it.

Add it. Do not expect it to move anything by itself. Spend the time you save on content structure and on getting mentioned elsewhere, which demonstrably do matter.

The mistake that makes it worse than nothing

This is the part worth the article, and we made it ourselves.

Most modern websites are set up so that any address that does not match a real page returns the main app file instead, so that in-browser navigation works. In server config that usually looks like this:

location / {
    try_files $uri $uri/ /index.html;   # the problem
}

Now ask for a file you never created:

curl -s -o /dev/null -w "%{http_code}\n" https://yoursite.com/llms.txt
# 200

It returns 200, meaning success. Not a 404. It serves your HTML homepage, labelled as a web page. An AI that asks for your llms.txt receives a page of HTML, may store that as the contents of the file, and has learned nothing except that your website returns nonsense.

That is strictly worse than not having the file. A 404 is clear and the client moves on. A success response containing unrelated HTML is a wrong answer it might keep.

Check yours:

curl -s https://yoursite.com/llms.txt | head -c 100

If that starts with <!doctype html>, you have the problem. And you have it for every address that does not exist on your website, which also means an unlimited number of URLs all reporting success.

The fix is to serve real files as files and stop the blanket fallback:

location = /llms.txt {
    default_type text/plain;
    try_files $uri =404;
}

location / {
    try_files $uri $uri/index.html =404;
}

Writing one worth reading

If you are adding it, make the content earn its place.

Lead with a quotable summary. The paragraph under your name is the single most likely thing to be lifted word for word. Write it as a standalone description: what you are, who it is for, what is different about you. Not a tagline.

Describe every link. "Pricing: what each plan includes and who it suits" is useful. "Pricing" on its own is not.

Be selective. Twenty pages that matter, not two hundred. The value is in the choosing. Dumping your whole sitemap throws that away.

Clear up name confusion if you have any. If your brand gets mixed up with another company, say so directly: "Spelled A-C-M-E. Unrelated to Acme Corp, the logistics company." Confused names are a real problem and this is one of the few places you can address it in a format machines read.

Generate it from your real pages. A hand-maintained copy goes stale within two releases. Ours is built automatically from the same list that produces our sitemap, so a new article appears in both without anybody remembering to update it.

Where it sits in priority

An honest ordering for a website starting from scratch:

  1. Make sure AI crawlers can read your pages at all, meaning real text in the HTML.
  2. Correct canonical tags on every page.
  3. Content that answers the question in its opening lines.
  4. Article and FAQ structured data with visible author names.
  5. Getting mentioned on the websites AI engines already quote.
  6. llms.txt.

It is last for a reason, and it is on the list for a reason: fifteen minutes of work, generated automatically afterwards, with a small chance of mattering later. Just do not let anybody sell it to you as the first item.

Frequently asked questions

Is llms.txt an official standard?

No. It is a community proposal from 2024 and has not been ratified by any standards body or formally adopted by the major AI companies. It is a convention some websites follow and some tools read, not a specification with guaranteed support.

Do ChatGPT and Perplexity read llms.txt?

Neither OpenAI nor Perplexity has publicly confirmed using it, and there is no reliable way to verify it from outside. Some AI developer tools and documentation readers do use it. Treat support as unconfirmed and add it because it is cheap, not because it is proven.

Where should llms.txt go?

At the root of your website, at yoursite.com/llms.txt, served as plain text. Check that it returns the actual file rather than your HTML homepage, because websites with a catch-all route fallback commonly return the app shell with a success code instead, which is worse than having no file at all.

What is the difference between llms.txt and robots.txt?

robots.txt controls what crawlers are allowed to fetch and is universally respected. llms.txt describes and recommends your content to AI assistants, grants no permissions and blocks nothing, and is a proposal with limited adoption. They serve opposite purposes and neither replaces the other.

Will llms.txt improve my AI search rankings?

There is no evidence that it does on its own. It may help an AI understand your website once it is already reading it, but it does not cause an engine to visit you and it is not a ranking signal. Content structure, authority and mentions on other websites decide whether you get quoted. llms.txt is a low cost addition, not a lever.

Start today

See what AI says about your business

Your free audit checks ChatGPT, Gemini and Perplexity and shows you what to fix first. No card needed.