llms.txt
llms.txt is a proposed standard for a Markdown file at the root of a website that gives language models a short guide to its content.
llms.txt is a proposal for a plain-text file that helps language models use a website. The file sits at the root of the site, at /llms.txt, and is written in Markdown. It starts with the name of the site and a short summary. Sections of links follow, each pointing to a page with a brief note on what it covers.
Web pages are built for people and contain menus, scripts, and layout that a model does not need. This extra content uses tokens and makes the useful text harder to find. llms.txt gives a model a compact map of the site instead. Many sites that adopt it also serve a Markdown version of each page and a single file with all of their content, often named llms-full.txt.
The proposal appeared in 2024 and is common on documentation sites. Coding agents and assistants read these files to learn how to use a library or a service. An agent that writes code for a platform can load its llms.txt into its context before it starts. The code that the agent then writes often runs in a sandbox, where the agent tests it against the documented behavior.
Related terms