llms.txt file at the root of your project that lists all available pages in your documentation. This file is always up to date and requires zero maintenance. You can optionally add a custom llms.txt file to the root of your project.
If your site requires authentication to access your documentation, your
llms.txt and llms-full.txt files are not available to LLMs and AI tools. LLMs and AI tools can only index publicly available content.llms.txt by appending /llms.txt to your documentation site’s URL.
Open the llms.txt for this site.
llms.txt structure
Anllms.txt file is a plain Markdown file that contains:
- Site title as an H1 heading.
- Structured content sections with links and a description of each page in your documentation.
- API specification links to your OpenAPI and AsyncAPI specs, if your documentation includes them.
llms.txt file lists your pages alphabetically in the order they appear in your repository, starting from the root directory.
Each page’s description comes from the description field in its frontmatter. For API reference pages, the description also includes the specification information from the openapi or api frontmatter field. Pages without a description field appear in the llms.txt file without a description.
Example llms.txt
llms-full.txt
Thellms-full.txt file combines your entire documentation site into a single file as context for AI tools and LLM indexing.
Mintlify automatically hosts an llms-full.txt file at the root of your project. View your llms-full.txt by appending /llms-full.txt to your documentation site’s URL.
Open the llms-full.txt for this site.
Custom files
To add a customllms.txt or llms-full.txt file, create an llms.txt or llms-full.txt file at the root of your project. Adding a custom file overrides the automatically generated file of the same name. If you delete a custom file, Mintlify restores the automatically generated file.
Your custom llms.txt or llms-full.txt file must have a site title as an H1 heading. Other content is optional. See Format in the llms.txt specification for more information on optional sections and best practices.