How to publish an llms.txt file

Publish the file as /llms.txt, then open that URL to verify it serves the Markdown you exported. A good file describes your site in a few lines and points readers to its most useful pages.

Choose the pages that matter

Scan a public HTTPS website in the generator to start with the homepage and up to 11 linked pages. You can also paste URLs or load a sitemap XML file. Select the pages you want, then use Read page details to fill in the titles and descriptions from the site.

Prioritize pages that answer common questions about your site, such as a quickstart, product information, and support documentation. Review the suggested sections and give each link a description that explains what readers will find there.

The v2 format starts with an H1 for the site name. You can follow it with a blockquote summary and H2 sections with lists of Markdown links. Use a page’s Markdown URL when that version is available.

Put the file on your site

Download llms.txt and put it in your site’s static files directory. For Astro, that is public/. Deploy it so it opens at https://your-domain.com/llms.txt. You can also publish a file under a section, such as /docs/llms.txt, to describe the pages under that path.

Point to the file that covers each page from the page’s HTML head.

<link rel="describedby" href="/llms.txt">

For pages with a published Markdown version, link to that version too. See the proposal’s discovery recommendations.

<link rel="alternate" type="text/markdown" href="/docs/quickstart.md">

Check the published URL

See this site’s llms.txt for a working example.

How it relates to Google Search

Google Search ignores llms.txt for search visibility and rankings, including its generative AI features. Use the file to provide an overview for tools and readers that choose to consult it. Google Search guidance.