agentspeed.
← all articles
Learn

What is /llms.txt?

A markdown file at the root of your site that tells AI agents which pages are canonical.

3 min read·
IN PLAIN ENGLISH

If a person lands on your site, they look around and figure it out. An AI assistant cannot browse like that — it grabs a page or two and guesses. An llms.txt file is a short list you write once that says: here are the pages that actually explain us. It is plain text. You can write it in about ten minutes.

/llms.txt is a plain markdown file at the root of a website that tells AI agents which pages are canonical. The specification lives at llmstxt.org. The format is intentionally minimal: a title, an optional tagline and description, then a sequence of H2 sections containing markdown links. Agents like ChatGPT, Claude, and Perplexity request the file first when they want to understand what your site is about and which pages they should ground their answers in.

Why a separate file?

Two reasons. First, the content is curated. A sitemap lists every URL on a site, including pages that exist for SEO but aren’t the best citation. /llms.txt is a hand-picked subset: docs, pricing, support, policies, changelog. Second, the format is lossless for agents. Markdown is the lingua franca of LLM training data; an agent can parse a markdown link list with no ambiguity.

What goes in it?

A typical file has six sections, each with a few links:

Where does it live?

Apex of the domain: https://your-domain.com/llms.txt. Same place as /robots.txt and /sitemap.xml. If your CMS doesn’t allow files at the root, route a Cloudflare Worker (the Tools page has copyable snippets for Webflow, Shopify, WordPress, Next.js, and static sites).

Does it help SEO?

Indirectly. /llms.txt is read by AI agents, not by Google. But agents that ground answers in your linked pages cite your site more accurately, and that drives traffic. Sites without a file get summarised from the homepage, which usually means agents quote marketing copy instead of the docs you wrote.

/llms.txtThis is AgentSpeed's own file, trimmed. Yours can be shorter.
# Acme

> One sentence describing what your company does.

A short paragraph an assistant can quote when someone asks what you do.

## Docs

- [Quickstart](https://acme.com/docs/quickstart): Get running in five minutes.
- [API reference](https://acme.com/docs/api): Endpoints, auth, examples.

## Pricing

- [Plans](https://acme.com/pricing): What each tier costs and includes.

## Support

- [Contact](https://acme.com/contact): How to reach a human.
FAQ
Is /llms.txt the same as a sitemap?

No. sitemap.xml lists every URL for search-engine crawlers. /llms.txt is a curated index of citation-worthy pages for LLM agents, typically docs, pricing, support, policies, and changelog. They serve different audiences.

Does publishing /llms.txt help my SEO?

Indirectly. /llms.txt is read by AI agents (ChatGPT, Claude, Perplexity), not by Google. Agents that ground answers in your linked pages cite your site more accurately, which drives traffic.

Where do I host /llms.txt?

At the apex of your domain: https://your-domain.com/llms.txt. The Tools page has copyable publish snippets for Next.js, Webflow, WordPress, Shopify, and static sites.

See also
Verify on your site

Run a free AgentSpeed scan to see how your site scores across the live rubric: discoverability, readability, structured data, actionability, performance.

Run a scan →Browse all fixes →
What is /llms.txt? · AgentSpeed