What llms.txt is
llms.txt was proposed by Jeremy Howard of Answer.AI on 3 September 2024. The idea is simple: put a short Markdown file at /llms.txt that says what the site is and links to the pages an AI agent should read, ideally in clean Markdown. The proposal was revised to version 2 in August 2026.
Two things the proposal says about itself are worth knowing before you build one:
- It is a proposal. The spec calls itself a proposal throughout.
- It is mainly for inference, not training. The authors expected agents to read it on demand when a user asks for help, though training runs could use it too.
It is also not a replacement for robots.txt or sitemap.xml. robots.txt controls what crawlers may fetch; llms.txt only suggests what to read. A sitemap lists every URL; llms.txt is a short, curated reading list.
Who reads it
| Who | What they officially say |
|---|---|
| Google Search | Its AI optimization guide says Google Search ignores llms.txt. Creating one is fine for other services, but it neither helps nor harms visibility or rankings in Google Search. |
| Chrome Lighthouse | An experimental “Agentic Browsing” audit checks for /llms.txt at the site root. A missing file counts as not applicable; a server error fails the audit. |
| OpenAI, Anthropic, Perplexity | Their crawler pages explain how to control crawling with robots.txt. None of them says its crawlers read other sites’ llms.txt. All three publish llms.txt files for their own developer documentation. |
So the honest answer to “does llms.txt help me show up in AI answers?” is: nobody has promised it does. It mostly helps coding agents and other tools that look for it on purpose, which is why it is most common on software documentation sites.
The format (v2)
The file is Markdown, with parts in a fixed order:
| Part | Required? | What goes in it |
|---|---|---|
| Byte-order mark | No | Allowed at the very start |
| H1 | Yes | The name of the site or project. This is the only required part |
| Blockquote | No | A short summary with the key facts needed to understand the rest |
| Paragraphs or lists | No | Any extra context, but no headings |
| H2 sections | No | Lists of links: - [Name](URL), optionally followed by : notes |
A section named ## Optional is, by convention, for secondary links an agent can skip when it needs a shorter context. In version 1 that section had a special meaning to tools; version 2 dropped it, so it is now only a convention.
What changed in version 2
On the Google results we checked on 27 October 2026 for three llms.txt searches, several first-page results were written before version 2, so check which version an example follows. In short, version 2:
- dropped the special meaning of the Optional section (above);
- defined subpath files: a file covers the pages under its path, and the most specific one applies (Where to put it);
- allows both
page.html.mdandpage.mdfor Markdown copies, because some publishing tools replace the extension, and recommends link relations for them (Markdown versions of pages); - states what agents are expected to do: view or search the llms.txt to find what they need, then follow the relevant links, which should point to LLM-friendly content.
The version 2 text says it was updated from “two years of adoption”: thousands of sites publish a file, and the files are used most heavily in software documentation, where coding agents follow them to find API references and tutorials.
A copyable example
# Example Bakery
> Example Bakery is a family bakery in Springfield that sells bread and cakes online and delivers within 20 km.
All prices are in US dollars and include tax. Orders placed before 2 pm ship the same day.
## Shop
- [Bread](https://example.com/bread.md): Daily loaves, ingredients and allergens
- [Cakes](https://example.com/cakes.md): Custom cakes, sizes and lead times
## Policies
- [Delivery](https://example.com/delivery.md): Areas, fees and time slots
- [Refunds](https://example.com/refunds.md)
## Optional
- [Our story](https://example.com/about.md)
Replace the names and links with your own. Keep the summary factual: the same claims should appear on your real pages.
Where to put it
- At the site root,
https://yoursite.com/llms.txt. Version 2 also allows files in subpaths such as/docs/llms.txt; a file covers the pages under its path, and the most specific one applies. - If you only make one, make the root one: that is where Lighthouse tells you to put it.
- Serve it as plain text with a 200 status, and keep it small enough to fit in an AI model’s context. Put detail in the linked pages, not in the file.
Writing yours step by step
- Pick the pages that explain what you do, how it works and what it costs. The spec says the file “stays small enough to fit in context” and the detail lives behind the links, so list pages rather than pasting them in.
- Write the H1 and a summary. The H1 with your site’s name is the only required part; add a blockquote with the key facts needed to understand the rest. Citeloop’s file opens with an H1 and a two-sentence blockquote, followed by the same summary in Chinese.
- List the pages in H2 sections, one Markdown link each, optionally followed by a colon and a short note. Each entry in Citeloop’s file is a page’s title and its meta description.
- Put it at the root and serve it as plain text with a 200 status, as above.
- Keep it current. In our view the simplest way is to generate the file from the same titles and descriptions as the pages, as citeloop.ai’s build does, so the two cannot drift apart.
Markdown versions of pages (optional)
The proposal also suggests offering a clean Markdown copy of important pages at the same URL, either with .md added (page.html.md) or with the extension replaced (page.md). Version 2 recommends linking them with rel="alternate" type="text/markdown", and pointing to the covering llms.txt with rel="describedby", in an HTML <link> or an HTTP Link header. This is a recommendation, not a requirement.
Real llms.txt files, measured
On 27 October 2026 we fetched five real llms.txt files with CiteloopBot, which read each site’s robots.txt first: the developer documentation of OpenAI, Anthropic, Gemini and Perplexity, and Citeloop’s own. Links are every Markdown [name](URL) link, including relative ones.
| File | Size (bytes) | H2 sections | Links (to .md or .txt) |
|---|---|---|---|
| OpenAI | 6,201 | 4 | 40 (31) |
| Anthropic | 90,932 | 5 | 822 (822) |
| Gemini | 38,007 | 1 | 224 (224) |
| Perplexity | 40,490 | 2 | 184 (177) |
| Citeloop | 9,226 | 2 | 32 (0) |
- OpenAI’s opens with a blockquote, and its first H2, “Documentation sets”, links to other llms.txt files, so it works as an index of indexes.
- Anthropic’s (docs.anthropic.com/llms.txt redirects there) has no blockquote and lists its documentation by language: English, 821 pages, “Content included below”; German, 305 pages, “Visit website for content”.
- Gemini’s puts all 224 links under one H2. It was the only one of the five served as text/markdown; the other four came as text/plain.
- Perplexity’s opens with a blockquote and has two H2 sections, OpenAPI Specs, with five links to .json files, and Optional.
The AI companies’ files point mostly to Markdown versions of pages; none of the 32 links in Citeloop’s file does. These numbers show what the files contain, not whether any AI crawler reads them, and we have no data on that.
What llms-full.txt is
llms-full.txt is not part of the proposal. It is a convention from documentation platforms such as Mintlify: the whole documentation site merged into one file. It can be useful for very large docs, but nothing in the llms.txt spec asks for it.
Checking your file
- Fetch it. Request
/llms.txton your site and confirm a 200 status and a text content type. - Read the first line. It should be the H1 with your site’s name.
- Open the links. The spec expects them to point to LLM-friendly content.
- Ask an agent. The spec suggests asking an agent questions about your content, giving it only your llms.txt as a starting point.
Chrome’s Lighthouse audit flags a server error when it fetches the file and marks a 404 as Not Applicable, “as providing the file is optional at the moment”. In our view a pass shows that the file can be fetched, not that any AI reads it.
Should you add one?
Yes, if your site has pages that explain what you sell, how it works and what it costs: it takes a few minutes and costs nothing. But do it after the basics, because llms.txt cannot fix them:
- Make sure AI crawlers are allowed in
robots.txtand not blocked by your CDN. See AI crawler list: what each bot does and how to block it. - Make sure your content is in the HTML, not only rendered by JavaScript.
- Then add a short, accurate llms.txt and keep it updated when pages change.
Citeloop’s own file is at citeloop.ai/llms.txt. The free GEO audit checks whether yours exists and follows the format.