Guides

Updated Dec 6, 2026 · 4 min read

What is llms.txt, and do you need one?

llms.txt is a short markdown file that tells AI agents what your site is and where the useful pages are. What goes in it, who reads it, and how to make one in a minute.

llms.txt is a plain markdown file at the root of your site (yourdomain.com/llms.txt) that gives AI agents a short, curated map of what you do and which pages to read. It was proposed at llmstxt.org in 2024, in the same spirit as robots.txt and sitemap.xml.

What goes in it

The format is deliberately simple:

# Your product name

> One or two sentences that say what the product does and for whom.

## Main pages

- [Pricing](https://yourdomain.com/pricing): plans and what each includes
- [Features](https://yourdomain.com/features): what the product does

## Documentation

- [Getting started](https://yourdomain.com/docs/start): set up in ten minutes

## Optional

- [Privacy policy](https://yourdomain.com/privacy)
  • A single # heading with the name.
  • A > summary line.
  • ## sections with links, each with a short description after a colon.
  • An Optional section for pages an agent can skip when it is short on space.

Who reads it

Today mostly AI agents and coding tools that look for it on purpose, plus a growing number of assistants that fetch it when they explore a site. No major search engine has said it uses llms.txt for ranking or for choosing what to recommend, and Google has said it does not.

So treat it as a cheap courtesy to agents, not a ranking factor.

Do you need one?

You do not need one. But it takes a minute, it costs nothing, and it makes your own description of your product easy for any agent to find. If your site has documentation or an API, it is more useful still: agents that write code against your product read it.

Good practice

  • Write the summary the way you would want an assistant to describe you.
  • Put the pages that answer buying questions first: pricing, comparisons, features.
  • Keep descriptions short and factual. Avoid marketing superlatives; agents repeat what they read.
  • Serve it as text/plain and keep it under a few hundred lines.
  • Update it when you add an important page.