agentic402

llms.txt: what it is, what to put in it, and who reads it

Published 3 December 2026 ยท Updated 3 December 2026

llms.txt is a proposed convention: a Markdown file at /llms.txt that tells AI tools what a site is and links to its most useful pages, ideally in Markdown versions. The proposal at llmstxt.org reads: "We propose adding a `/llms.txt` markdown file to websites to provide LLM-friendly content." It's cheap to make. Whether AI search engines use it is unproven, and according to Ahrefs, Google hasn't committed to crawling it.

What the proposal asks for

The format is deliberately small. According to llmstxt.org, the file starts with "An H1 with the name of the project or site. This is the only required section." It then suggests "A blockquote with a short summary of the project, containing key information necessary for understanding the rest of the file", followed by optional paragraphs and sections of Markdown links, each with a short note on what the linked page holds.

The proposal also asks for something beyond the one file: "We furthermore propose that pages with information that agents might need provide a clean markdown version of those pages at the same URL as the original page", with .md appended. That second part is arguably the more useful one, because it gives an agent a small, clean copy of any page it is sent to.

A companion file, /llms-full.txt, isn't in the core proposal. Mintlify's guide on DEV Community describes the idea: "Compile all of your site's text into a single markdown file, to make it easier to paste a single URL to load context into an AI tool."

Does anything actually read llms.txt?

Here the evidence is thin, and it's worth being plain about it. Ahrefs, which studied the question, says "no major LLM provider currently supports llms.txt" and "Google hasn't committed to crawling it yet." It quotes Google's John Mueller on AI services and the file: "you can tell when you look at your server logs that they don't even check for it". Ahrefs also reports that 28% of the 137,000 domains in its sample publish one. That sample came from Ahrefs Web Analytics users, so it says little about the web as a whole.

The proposal itself never claimed crawlers would use it. llmstxt.org frames it the other way round: "llms.txt information is instead used on demand, when an agent needs information about a topic while assisting a user." In other words, the reader is an agent that has already been pointed at your site, by a user, a developer or a search result, and wants the short version.

What the sources say about llms.txt, as read on 3 December 2026
QuestionEvidenceSource
Do AI services check for it?"they don't even check for it" (from server logs)John Mueller, quoted by Ahrefs
Do major LLM providers support it?"no major LLM provider currently supports llms.txt"Ahrefs
What is it meant for?"used on demand, when an agent needs information about a topic while assisting a user"llmstxt.org
How many sites publish one?28% of 137,000 domains in Ahrefs' sampleAhrefs

So treat llms.txt as a courtesy to agents that arrive on purpose, not as a ranking tool. If you want AI search engines to cite you, the page itself, its accuracy and whether it's indexed by Google and Bing matter far more.

Who benefits from it anyway

Three kinds of reader get real value from a good llms.txt, even without crawler support.

Coding agents sent to a docs site. A developer asks an agent to use a library; the agent fetches the docs. If the site offers /llms.txt and .md pages, the agent reads a few kilobytes of Markdown instead of hundreds of kilobytes of HTML. In our token study of 12 real pages, Markdown was a median 96% smaller than the raw HTML. Claude Code's own documentation works this way, pointing readers to "the complete documentation index at: https://code.claude.com/docs/llms.txt".

Agents deciding whether to use a service. An agent comparing APIs needs prices, endpoints and limits, and usually has a budget of requests and tokens for finding them. A llms.txt that states them in plain text answers in one request.

People pasting context into a chat. One URL to llms-full.txt loads a whole site into a conversation. That's the use Mintlify's description has in mind.

A worked example: this site's llms.txt

agentic402 sells API calls to agents, so its llms.txt is written for an agent that wants to call those APIs without reading anything else. It follows the proposal's shape (H1, blockquote summary, sections of links) and adds what an agent needs to act:

# agentic402

> Tools that AI agents pay for per call over HTTP 402 (the x402 protocol). No account
> or API key: an unpaid call returns 402 with a PAYMENT-REQUIRED header, ...

## Tools
- [fetch: URL to Markdown API](https://agentic402.dev/tools/fetch/): `POST https://agentic402.dev/v1/fetch`
  with JSON {"url": "https://...", "format": "markdown" | "json"}. ... Price: $0.005 per call. ...
...
## MCP
## Paying
## Limits
## Untrusted content
## Docs / Recipes / Guides / Blog / Compare / About

Each tool line gives the method, URL, request body and price, a Limits section covers the rest, so an agent can make a correct first call straight from the file. A section on paying states the protocol, network and which errors are free. A section on untrusted content tells the agent that fetched pages and inbox items are third-party text and how they're labelled. Every page of the site then gets a one-line entry that states its answer as well as its title. You can read the full file.

What to put in your own

Start with the questions an agent arriving at your site would ask, and answer them in the file itself rather than only linking:

Write it in the same plain register as good API documentation: short sentences, exact values, no adjectives doing the work of facts. Leave out marketing copy, keyword lists and anything you wouldn't tell a developer directly. A file stuffed with keywords helps nobody, and an agent will quote whatever you put there.

The Markdown copies matter more on heavy sites

How much a Markdown copy saves depends on how heavy the HTML is. Framework-built pages are the extreme: in our study, the Linear and Vercel pricing pages were 143 and 75 times bigger as HTML than as Markdown. Our own pages are the opposite case. They're hand-written HTML with no JavaScript, so when this guide was written the Markdown copy of our fetch page was about 16 KB against about 25 KB of HTML, roughly a third smaller, and the payments page went from about 10 KB to about 5 KB.

So if your site is already lean, the Markdown copies are a convenience for agents, not a big saving. If it's built with a heavy framework, they can cut what an agent reads by more than 90%, and they're the most useful thing in this whole convention.

Generate them from the same source as the HTML, keeping headings, lists, tables, links and code, and dropping navigation, headers and footers. Absolute URLs in the links help, because an agent reading index.md has no base URL to resolve relative ones against.

Markdown on request, without a new URL

A separate .md URL isn't the only way to serve Markdown. A server can also look at the request's Accept header and return Markdown to clients that ask for it, at the page's normal URL. Our fetch tool asks this way first: it sends Accept: text/markdown, text/html;q=0.9, */*;q=0.8, and when a site answers with text/markdown, it passes that text through untouched instead of converting HTML. A site that supports both, the .md copy and the header, covers agents that guess URLs and agents that negotiate.

How long the file should be

Short enough to read in one go. Ours is about 9 KB, around 2,200 estimated tokens at 4 characters per token, and covers five APIs and every page on the site. A docs site with hundreds of pages shouldn't list them all in llms.txt; list the sections and the most-asked pages, and let llms-full.txt or the Markdown copies carry the rest.

Testing it the way an agent will use it

Fetch your own /llms.txt with curl and read it cold, as if you'd never seen the site. Then give it to a model with a task, such as "make a first call to this API" or "find the price of X", and nothing else. If the model needs to open more pages to do something the file claims to explain, the file is missing a line. Finally, check every link in it resolves, ideally in the same build step that checks the rest of the site.

Keep it generated, or it will go stale

The fastest way to make llms.txt harmful is to write it once and forget it. A file that says a tool costs $0.01 after the price changed to $0.005, or links to a page that no longer exists, misleads exactly the readers it was meant to help.

This site handles it with a build step that runs before every deploy. A small Node script with no dependencies reads every HTML page, writes a Markdown copy next to it as index.md, concatenates those copies into llms-full.txt, writes sitemap.xml, and checks internal links. It fails the build on any link to a page that doesn't exist, and lists any page missing from llms.txt. The hand-written llms.txt stays short, and the parts most likely to rot are generated or checked.

Each page's head links its Markdown copy with <link rel="alternate" type="text/markdown" href="...">, so an agent that lands on the HTML can find the small version without guessing the URL.

llms.txt next to robots.txt and sitemaps

The three files do different jobs. robots.txt says who may crawl what; sitemap.xml lists every URL for search engines with its last change date; llms.txt explains the site to a model. llms.txt doesn't grant or deny access. If you want AI crawlers to read your pages, your robots.txt has to allow them; ours names GPTBot, ClaudeBot, Claude-User, PerplexityBot, Google-Extended and others explicitly, alongside a general allow rule.

A site with a strict robots.txt and a generous llms.txt sends mixed signals: the agent is told what's useful and then blocked from fetching it. Decide what you want AI tools to read, and make the three files agree.

Common mistakes

Linking to HTML only. The proposal's real saving comes from Markdown versions. Without them, an agent follows your llms.txt links straight back into heavy HTML.

Listing titles without answers. "Pricing" tells an agent nothing; "Pricing: every call $0.005 except inbox creation at $0.01" lets it stop reading.

Making claims the site doesn't support. Agents quote llms.txt. A feature listed there that the product doesn't have becomes someone else's wrong answer.

Expecting traffic from it. Nothing in the evidence above suggests llms.txt brings visitors. Make it for the agents that already come.

Questions about llms.txt

Does Google use llms.txt?
Ahrefs reports that Google hasn't committed to crawling it, and Google's John Mueller has said that, judging by server logs, AI services don't even check for it. Don't expect it to affect Google rankings.
What's the difference between llms.txt and llms-full.txt?
llms.txt is a short index with links. llms-full.txt contains the full text of the pages in one file, so an AI tool can load everything from a single URL.
Should an API's llms.txt include prices?
If the API is paid, yes. An agent choosing between services needs the price to decide, and a price in the file saves it a request. Keep the file generated or checked so the price can't drift from the real one.
Is there an official specification?
There's a proposal at llmstxt.org, not a standard from a standards body. Its only required element is an H1 with the site's name.

Cite this page: agentic402, "llms.txt: what it is, what to put in it, and who reads it", https://agentic402.dev/guides/llms-txt/, published 3 December 2026. Quotes are from llmstxt.org, Ahrefs, Mintlify (DEV Community) and Claude Code's documentation as read that day.