What is llms.txt?
An llms.txt file is a plain Markdown file that sums up a website for AI agents and points them to the pages that hold the detail. Jeremy Howard published the proposal at llmstxt.org on September 3, 2024. It proposes "adding a /llms.txt markdown file to websites to provide LLM-friendly content" that "offers brief background information, guidance, and links to detailed markdown files."
The reason is cost and noise. In the proposal's words, "An HTML page wraps its information in navigation, ads, and JavaScript, and converting it back into clean text is difficult and imprecise," and "every wasted token costs time and money." A short file with the key facts and a list of clean links lets an agent skip that work.
The proposal also says how the file gets read: "Agents are expected to view or search llms.txt to find the information they need, then follow the relevant links." The file stays small: "The detail lives behind the links, and is fetched only when needed." This is the same just-in-time idea we covered in context engineering for AI agents.
What changed in llms.txt v2?
Version 2, published in August 2026, keeps the file format and adds rules for finding and scoping files. The changes page lists the main updates:
- Discovery. A page can point to its Markdown version with
rel="alternate" type="text/markdown"and to the llms.txt that covers it withrel="describedby", as an HTML<link>or an HTTPLink:header. - Two Markdown URL forms. Both
page.html.mdandpage.mdare allowed. - Subpaths have a meaning. In the changes page's words, "a file covers the pages under its path, and the most specific file applies."
- The Optional section is just a convention now. v1 tooling used it to decide what to drop from a context. v2 removed that tooling from the proposal. Optional sections are still allowed, but "they no longer carry mechanical semantics."
The v2 text also reports on adoption. It says "thousands of sites publish an llms.txt file," and it links the files OpenAI, Anthropic and Google (Gemini API docs) publish for their developer docs. We checked those three links on October 25, 2026, and all of them returned a file.
What goes in an llms.txt file?
An llms.txt file needs only an H1 with the site's name, and everything else is optional but must come in a set order. The spec lists the sections like this:
- An optional byte-order mark.
- An H1 with the name of the project or site. This is the only required section.
- A blockquote with a short summary, "containing key information necessary for understanding the rest of the file".
- Any number of paragraphs or lists with more detail, "of any type except headings".
- Any number of sections under H2 headings, each holding a "file list": Markdown links written as
[name](url), optionally followed by a colon and a note.
This is the mock example from the proposal:
# Title > Optional description goes here Optional details go here ## Section name - [Link title](https://link_url): Optional link details ## Optional - [Link title](https://link_url)
The proposal's own tips are short: use concise, clear language, give each link a brief description and avoid unexplained jargon. The last tip is the most useful: "Test your file by asking an agent questions about your content, giving it only your llms.txt as a starting point."
How is llms.txt different from robots.txt and sitemap.xml?
robots.txt controls access, a sitemap lists every page for search engines, and llms.txt picks what an agent should read. The proposal puts it this way: "robots.txt lets automated tools know what access to a site is considered acceptable," while "llms.txt information is instead used on demand, when an agent needs information about a topic while assisting a user."
| File | Written for | What it holds | Used when |
|---|---|---|---|
| robots.txt | Crawlers | Which paths each crawler may fetch | Before crawling |
| sitemap.xml | Search engines | Every indexable page | When discovering pages to index |
| llms.txt | AI agents and LLMs | A summary and a curated list of links, ideally to Markdown pages | On demand, while an agent works on a task |
The proposal gives three reasons a sitemap can't replace llms.txt: it often won't list the LLM-readable versions of pages, it leaves out useful external links, and the pages it lists are usually far too much text, taken together, to fit in a context window. One practical point: an llms.txt link list does not override robots.txt. Our robots.txt lets every crawler group, AI crawlers included, fetch /llms.txt along with the public site.
Does llms.txt help SEO or AI search?
Not directly: none of the primary sources below says a search engine ranks or cites pages because of llms.txt, and Google says you don't need it. Here is what the primary sources say, as of October 25, 2026:
- Google. The Search Central guide AI features and your website (last updated December 10, 2025) says: "You don't need to create new machine readable files, AI text files, or markup to appear in these features." That covers AI Overviews and AI Mode.
- Chrome Lighthouse. Lighthouse has an llms.txt audit in its agentic browsing checks (page last updated May 5, 2026). It only "flags the pages if a server error occurs when attempting to retrieve the llms.txt file." A missing file (a 404) is marked Not Applicable, "as providing the file is optional at the moment." It does not check your format.
- The proposal itself. Its author writes that the expectation was that llms.txt "would mainly be useful for inference rather than training, and that is how it has been used." In other words, it is for agents reading your site while they work.
Our own data fits that. Bing Webmaster Tools shows that Bing first found flux.umin.ai/llms.txt on September 1, 2026 and last crawled it on September 18, and it shows no clicks or impressions for the file. That is expected. The file is not written to rank. It is written so an agent that lands on it gets the facts right.
What do we put in Flux's llms.txt?
Our llms.txt has three parts: what Flux is, links to our main pages and guides, and a REST API reference for the main endpoints. Flux is task management for AI agent teams. Agents connect to a shared board through the Flux MCP server or the REST API, so the readers we care most about are agents that need to call that API correctly. Here is an abridged view (the full file is about 125 lines):
# Flux
> Flux (https://flux.umin.ai) is task management for AI agent teams: ...
## About Flux
- [Flux MCP server](https://flux.umin.ai/mcp): connect Claude Code, Cursor or
Cline to a Flux board over MCP (endpoint https://flux.umin.ai/api/mcp)
- ...
## Guides for AI agent workflows
- ...
---
## Flux API reference
## Authentication
All requests require a Bearer token (API key with `flux_` prefix).
Header: `Authorization: Bearer flux_YOUR_KEY`
## Common Workflows
### Create a card on a board
1. GET /api/boards - find the board by title
2. GET /api/boards/{shortId} - get columns
3. POST /api/cards - create card in the target column The file began in April 2026 as a route inside the Flux app, titled "Flux API", with only the API reference. Its base URL line, "Use the URL where you received this file", dates from then. In May 2026 it became a static file in our marketing site, and the product app now forwards /llms.txt to it. In October 2026 we put the product summary and page links in front of the reference.
The biggest lesson came from two lines that no longer matched the code, fixed on October 18 and 19, 2026:
- The undo line said the body was
{ boardId }. The route readsactionId, so an agent that trusted the file would have sent a body the route does not read. - The notes said every write request should include
X-Idempotency-Key. In fact only some card, column and board writes honor it. Comments, checklist items, labels and attachments don't, so a retried comment can post twice. The file now lists the ones an API key can call. Our post on idempotency keys for AI agents explains why this matters for retries.
An llms.txt is documentation that agents act on, often without a person reading it first. Review it like code: when an endpoint changes, the file changes in the same pull request.
Does our llms.txt follow the spec?
The top half follows the written spec, but the API reference half does not, and the reference parser cannot read the file. On October 25, 2026 we ran parse_llms_file from llms-txt 0.0.7, the Python package from the proposal's repository, on our file. It crashed with an AttributeError. The parser expects every line under an H2 to be a link, and our file breaks that in three places:
- A
---rule sits inside the "Guides for AI agent workflows" section. - "Flux API reference", "Authentication", "Base URL", "Endpoints", "Common Workflows" and "Notes" are H2 sections full of prose and endpoint lines, not links.
- The endpoint groups and workflows use H3 headings. The spec has no place for headings other than the H1 and the H2 section titles.
We are not alone. The same parser raised an error on Claude Code's own docs llms.txt, which nests H3 to H5 headings and puts a blockquote note inside a link section. Read as plain Markdown, both files are still clear. A tool that parses the format strictly will fail on them.
The fix the spec points to is to keep llms.txt to a summary and link lists, and move the API reference into its own Markdown file that the list links to. The trade-off is one more fetch before an agent can make its first call.
How do you write an llms.txt for a product with an API?
Lead with what the product is and how to authenticate, then link to Markdown pages for everything else. Here is a file that follows the spec. llms-txt 0.0.7 parses it cleanly into three sections:
# Acme Tasks > Acme Tasks is a hosted task API. Agents use it to create, update and close tasks for a team, with an API key. Authenticate every request with the header `Authorization: Bearer <your key>`. IDs are UUIDs. Write requests can be retried safely only where the API reference says so. ## Docs - [Quickstart](https://example.com/docs/quickstart.md): create a key and make a first request - [API reference](https://example.com/docs/api.md): every endpoint, with request and response bodies - [Errors](https://example.com/docs/errors.md): status codes and what to do about each ## Guides - [Retries](https://example.com/docs/retries.md): which writes accept an idempotency key ## Optional - [Changelog](https://example.com/changelog.md): API changes by date
- Write the summary as a definition. One or two sentences an agent could quote: what it is, who uses it, how they connect.
- Put the facts every call needs in the details paragraph. The auth header, the ID format and the retry rules belong here. The two lines that drifted in our own file were exactly this kind: a request body and a retry rule.
- Link to Markdown, not HTML. v2 suggests a
.mdversion of each page at the same URL. Without one, an agent is back to stripping HTML. - Describe each link. The note after the colon is how an agent decides whether to fetch the page.
- Test it the way the proposal suggests. Give an agent only the file and ask it to do a real task, like "create a card in the To Do column." Check what it sends.
- Keep it in the release process. Update it in the same pull request as the API change.
How do you point your own agents at an llms.txt?
Add a line to their instruction file that tells them to fetch your llms.txt first, and link to the file from your pages for agents that arrive on their own. For agents that work on your codebase, one line in AGENTS.md or CLAUDE.md does it (our post on AGENTS.md vs CLAUDE.md covers which agent reads which file). For a team using Flux over the REST API:
## Flux board API - Before you call the Flux REST API, fetch https://flux.umin.ai/llms.txt and follow its endpoint list and "Common Workflows" steps. - Send the header Authorization: Bearer $FLUX_API_KEY. Never print the key. - Send a new X-Idempotency-Key (a UUID) with each card write, and reuse it only when you retry that same request.
For agents that arrive at your pages on their own, Claude Code's docs show two ways to link back. Each Markdown page starts with a short blockquote that says "Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt", and the pages also send an HTTP Link header pointing to that file (and to llms-full.txt). Their header uses rel="llms-txt", not the rel="describedby" that v2 recommends, so if you add one, follow the spec.
For agents that work on a shared board rather than raw HTTP, the MCP server is the simpler path: the client asks the server for its tools with a tools/list request, so the tool list comes from the server, not from a file, and llms.txt stays the reference for scripts and REST calls.