llms.txt is a proposed convention for a Markdown file at /llms.txt that summarizes a website for AI agents and links to the pages worth reading. This guide explains what the proposal specifies, gives you a file to copy, shows what 60 well-known sites publish at that address, and provides a script that validates your own file. It then reports what read ours: requests that followed a link only our llms files carried, three of which identified themselves as Claude, and what ChatGPT, Claude, Gemini and Perplexity did when asked to use the file. Last, it shows the line that lets an agent ask a site’s AI Agent a question instead of reading more files, which Quickchat AI’s AI assistant access gives you ready to copy.
By the end you will have three things: a valid file at /llms.txt, a passing run of the validation script, and a count from your own access log of which user agents requested the file.

Download the llms.txt check kit. It contains the example file, the validation script, a ten-point checklist, a log script and a sample log. You need a website you can add a file to, a terminal with curl, and Node.js 22 or later. Access to your request logs is needed only for the last step.
If you already have a file, go straight to validating it. If you want the evidence first, read who requested ours.
What is llms.txt?
llms.txt is a Markdown file that gives an AI agent a short summary of a website and a curated list of links to follow for detail. Jeremy Howard of Answer.AI published the proposal at llmstxt.org on 3 September 2024 and revised it as version 2 in August 2026. It describes two things: the file itself, and a recommendation that pages offer a clean Markdown version of themselves at a predictable address.
The file is meant to be used at answer time. The proposal says its information is “used on demand, when an agent needs information about a topic while assisting a user”, and that the author expected it to be useful mainly for inference and not for training. An agent is expected to read or search the file, then follow the links that match the question it is working on.

Is llms.txt a standard?
llms.txt is a published proposal, and no standards body has adopted it. Each AI vendor and each tool decides whether to request the file. The support that exists is in tooling: documentation platforms generate the file, and Chrome’s Lighthouse has an experimental audit that looks for it. Both are covered below.
How is llms.txt different from robots.txt and a sitemap?
robots.txt states which URLs a crawler may request, a sitemap lists every URL for indexing, and llms.txt is a short reading list in Markdown. The three do not replace each other. llms.txt grants and denies nothing, so a site that wants to control AI crawlers does that in robots.txt.
| File | The question it answers | Format | What quickchat.ai published on 24 November 2026 |
|---|---|---|---|
robots.txt | Which crawlers may request which paths? | Plain text rules, RFC 9309 | Everything allowed, with named groups for seven AI crawler tokens |
| Sitemap | Which URLs exist, for search engines? | XML, the sitemap protocol | 3,545 URLs in 33 languages |
llms.txt | What is this site, and which few pages should an agent read first? | Markdown | 291 links: 290 Markdown versions of English pages and the documentation index |

What are llms-full.txt and llms-small.txt?
llms-full.txt is a convention for one file that holds the full text of a site’s pages, and llms-small.txt is a shorter variant. Neither is part of the proposal. They come from documentation tools: Mintlify generates llms.txt and llms-full.txt for every site it hosts, and the starlight-llms-txt plugin generates all three. quickchat.ai publishes all three as well. Its full file includes blog posts and its small file leaves them out.
A full-text file can be very large. The survey below measured several.
Step 1: What does an llms.txt file look like?
A useful llms.txt has an H1 with the site name, a summary in a blockquote, optional free text, and H2 sections that each hold a list of links with a note. This is the example file from the kit. Northwind Bikes is a fictional shop on a reserved example domain.
# Northwind Bikes
> Northwind Bikes sells city bikes and e-bikes online and from one store in Springfield. The pages below cover returns, shipping, warranty, sizing, servicing and store hours.
Every link below points to the Markdown version of a page. Remove .md from the URL for the HTML version. Prices are in USD.
## Help pages
- [Returns and exchanges](https://northwind-bikes.example.com/help/returns.md): Return windows, fees and how refunds are issued
- [Shipping and delivery](https://northwind-bikes.example.com/help/shipping.md): Costs, delivery times and where we ship
- [Warranty](https://northwind-bikes.example.com/help/warranty.md): What the frame, component and battery warranties cover
- [Bike sizing and fitting](https://northwind-bikes.example.com/help/sizing.md): Frame size by rider height
## Store
- [Store hours and test rides](https://northwind-bikes.example.com/stores/springfield.md): Opening hours, test rides and in-store pickup
## Optional
- [Servicing and repairs](https://northwind-bikes.example.com/service.md): Tune-up prices and turnaround times
Copy it, replace the name and the summary, and list your own pages. The proposal says the file “stays small enough to fit in context” while “the detail lives behind the links, and is fetched only when needed”.

Which parts of llms.txt are required?
Only the H1 is required. Everything else is optional, but the order is fixed: the H1, then the blockquote, then any free text without headings, then the H2 sections. Inside an H2 section each list item is a Markdown link, optionally followed by a colon and a note. The proposal calls this “a precise format allowing fixed processing methods”, which is what makes the file checkable by a script.
Which pages should the links point to?
Link to the pages an agent would need in order to answer questions about your site, and point to a Markdown version of each page where one exists. The proposal recommends serving that version at the page’s own URL with .md added, so /pricing becomes /pricing.md and a URL without a file name becomes index.md. Keep the list curated. A sitemap already lists everything.
Links to other sites are allowed. The proposal’s own example links to a reference page on GitHub.
What does the Optional section mean?
A section named Optional holds secondary links that an agent can skip when it needs a shorter context. In version 1 of the proposal a companion tool used the name to decide what to leave out. Version 2 removed that tool, and the name is now a convention without a mechanical meaning.
What do llms.txt files on well-known sites look like?
Of 60 well-known sites we requested on 24 November 2026, 33 returned a text file at /llms.txt, and 6 of those 33 followed the proposed format without a single finding. The sample is ten sites in each of six groups, chosen before fetching. It is not a random sample of the web, and each site was requested from one machine on one day.

The groups differ a lot. Nine of the ten AI developer documentation sites publish a file, including the documentation of OpenAI, Anthropic, Google’s Gemini API, Mistral, Cohere, xAI and Perplexity. The main websites of AI companies mostly do not: 7 of 10 returned 404. Among ten consumer, commerce and media sites, only Shopify had a file. Five sites answered both of our clients with a block or a challenge page, so we cannot say whether they publish one.
Published files differ widely in shape. OpenAI’s and Shopify’s follow the format, Intercom’s is mostly prose, and Twilio’s starts without a title.

| File | Size | Links | What to notice |
|---|---|---|---|
| developers.openai.com/llms.txt | 2 KB | 41 | An index of indexes: most links point to another llms.txt, one per product |
| docs.anthropic.com/llms.txt | 12 KB | 958 | Redirects to another host. Every page of the documentation is listed |
| developers.cloudflare.com/llms.txt | 5 KB | 111 | One link per product, each to that product’s own file |
| docs.stripe.com/llms.txt | 99 KB | 475 | Opens with instructions for coding agents before the first section |
| docs.github.com/llms.txt | 10 KB | 117 | Tells agents which API to call for page lists and article bodies |
| docs.cohere.com/llms.txt | 300 bytes | 2 | Two links to per-version files, and a note that any section URL has its own llms.txt |
| shopify.com/llms.txt | 5 KB | 71 | A commerce site, not documentation. No findings |
| twilio.com/llms.txt | 2.5 MB | 10,018 | The largest index in the survey, and the first line is a list item |
The structure checks found something in 27 of the 33 files.

None of these deviations stops a model from reading the file, because a model reads Markdown either way. They matter to software that parses the format. A parser that follows the proposal skips a bullet without a link and does not expect an H3. The two files without an H1 at the top, from Twilio and Salesforce, are the only ones the script fails outright.
How big are the full-text files?
Seventeen of the 33 sites also serve an llms-full.txt, and the largest are far too large for an agent to read in one request. Cloudflare’s is 11.9 MB, which is about 3 million tokens at four bytes per token. Three surveyed files exceed one million tokens.

Step 2: How do you publish llms.txt on your own site?
Serve the file at /llms.txt as text/plain or text/markdown with charset=utf-8, and generate it from the pages you already publish if your site has a build step.
- Save the file as
llms.txtin the folder your site serves from its root. In most static site generators that folder ispublic/. - Deploy, then request the file with a client that is not a browser:
curl -sS -o /dev/null -w '%{http_code} %{content_type} %{size_download} bytes\n' https://example.com/llms.txt
- Read the result. You want
200, a text content type and a size that matches your file.text/htmlmeans the server returned a page, not your file. - Optionally, tell clients where the files are. Version 2 of the proposal recommends two standard link relations, as
<link>elements in the<head>of every page or in an HTTPLinkheader:
<link rel="describedby" href="/llms.txt">
<link rel="alternate" type="text/markdown" href="/pricing.md">
The first points from any page to the llms.txt that covers it. The second points from a page to its own Markdown version.
A file can also live in a subpath. /docs/llms.txt covers the pages under /docs/, and where more than one file applies, the proposal says agents should use the most specific one.
A hand-written file is fine for a handful of links. It becomes out of date when a page moves or is renamed, so either give it an owner or generate it.
How does quickchat.ai generate its llms.txt?
quickchat.ai generates /llms.txt, /llms-full.txt and /llms-small.txt during the site build from the same pages it serves as HTML, so the files change whenever a page does. Nobody edits them by hand.

The build works like this:
- Every English page that search engines may index gets a Markdown version at the same URL with
.mdadded. A blog post is copied from its Markdown source. Any other page is converted from its built HTML: the main content is kept, scripts, styles and decorative graphics are removed, link and image URLs are made absolute, in-page anchors are kept, and front matter with the title, the description and the source URL is added. - Some content is left out on purpose. Translated pages,
noindexpages and utility pages get no Markdown version. Decorative demo conversations on product pages are marked to be skipped, because made-up example data should not be published as page content. - Each page advertises its Markdown version with
<link rel="alternate" type="text/markdown">in its head. - A failed conversion fails the build, so the index cannot silently lose a page.


The documentation is a separate Starlight build that uses the starlight-llms-txt plugin. Each documentation page also has a menu that opens the page as Markdown or the full-text file.

If your site has no build step, the integrations list on llmstxt.org names generators for several platforms, among them plugins for VitePress, Docusaurus, Drupal and WordPress.
Step 3: How do you validate an llms.txt file?
Validating an llms.txt file means checking four things: that it is served correctly, that its structure follows the proposal, that every link resolves, and that it lists the pages you intend. This guide gives you a checklist and a script that you run yourself. The script runs the first three. It is not a hosted checker.
How do you check llms.txt by hand?
Four curl commands cover delivery. Set SITE to your own address.
SITE=https://example.com
# Status, content type and size
curl -sS -o /dev/null -w '%{http_code} %{content_type} %{size_download} bytes\n' "$SITE/llms.txt"
# First lines: expect "# Site name", not HTML
curl -s "$SITE/llms.txt" | head -n 3
# A client that is not a browser gets the same answer
curl -sS -A 'llms-txt-check/1.0' -o /dev/null -w '%{http_code}\n' "$SITE/llms.txt"
# Response headers of one linked Markdown file
curl -sSI "$SITE/pricing.md" | grep -i -E '^(HTTP|content-type|cache-control)'

The full checklist has ten points, listed below and in the kit’s checklist.md. The first six can be checked with a command. The four above cover delivery, and checklist.md has the commands for the other two.
- Served.
/llms.txtreturns HTTP 200 on the host it describes, astext/plainortext/markdownwithcharset=utf-8. - Not a fallback page. The body starts with
#and is not HTML. - Reachable by clients that are not browsers. A request with a plain user agent gets the same response, and no bot rule answers it with a challenge page.
- Not blocked.
robots.txtdoes not disallow the path, and the crawlers you want to reach are not disallowed from the site. - Links. Every link returns 200. No URL appears twice.
- Readable targets. Links point to Markdown or plain text where a version exists, and those are served with a text content type.
- Structure. One H1 first, a summary in a blockquote, then H2 sections that each hold a list of
[name](url): noteitems. - Names and coverage. Link text is a page name a reader would recognize. The list contains the pages you want read and none that are
noindex, private or stale. - Ownership. The file is produced by the build, or it has a named owner and a review date.
- Size. The index is small enough to read in one request, and you know the size of any full-text file in bytes.
How do you check llms.txt with a script?
check-llms-txt.mjs runs the delivery, structure and link checks in one command and exits with a non-zero status when it finds an error. It needs Node.js 22 or later and has no dependencies.
node check-llms-txt.mjs llms.txt # a local file: structure checks only, no network
node check-llms-txt.mjs https://example.com/llms.txt # a live file: delivery, structure and links
Each finding has a level, a check ID and the lines it applies to:
| Checks | What they cover | Basis |
|---|---|---|
| D1 to D7 | Delivery: status, redirects, content type, charset, an HTML body, size, robots.txt | HTTP and RFC 9309 |
| S1 to S9 | Structure: the H1, the summary, heading depth, list items, notes, duplicates, link text | The proposal, plus three editorial checks |
| L1 to L4 | Links: every link returns 200 and Markdown links are served as text | HTTP |
| X1 to X3 | Neighbours: llms-full.txt, the sitemap’s URL count, the two link relations from version 2 | Reported as information |
An error means the file is not delivered, is not Markdown, lacks the H1, or links to something that does not load. A warning is a deviation from the proposed format or a likely mistake. The kit’s README.md lists every check with its level.
Work in a loop: run the script, read the findings, change one thing, run it again. The kit has a first draft with seven typical mistakes to practise on:
Welcome to Northwind Bikes
## Help pages
- Returns and exchanges
- [Shipping and delivery](https://northwind-bikes.example.com/help/shipping.md)
- [Shipping again](https://northwind-bikes.example.com/help/shipping.md)
- [Warranty](/help/warranty.md) - what the warranties cover
### Sizing

| Finding | Line | The fix |
|---|---|---|
| S1: first non-blank line is not an H1 | 1 | Start the file with # Northwind Bikes |
| S2: no blockquote summary | 1 | Add a line that starts with > and says what the site is |
| S4: list item has no link | 5 | Turn Returns and exchanges into [Returns and exchanges](url) |
| S7: duplicate URL | 7 | Remove the second link to the shipping page |
| S4: text after the link is not a note | 8 | Replace - what the warranties cover with : What the warranties cover |
| S6: URL is not absolute | 8 | Write the full https:// address |
| S3: heading deeper than H2 | 10 | Make it an H2 with a list, or remove it |
The script also catches the case that a plain status check misses. Many sites answer every unknown path with a page, and some do it with status 200. Given such a response, the script reports Content-Type is text/html and body is HTML, not Markdown and fails.
Copy the complete validation script
#!/usr/bin/env node
// check-llms-txt.mjs 1.0: checks one llms.txt file. Node.js 22 or later, no dependencies.
//
// node check-llms-txt.mjs https://example.com/llms.txt delivery, structure and link checks
// node check-llms-txt.mjs ./llms.txt structure checks only, no network
//
// Options: --strict (warnings fail too), --json, --no-links, --max-links=500
// Exit status: 0 no errors, 1 errors (or warnings with --strict), 2 usage error.
//
// Structure rules follow the llms.txt proposal, v2 (https://llmstxt.org/). Checks marked
// "editorial" in the README are this script's own opinion and are never errors.
import { readFile } from 'node:fs/promises';
const USER_AGENT = 'check-llms-txt/1.0 (+https://quickchat.ai/post/llms-txt-explained)';
const AI_TOKENS = ['GPTBot', 'OAI-SearchBot', 'ChatGPT-User', 'ClaudeBot', 'Claude-User', 'Claude-SearchBot', 'PerplexityBot', 'Perplexity-User', 'Google-Extended', 'Applebot-Extended', 'CCBot'];
const INDEX_WARN_BYTES = 100_000;
const TIMEOUT_MS = 10_000;
const CONCURRENCY = 5;
const args = process.argv.slice(2);
const target = args.find((a) => !a.startsWith('--'));
const flag = (name) => args.includes(`--${name}`);
const maxLinks = Number((args.find((a) => a.startsWith('--max-links=')) ?? '=500').split('=')[1]);
if (!target || !Number.isInteger(maxLinks) || maxLinks < 0) {
console.error('usage: node check-llms-txt.mjs <https-url-or-path> [--strict] [--json] [--no-links] [--max-links=500]');
process.exit(2);
}
const findings = [];
let sitemapUrl = null; // the first Sitemap line in robots.txt, when there is one
const add = (level, id, message, line) => findings.push({ level, id, message, line });
const isUrl = /^https?:\/\//i.test(target);
const number = (n) => n.toLocaleString('en-US');
async function request(url, { method = 'GET', redirect = 'follow', maxBytes = 5_000_000, timeout = TIMEOUT_MS } = {}) {
const response = await fetch(url, { method, redirect, headers: { 'user-agent': USER_AGENT, accept: 'text/markdown, text/plain, */*' }, signal: AbortSignal.timeout(timeout) });
const chunks = [];
let size = 0;
let truncated = false;
if (method !== 'HEAD' && response.body) {
for await (const chunk of response.body) {
size += chunk.length;
if (size <= maxBytes) chunks.push(chunk);
else truncated = true;
}
}
return { status: response.status, headers: response.headers, body: Buffer.concat(chunks), size, truncated, url: response.url };
}
const tryRequest = (url, options) => request(url, options).catch((error) => ({ failed: error.name === 'TimeoutError' ? 'timed out' : error.cause?.code ?? error.message }));
const mediaType = (headers) => (headers.get('content-type') ?? '').split(';')[0].trim().toLowerCase();
const looksLikeHtml = (text) => /^\s*<(!doctype html|html)\b/i.test(text);
// ---- Delivery (URL mode only): D1 to D7 ----
let text;
let fileUrl = null;
if (isUrl) {
let url = target;
let response;
let hops = 0;
for (;;) {
response = await tryRequest(url, { redirect: 'manual' });
if (response.failed || response.status < 300 || response.status > 399 || !response.headers.get('location')) break;
if (++hops > 3) break;
url = new URL(response.headers.get('location'), url).href;
}
if (response.failed) {
add('error', 'D1', `request failed: ${response.failed}`);
} else if (hops > 3) {
add('error', 'D1', 'more than three redirects');
} else if (response.status !== 200) {
add('error', 'D1', `HTTP ${response.status}${hops ? ` after ${hops} redirect(s), at ${url}` : ''}`);
} else {
fileUrl = new URL(url);
if (hops) add(fileUrl.host === new URL(target).host ? 'info' : 'warn', 'D1', `redirected ${hops} time(s) to ${url}`);
const type = mediaType(response.headers);
const charset = /charset=([^;\s]+)/i.exec(response.headers.get('content-type') ?? '')?.[1]?.replace(/"/g, '').toLowerCase();
if (type === 'text/html') add('error', 'D2', 'Content-Type is text/html');
else if (type !== 'text/plain' && type !== 'text/markdown') add('warn', 'D2', `Content-Type is ${type || 'missing'}, expected text/plain or text/markdown`);
if (type !== 'text/html' && charset !== 'utf-8') add('warn', 'D2', charset ? `charset is ${charset}, expected utf-8` : 'Content-Type has no charset, add charset=utf-8');
try {
text = new TextDecoder('utf-8', { fatal: true, ignoreBOM: true }).decode(response.body);
} catch {
add('warn', 'D4', 'body is not valid UTF-8');
text = new TextDecoder('utf-8', { ignoreBOM: true }).decode(response.body);
}
const bytes = response.size;
const large = bytes > INDEX_WARN_BYTES && type !== 'text/html';
add(large ? 'warn' : 'info', 'D5', `${number(bytes)} bytes, about ${number(Math.round(bytes / 4))} tokens${large ? ' (editorial: over 100,000 bytes is large for an index)' : ''}`);
const shown = ['cache-control', 'content-encoding', 'last-modified', 'etag', 'x-robots-tag'].filter((h) => response.headers.get(h)).map((h) => `${h}: ${response.headers.get(h)}`);
add('info', 'D7', `${type || 'no content type'}${charset ? `; charset=${charset}` : ''}${shown.length ? ` | ${shown.join(' | ')}` : ''}`);
await checkRobots(fileUrl);
}
} else {
text = await readFile(target, 'utf8').catch(() => null);
if (text === null) {
console.error(`cannot read ${target}`);
process.exit(2);
}
}
// RFC 9309: the most specific matching rule wins, and Allow wins a tie.
function robotsVerdict(robots, agent, path) {
const groups = [];
let current = null;
let lastWasAgent = false;
for (const raw of robots.split(/\r?\n/)) {
const match = /^\s*(user-agent|allow|disallow)\s*:\s*(.*?)\s*(?:#.*)?$/i.exec(raw);
if (!match) continue;
const key = match[1].toLowerCase();
const value = match[2];
if (key === 'user-agent') {
if (!lastWasAgent) groups.push((current = { agents: [], rules: [] }));
current.agents.push(value.toLowerCase());
lastWasAgent = true;
} else if (current) {
current.rules.push({ allow: key === 'allow', pattern: value });
lastWasAgent = false;
}
}
const mine = groups.filter((g) => g.agents.includes(agent.toLowerCase()));
const rules = (mine.length ? mine : groups.filter((g) => g.agents.includes('*'))).flatMap((g) => g.rules);
let best = null;
for (const rule of rules) {
if (rule.pattern === '') continue;
const source = rule.pattern.replace(/[.+?^${}()|[\]\\]/g, '\\$&').replace(/\*/g, '.*').replace(/\\\$$/, '$');
if (!new RegExp(`^${source}`).test(path)) continue;
if (!best || rule.pattern.length > best.pattern.length || (rule.pattern.length === best.pattern.length && rule.allow)) best = rule;
}
return { blocked: Boolean(best && !best.allow), named: mine.length > 0 };
}
async function checkRobots(url) {
const robots = await tryRequest(new URL('/robots.txt', url).href);
if (robots.failed || robots.status !== 200) return add('info', 'D6', `no robots.txt on ${url.host} (${robots.failed ?? `HTTP ${robots.status}`})`);
const body = new TextDecoder().decode(robots.body);
if (looksLikeHtml(body)) return add('info', 'D6', 'robots.txt returns an HTML page');
sitemapUrl = /^\s*sitemap\s*:\s*(\S+)/im.exec(body)?.[1] ?? null;
if (robotsVerdict(body, '*', url.pathname).blocked) add('warn', 'D6', `robots.txt disallows ${url.pathname} for every crawler`);
const blocked = AI_TOKENS.filter((token) => { const v = robotsVerdict(body, token, '/'); return v.named && v.blocked; });
add('info', 'D6', blocked.length ? `robots.txt disallows the whole site for: ${blocked.join(', ')}` : 'robots.txt allows the file and blocks none of the AI crawler tokens this script knows');
}
// ---- Structure (both modes): D3, D4, S1 to S9 ----
const sections = [];
const links = [];
if (text !== undefined) {
const BOM = String.fromCharCode(0xfeff);
if (text.startsWith(BOM)) add('info', 'D4', 'file starts with a byte order mark, which the proposal allows', 1);
if (looksLikeHtml(text)) add('error', 'D3', 'body is HTML, not Markdown', 1);
const firstSeen = new Map();
const h1 = [];
let first = null;
let quote = null;
let section = null;
let fenced = false;
(text.startsWith(BOM) ? text.slice(1) : text).split(/\r?\n/).forEach((raw, index) => {
const n = index + 1;
const line = raw.trimEnd();
if (/^\s*(```|~~~)/.test(line)) { fenced = !fenced; return; }
if (fenced || line.trim() === '') return;
first ??= { n, line };
const heading = /^(#{1,6})\s+(.+)$/.exec(line);
if (heading) {
const depth = heading[1].length;
if (depth === 1) h1.push(n);
else if (depth === 2) sections.push((section = { name: heading[2].trim(), line: n, items: 0 }));
else add('warn', 'S3', 'heading deeper than H2', n);
return;
}
if (quote === null && /^>\s?\S/.test(line)) quote = n;
const item = /^\s*[-*+]\s+(.*)$/.exec(line);
if (!item) return;
if (section) section.items += 1;
const link = /^\[([^\]]*)\]\(([^)\s]+)\)(.*)$/.exec(item[1]);
if (!link) {
if (section) add('warn', 'S4', 'list item in an H2 section has no [name](url) link', n);
return;
}
const [, label, url, rest] = link;
const hasNotes = /^:\s*\S/.test(rest);
links.push({ url, hasNotes, line: n });
if (rest.trim() !== '' && !hasNotes) add('warn', 'S4', 'text after the link is not in the ": notes" form', n);
if (!section) add('warn', 'S5', 'link is outside any H2 section', n);
if (!/^https:\/\//i.test(url)) add('warn', 'S6', 'URL is not an absolute https URL', n);
if (firstSeen.has(url)) add('warn', 'S7', 'duplicate URL', n); else firstSeen.set(url, n);
const name = label.trim();
if (name === '' || name === url || /^\/\S*$/.test(name) || /^https?:\/\//i.test(name)) add('warn', 'S8', 'link text is a path or URL, not a name (editorial)', n);
});
if (!first || !/^#\s+\S/.test(first.line)) add('error', 'S1', 'first non-blank line is not an H1', first ? first.n : 1);
if (h1.length > 1) add('error', 'S1', 'more than one H1', h1[1]);
if (quote === null || (sections.length > 0 && quote > sections[0].line)) add('warn', 'S2', 'no blockquote summary between the H1 and the first H2', h1[0] ?? 1);
for (const s of sections) if (s.items === 0) add('warn', 'S4', 'H2 section has no list', s.line);
const optional = sections.filter((s) => s.name.toLowerCase() === 'optional');
if (optional.length > 1) add('warn', 'S9', 'more than one Optional section', optional[1].line);
if (optional.length === 1 && sections.at(-1) !== optional[0]) add('info', 'S9', 'Optional is not the last section', optional[0].line);
}
// ---- Links and neighbours (URL mode only): L1 to L4, X1 to X3 ----
async function pool(items, worker) {
const queue = [...items];
await Promise.all(Array.from({ length: CONCURRENCY }, async () => { while (queue.length) await worker(queue.shift()); }));
}
const notAFile = findings.some((f) => f.level === 'error' && (f.id === 'D2' || f.id === 'D3'));
if (fileUrl && text !== undefined && !notAFile) {
const unique = [...new Map(links.map((l) => [new URL(l.url, fileUrl).href, l.line])).entries()];
const sameHost = unique.filter(([href]) => new URL(href).host === fileUrl.host);
add('info', 'L3', `${number(unique.length - sameHost.length)} of ${number(unique.length)} links point to other hosts`);
if (!flag('no-links') && unique.length) {
const checked = unique.slice(0, maxLinks);
let markdown = 0;
await pool(checked, async ([href, line]) => {
let response = await tryRequest(href, { method: 'HEAD' });
if (response.failed || response.status !== 200 || !response.headers.get('content-type')) response = await tryRequest(href);
if (response.failed) return add('error', 'L1', `link failed (${response.failed}): ${href}`, line);
if (response.status !== 200) return add('error', 'L1', `link returns HTTP ${response.status}: ${href}`, line);
const type = mediaType(response.headers);
const isText = type === 'text/markdown' || type === 'text/plain';
if (isText) markdown += 1;
if (/\.(md|mdx|txt)$/i.test(new URL(href).pathname) && !isText) add('warn', 'L2', `link ends in .md or .txt but is served as ${type || 'an unknown type'}: ${href}`, line);
});
add('info', 'L4', `${number(markdown)} of ${number(checked.length)} checked links return Markdown or plain text${unique.length > checked.length ? ` (stopped after ${number(maxLinks)} links)` : ''}`);
}
const full = await tryRequest(new URL('llms-full.txt', fileUrl).href, { maxBytes: 4096, timeout: 60_000 });
if (!full.failed && full.status === 200 && !looksLikeHtml(new TextDecoder().decode(full.body))) add('info', 'X1', `llms-full.txt exists beside the index: ${mediaType(full.headers)}, ${number(full.size)} bytes, about ${number(Math.round(full.size / 4))} tokens`);
else add('info', 'X1', 'no llms-full.txt beside the index');
const big = { maxBytes: 60_000_000, timeout: 30_000 };
const sitemap = await tryRequest(sitemapUrl ?? new URL('/sitemap.xml', fileUrl).href, big);
if (!sitemap.failed && sitemap.status === 200) {
const locs = (xml) => [...xml.matchAll(/<loc>\s*([^<\s]+)\s*<\/loc>/g)].map((m) => m[1]);
const xml = new TextDecoder().decode(sitemap.body);
let urls = locs(xml).length;
let note = '';
if (/<sitemapindex/i.test(xml)) {
const children = locs(xml);
urls = 0;
await pool(children.slice(0, 20), async (child) => {
const part = await tryRequest(child, big);
if (!part.failed && part.status === 200) urls += locs(new TextDecoder().decode(part.body)).length;
});
note = ` in ${number(Math.min(children.length, 20))} of ${number(children.length)} child sitemap(s)`;
}
add('info', 'X2', `the sitemap lists ${number(urls)} URLs${note}; the file lists ${number(unique.length)} links`);
}
const home = await tryRequest(new URL('.', fileUrl).href);
if (!home.failed && home.status === 200) {
const html = new TextDecoder().decode(home.body);
const tags = html.match(/<link\b[^>]*>/gi) ?? [];
const header = home.headers.get('link') ?? '';
const describedBy = /rel="?describedby"?/i.test(header) || tags.some((t) => /rel=["']?describedby/i.test(t) && /llms\.txt/i.test(t));
const alternate = /type="?text\/markdown/i.test(header) || tags.some((t) => /rel=["']?alternate/i.test(t) && /text\/markdown/i.test(t));
add('info', 'X3', `${new URL('.', fileUrl).pathname} ${describedBy ? 'advertises' : 'does not advertise'} the file with rel="describedby" and ${alternate ? 'links' : 'does not link'} a Markdown version of itself with rel="alternate"`);
}
}
// ---- Report ----
const count = (level) => findings.filter((f) => f.level === level).length;
const summary = { sections: sections.length, links: links.length, linksWithNotes: links.filter((l) => l.hasNotes).length, errors: count('error'), warnings: count('warn') };
const failed = summary.errors > 0 || (flag('strict') && summary.warnings > 0);
const out = [];
if (flag('json')) {
out.push(JSON.stringify({ target, summary, findings }, null, 2));
} else {
const groups = new Map();
for (const f of findings) {
const key = `${f.level}\t${f.id}\t${/^link (failed|returns|ends)/.test(f.message) ? f.message.replace(/: \S+$/, '') : f.message}`;
groups.set(key, [...(groups.get(key) ?? []), f]);
}
const order = { error: 0, warn: 1, info: 2 };
const family = { D: 0, S: 1, L: 2, X: 3 };
const rank = (key) => { const [level, id] = key.split('\t'); return order[level] * 1000 + family[id[0]] * 100 + Number(id.slice(1)); };
for (const [key, group] of [...groups].sort((a, b) => rank(a[0]) - rank(b[0]))) {
const [level, id, message] = key.split('\t');
const lines = group.map((f) => f.line).filter((n) => n !== undefined).sort((a, b) => a - b);
const where = lines.length ? ` (${lines.length === 1 ? 'line' : 'lines'} ${lines.slice(0, 3).join(', ')}${lines.length > 3 ? `, and ${number(lines.length - 3)} more` : ''})` : '';
out.push(`${level.toUpperCase().padEnd(5)} ${id.padEnd(3)} ${message}${where}`);
if (id.startsWith('L') && level !== 'info') for (const f of group.slice(0, 5)) out.push(` ${f.message.split(': ').at(-1)}`);
}
out.push(`Sections: ${summary.sections}. Links: ${number(summary.links)} (${number(summary.linksWithNotes)} with notes). Errors: ${summary.errors}. Warnings: ${number(summary.warnings)}.`);
out.push(failed ? 'FAIL' : summary.warnings ? 'PASS with warnings' : 'PASS');
}
// Exit only after the report is flushed, so piped output is never cut short.
process.stdout.write(`${out.join('\n')}\n`, () => process.exit(failed ? 1 : 0));
Is there an llms.txt validator in Chrome?
Chrome’s Lighthouse has an experimental llms.txt audit, and it checks one thing: whether the server returns an error for the file. According to its documentation, Lighthouse flags a page when retrieving the file causes a server error, and it marks the audit Not Applicable when the file does not exist, “as providing the file is optional at the moment”. It does not check the structure or the links. The audit is part of the Agentic Browsing category, which needs Chrome 150 or later.
How do you keep llms.txt valid on every deploy?
Run the check in your build pipeline, so that a missing page, a dead link or a wrong content type stops the deploy. The script’s exit status makes that one line. With --strict, warnings fail the run as well:
node check-llms-txt.mjs https://staging.example.com/llms.txt --strict
Step 4: Do AI assistants and crawlers read llms.txt?
In our probes on 24 November 2026, assistants read the file only when we told them to, and only those with a tool for opening a URL could. Separately, between 13 October and 23 November 2026, 13 questions reached our support agent through a line that only our llms files carried, three of them from requests that identified themselves as Claude.
What followed a link that existed only in our llms files?
During a pilot that ended on 23 November 2026, quickchat.ai/llms.txt and quickchat.ai/docs/llms.txt each carried an Ask line: a link to a page where our own support agent answers questions. The line read “Ask Quickchat AI a question:”, followed by an address that ended in ?q=your+question. The address carried a label that said which file it came from, and no HTML page used that label. A request with the label had therefore read one of our llms files, or had been handed the link by something that did.
Between 13 October and 23 November 2026, 13 questions were answered through those lines: 8 through the documentation index and 5 through the marketing site’s files.
- 3 identified themselves as Claude. Their user agent included
Claude-User/1.0; +claude-user@anthropic.com, the name Anthropic documents for requests that a user triggers. The first, on 26 October, came through the marketing site’s line and asked “What is Quickchat AI?”. The other two came through the documentation index on 7 November, and in both Claude replaced theyour+questionplaceholder with its own words: “webhook when conversation ends transcript” and “pre-chat screen required fields email phone”. - 4 came from
curland 6 from our own labelled test tools. - 8 more requests opened the link without a question, so no answer was generated. Four came from crawlers and tools (OraBot, CrawlCheck, AgentDrivesAgent and one that declared GoogleOther), and four declared a generic desktop browser.
- None declared ChatGPT-User, Perplexity-User, GPTBot, ClaudeBot or Googlebot.

The two questions of 7 November read like search queries that an assistant writes, not like something a person types. We cannot see the conversation on Claude’s side, and the identity is declared by the request and was not verified. Three questions show that the path works. They do not show that assistants read llms.txt in general.

On 23 November those lines were retired with the pilot address. Since 28 November both files carry an Ask line for our support agent again, as described below.
These counts cover only requests that followed one link, not requests for the files themselves, which a CDN serves. The log commands below take that measurement on your own site.
How do you check your own logs?
Count the requests for the file per declared user agent in your own access log, next to the same agents’ requests for ordinary pages. For an nginx or Apache log in the combined format, this one line lists who asked for an llms file:
awk -F'"' '$2 ~ /^GET \/(docs\/)?llms(-full|-small)?\.txt([? ]|$)/ {print $6}' access.log | sort | uniq -c | sort -rn | head -30
The kit’s who-requests-llms.sh prints a table per agent, with the llms files, Markdown versions, ordinary pages and robots.txt side by side. Try it on the sample log first:
sh who-requests-llms.sh sample-access.log
declared agent llms markdown pages robots
other 6 0 15 0
GPTBot 2 0 5 2
bingbot 1 0 3 0
ChatGPT-User 1 1 2 0
PerplexityBot 1 2 2 0
Claude-User 1 0 1 0
Googlebot 0 0 5 4
OAI-SearchBot 0 0 4 1
ClaudeBot 0 0 2 2
Perplexity-User 0 0 1 0
The sample log is made up, so these counts mean nothing. Run the script on your own log and read three things from the result: which agents request the file at all, whether the same agents also request the Markdown versions it links to, and how both compare with their requests for ordinary pages.
Keep four limits in mind. A user agent is a claim, so compare the client’s address with the ranges each vendor publishes before you trust a name. A response served from a CDN cache never reaches the origin’s log. A request is not proof that an answer used the file. And content that a provider stored earlier produces no new request, as the old copy in our Perplexity probe below shows.
What do assistants do when you ask them to use the file?
In our probes on 24 November 2026, ChatGPT (API and search interface) and Gemini’s interface read the file when given its address. No assistant used it without being asked. We sent three prompts to ChatGPT, Claude, Gemini and Perplexity:
Prompt 1: Using the live website quickchat.ai, summarize the plans on its pricing page.
Prompt 2: Fetch https://quickchat.ai/llms.txt and list the first five links in it.
Prompt 3: Check whether quickchat.ai publishes an llms.txt file. If it does, use it to find the pricing page and summarize that page.
Read the Prompt 1 results first. No assistant used the file when the prompt did not mention it.

- Without being asked, no assistant used the file. For the first prompt, every assistant that answered went to the HTML pricing page or to search results. One Perplexity run also listed a Markdown version of one of our documentation pages among its sources.
- Given the address, assistants with a fetch tool read it. ChatGPT returned the live file’s first five links in all three runs, and Gemini’s interface did too. The Claude setup we used had a search tool and no tool for opening a URL, so it could not. Gemini through its API with search grounding answered twice that no llms.txt exists at that address. That is wrong. The file was not among its search results.
- One answer came from an old copy. A Perplexity run listed five links with
about-us.mdin second place. We removed that page on 17 November, seven days earlier, so the list came from a stored copy of the file and not from a request at answer time. - One assistant completed the path the proposal describes. Asked to find the file and use it, ChatGPT’s search interface opened llms.txt, found the entry for
/pricing.mdand summarized the Markdown page. One Perplexity run cited the file’s/pricing.mdentry but summarized the HTML page. The other assistants used search or could not open the file.
These are 30 answers on one day, collected through DataForSEO. The API rows used gpt-6.1-terra, claude-sonnet-5-5, gemini-3.8-flash and sonar with web search on. The interface rows are the consumer products without sign-in. An API answer is not the consumer product, and tool access differs between the two, as the Claude row shows.
How does an agent with a fetch tool use llms.txt?
On 28 November 2026 a Claude agent with the standard fetch tool, the client Claude Code uses, went from our documentation index to one listed file and then to the page with the answer: 3 fetches in 23 seconds. It needed one fact: how to make the website widget open automatically when the page loads. It was told to start from https://quickchat.ai/docs/llms.txt and to use no address it had not found in a file it fetched. The index carried no Ask line at the time.
| Fetch | What it read | Why |
|---|---|---|
| 1 | /docs/llms.txt, the index | The starting point. The agent read it in one go |
| 2 | The Channels file listed in the index | Its note, “Deploy the AI Agent across API, website widget, messaging apps, and helpdesk integrations”, made it the obvious next file |
| 3 | /docs/channels/website, linked from that file | It held the answer: switch on Auto-open Widget under Channels → Your Website → Appearance → Other Settings |
One run is an illustration, not a measurement. It supports two pieces of advice this guide already gives. Give every link a one-line note, because the agent chose its next file by the note. And prefer links to individual pages over one very large combined file, so that the next fetch is the page that answers. Asked whether a line for asking a question directly would have helped, the agent answered “Probably yes”.
What do AI vendors document about llms.txt?
None of the crawler documentation we checked says that a crawler or an assistant requests llms.txt. We read each vendor’s page on 24 November 2026.
| Vendor | User agent tokens | Documented role | What that documentation says about llms.txt |
|---|---|---|---|
| OpenAI | GPTBot, OAI-SearchBot, ChatGPT-User, OAI-AdsBot | Training crawl, search index, fetches a user triggers, checks of ad landing pages | Nothing. Its developer documentation publishes an llms.txt |
| Anthropic | ClaudeBot, Claude-User, Claude-SearchBot | Training crawl, fetches a user triggers, search index | Nothing. Its developer documentation publishes an llms.txt |
| Perplexity | PerplexityBot, Perplexity-User | Search index, fetches a user triggers | Nothing. Its documentation publishes an llms.txt and points agents to it |
Googlebot, GoogleOther, Google-Agent, Google-GeminiNotebook | Search crawl, general crawl, agents acting on a user’s request, sources a user adds to a notebook | Google Search ignores the file, as the next section shows | |
| Apple | Applebot | Search crawl whose data may also be used for training | Nothing |
Google-Extended and Applebot-Extended, which appear in many robots.txt files, are names that publishers disallow to opt out of AI training, and neither has a user agent of its own. Neither will show up in your logs.
What does Google say about llms.txt?
Google Search says it ignores llms.txt, and Chrome’s Lighthouse audits for it. Google’s guide to optimizing for generative AI lists the file under things you can ignore for Google Search: creating one “will neither harm nor help your site’s visibility or rankings in Google Search, as Google Search ignores them”. The same paragraph says it is fine to maintain the file for other services that use it.

The two statements are about different products. One concerns ranking in Google Search. The other concerns agents that navigate a site on someone’s behalf, which is the use the proposal describes.
What does the largest public study say?
An Ahrefs study of 137,000 sites, published on 15 June 2026, found an llms.txt file on 28 percent of them, and 97 percent of those files received no requests at all in May 2026. Of the requests that did reach a file, 96 percent came from bots, 19.5 percent from named AI tools and 12 percent from tools that study llms.txt, such as checkers.
Should you add llms.txt to your website?
Add llms.txt when it can be generated from pages you already publish, and decide whether to keep investing in it from your own request logs.
| Situation | Suggested action | Basis |
|---|---|---|
| Documentation site on a framework or platform with llms.txt support | Switch it on and let the build produce the files | 9 of 10 AI developer documentation sites in our survey publish one |
| Marketing site with a build step | Generate Markdown versions and the index in the build, and add a check | What quickchat.ai does |
| Site edited by hand or in a CMS without a build | Publish a short index only if someone owns its upkeep | Stale links fail the checklist |
Site whose robots.txt blocks AI crawlers | Decide the access policy first | Clients that robots.txt blocks will not read the file |
| Any site | Check the logs after a month, then keep, simplify or remove the file | Step 4 |
Google says the file has no effect in Google Search, and none of the vendor documentation above promises citations. Visibility in AI answers is a wider subject, which our post on generative search optimization covers. Our guide on how to get cited by ChatGPT shows how to check that your help pages answer the questions buyers ask.
What else can a website offer AI assistants?
Besides static files such as llms.txt, a website can offer a page where assistants ask its AI Agent a question, and a tool registered in the browser. Quickchat AI has both built in as AI assistant access: on the AI assistants card (Channels → Your Website → Install, under What’s ChatGPT telling your customers?), choose Visitors + AI assistants or AI assistants only. With no code, your Agent gets a public answer page, and the widget adds two hidden links and registers a WebMCP tool. The card also hands you the line for your llms.txt.

What is an Ask line in llms.txt?
An Ask line is a list item in llms.txt that links to a page where your AI Agent answers questions, with a placeholder where the question goes. An agent that reads the index can then ask one question instead of reading more files. For a Quickchat AI Agent, the line looks like this:
- [Ask Northwind Bikes](https://app.quickchat.ai/ask/AGENT_ID/?q=YOUR_QUESTION&source=llms): Ask our AI agent about our products, services and policies. Replace YOUR_QUESTION with your URL-encoded question. Answers come with source links.
On the AI assistants card, open Help AI assistants find you and copy Line for your llms.txt. Put it inside an H2 section, for example under ## Help pages in the Step 1 example. The script then prints Sections: 3. Links: 7 (7 with notes). Errors: 0. Warnings: 0. and PASS.
Since 28 November 2026 both of our llms files carry such a line for our support agent: quickchat.ai/docs/llms.txt as a sentence under its description and as a link under ## Optional, and quickchat.ai/llms.txt as a link right after the documentation index link.
How does a page an assistant can ask work?
The answer page answers one question per request from the Agent’s Knowledge Base. A question in the q parameter returns one answer as HTML, Markdown or JSON with its sources, usually in 5 to 15 seconds, and becomes a conversation in your Inbox, labelled AI assistant or with the assistant’s name, such as Claude, when the request declares one. Agents with their own HTTP client, such as Claude Code or Codex with network access, ask it directly. Requests that identified themselves as Claude followed our docs Ask line on 7 November. ChatGPT’s search cites your public pages, and when pointed at the answer page it hands the person a link to ask your Agent, as it did in 3 of 4 runs on 28 November. Chat products fetch an address on their own only when it is public and already known, a safety rule OpenAI publishes, so their search does not send the question. The AI assistant access guide has the setup steps and the answer API reference the request formats.

Are the hidden links an llms.txt file, and can a site use all three?
No. They are two <link> elements with the relations service-doc and service-desc, separate from llms.txt, and a site can publish all three without conflict. RFC 8631 defines both relations: service-doc points to documentation of a service, and service-desc to a description meant for software. The first link below leads to the answer page, and the second to a JSON description of how to send a question:
<link rel="service-doc" href="https://app.quickchat.ai/ask/qj6hw2tua6/" type="text/html">
<link rel="service-desc" href="https://app.quickchat.ai/ask/qj6hw2tua6/schema/" type="application/json">
How is WebMCP different from llms.txt?
WebMCP is a proposed browser API with which a page registers tools for an AI agent in the browser, while llms.txt is a file that a client fetches. The WebMCP tool that the Quickchat AI widget registers in browsers that support WebMCP sends a question to the answer page. Our guide on how to add WebMCP to your website walks through it and shows the tool in Chrome DevTools.
Whichever route an assistant takes, it receives text written by a third party, and an assistant that follows instructions found in that text can be manipulated. Our post on prompt injection in agentic browsers explains the risk.
There is a fourth route for assistants that a user has set up in advance: each Quickchat AI Agent can also be reached as an MCP server, which our guide on how to turn an AI Agent into an MCP server covers. To choose between that connector, the WebMCP tool and the answer page, see our guide to connecting your AI Agent to ChatGPT and Claude. For the difference between static files and callable tools in general, see APIs for AI agents, and for what an MCP server is, our MCP explainer.
Frequently asked questions
What is llms.txt?
llms.txt is a proposed convention for a Markdown file at the root of a website, /llms.txt, that gives AI agents a short summary of the site and a list of links to pages worth reading. Jeremy Howard published the proposal at llmstxt.org in September 2024 and revised it in August 2026. Each AI vendor and tool decides whether to request the file.
Is llms.txt the same as robots.txt?
No. robots.txt tells crawlers which URLs they may request. llms.txt neither grants nor denies access. It is a reading list written in Markdown. A site that wants to control AI crawlers does that in robots.txt, and it can publish both files.
Do ChatGPT, Claude, Gemini or Perplexity read llms.txt?
Some do when asked. In our probes on 24 November 2026, ChatGPT read the file every time it was given the address, and its search interface followed the file to a Markdown page. No assistant used the file without being asked. Separately, between 13 October and 23 November 2026, 13 questions reached our support agent through a line that only our llms files carried, 3 of them from requests that identified themselves as Claude. A request shows that a client fetched something. It does not show that an answer used it, so check your own logs.
Does llms.txt improve rankings in Google or citations in AI answers?
Google’s guidance says that creating llms.txt will neither harm nor help visibility or rankings in Google Search, because Google Search ignores the file. None of the crawler documentation we checked for OpenAI, Anthropic, Perplexity, Google and Apple promises that publishing the file leads to citations. Treat it as a convenience for clients that choose to fetch it.
How do I validate an llms.txt file?
Check four things. The URL returns HTTP 200 with a text content type and a body that is not HTML. The file starts with one H1 and follows the section structure of the proposal. Every listed link returns 200. The list matches the pages you mean to expose. The script in this guide runs the first three against a URL or a local file and exits with a non-zero status when it finds an error.
Is there an llms.txt validator or generator?
This guide includes a validation script and a checklist that you run yourself. It does not offer a hosted validator or generator. Chrome’s Lighthouse has an experimental audit that only checks whether the server returns an error for the file. For generation, documentation platforms such as Mintlify and plugins for Starlight, VitePress and Docusaurus build the file from your pages.
What is the difference between llms.txt and llms-full.txt?
llms.txt is an index with a summary and links. llms-full.txt is a convention of documentation tools for one file that contains the full text of the pages. It is not part of the proposal. In our survey, three full-text files held more than one million tokens, so know the size before pointing an agent at one.
Where should llms.txt live and what content type should it use?
Serve it at /llms.txt on the host it describes, as text/plain or text/markdown with charset=utf-8. The proposal also allows a file in a subpath such as /docs/llms.txt, which then covers the pages under that path. Check that a client that is not a browser gets HTTP 200 and Markdown, because a bot rule or a single-page app fallback can return an HTML page at the same URL.
How many websites have an llms.txt file?
In our survey of 60 well-known sites on 24 November 2026, 33 returned a text file at /llms.txt: 9 of 10 AI developer documentation sites, but only 2 of 10 AI company main sites and 1 of 10 consumer, commerce and media sites. An Ahrefs study of 137,000 sites published in June 2026 found a file on 28 percent of them.
Do I still need llms.txt if AI assistants can ask my Quickchat AI Agent?
They do different jobs, and they work together. llms.txt lists static pages for a client to read. Switching on AI assistant access gives your Agent a public answer page, two hidden links with the relations service-doc and service-desc, and a WebMCP tool in browsers that support WebMCP. The page answers one question per request from the Agent’s Knowledge Base and records it in the Inbox. The AI assistants card also gives you a line for your llms.txt, so that an agent reading the file can ask your Agent a question.
What is the difference between llms.txt, MCP and WebMCP?
llms.txt is a static file that a client may fetch. An MCP server exposes tools from a backend to an AI application that a user has connected. WebMCP is a proposed browser API with which a page registers tools for an AI agent running in the browser. The first publishes text, and the other two expose functions to call.