What is llms.txt, and how to add one

llms.txt is a short Markdown file at the root of a site that tells language models what the site is and which pages matter. Here is what goes in it, what it does and doesn’t do today, and how to add one to Next.js or WordPress.

Updated
October 5, 2026
Written by
Nitya Hoyos
Time to add
Under an hour
Live example
casa-dev.com/llms.txt

(01)What it is

llms.txt was proposed in September 2024 at llmstxt.org as a way for websites to offer language models a clean summary instead of making them parse navigation, scripts and ads. It lives at the root of the domain, like robots.txt, and is written in Markdown.

The format is simple: a title, a one-paragraph summary in a blockquote, and sections of links, each with a short note on what the page contains. A section named “Optional” marks links a model can skip when it needs to keep things short.

(02)Example

What goes in the file

# Casa Dev

> Casa Dev is the practice of Nitya Hoyos, a Los Angeles software engineer.
> It builds Oracle NetSuite integrations, customer portals and storefronts.

## Services

- [NetSuite integration audit](https://casa-dev.com/netsuite-audit/): fixed-scope review of every system connected to NetSuite.
- [SEO & search marketing](https://casa-dev.com/seo/): technical SEO and pages built from data.

## Guides

- [NetSuite Shopify integration](https://casa-dev.com/netsuite/netsuite-shopify-integration/): connector, Celigo or custom code.

## Optional

- [About](https://casa-dev.com/about/)

(03)Does it help?

The honest answer

Not for Google rankings: Google has said it doesn’t use llms.txt in Search, and no major AI company has said its assistants rely on it. It costs under an hour, though, and some tools and AI agents do read it, so it is cheap insurance. What matters more for AI search is that crawlers are allowed in robots.txt and your key facts are in the HTML, not only in JavaScript.

(04)robots.txt, sitemap, llms.txt

FileWhat it tells machinesEnforced?
robots.txtWhich crawlers may fetch which URLsYes: crawlers that follow the standard obey it
sitemap.xmlEvery URL you want indexed, with datesYes: search engines read it
llms.txtA short, curated guide to the site, in Markdown, for language modelsNo: it is a proposal, and support is voluntary

(05)Next.js

Add it to a Next.js site

In the App Router, a route handler at app/llms.txt/route.js serves the file. Build it from the same data as your pages so it updates itself; force-static makes it a static file at build time.

// app/llms.txt/route.js
// Generated from the same data as the site, so it never drifts.
import { pages } from '../../data/pages';

export const dynamic = 'force-static';

export function GET() {
  const lines = [
    '# Your Site',
    '',
    '> One or two sentences on who you are and what the site offers.',
    '',
    '## Pages',
    '',
    ...pages.map((p) => `- [${p.title}](https://example.com${p.path}): ${p.summary}`),
    '',
  ];
  return new Response(lines.join('\n'), {
    headers: { 'Content-Type': 'text/plain; charset=utf-8' },
  });
}

(06)WordPress

The simplest way is to write the file by hand and upload it to the site root through your host’s file manager or SFTP, the same folder that holds wp-config.php. Check that https://yoursite.com/llms.txt opens as plain text.

Some SEO plugins, including Yoast SEO, can now generate one for you. A generated file lists many pages; a hand-written one can focus on the few that matter, which is the point of the format.

(07)Let AI crawlers in

The part that matters more: robots.txt

If robots.txt blocks AI crawlers, llms.txt won’t help. Name the ones you want to allow:

# robots.txt: allow AI crawlers explicitly
User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ClaudeBot
User-agent: PerplexityBot
User-agent: Google-Extended
Allow: /

User-agent: *
Allow: /

Sitemap: https://example.com/sitemap.xml

(08)Questions

What is llms.txt?

A Markdown file at the root of a website (example.com/llms.txt) that gives language models a short summary of the site and a curated list of its most useful pages. It was proposed in September 2024 at llmstxt.org.

Does llms.txt help SEO?

Not directly. Google has said it does not use llms.txt for Search, and no major AI company has said its assistants rely on it. It is cheap to add and can help tools and agents that do read it, so treat it as low-cost insurance, not a ranking factor.

Where does the llms.txt file go?

At the root of the domain, next to robots.txt, served as plain text: https://example.com/llms.txt.

What is the difference between llms.txt and robots.txt?

robots.txt tells crawlers which URLs they may fetch. llms.txt does not grant or block anything; it summarizes the site and points to its best pages. Blocking or allowing AI crawlers is done in robots.txt.

What is llms-full.txt?

A convention some sites follow alongside llms.txt: a single file with the full text of the important pages, so a model can read everything in one request. It is optional and mostly used by documentation sites.

Want your site ready for AI search?

The technical SEO audit checks crawler access, structured data and what is readable without JavaScript.