By William Lopez Updated (published )
WordPress llms.txt: What It Is, How to Add It, Does It Help?
Publish an llms.txt file on WordPress three different ways, and see what Google and the AI companies have published about whether anyone reads it.
- Topic
- SEO & crawlers
- Free tool for this
- WordPress robots.txt Generator with AI Crawler Toggles
- Sources
- 14 linked at the end
llms.txt is a plain markdown file, usually at the root of your domain (https://example.com/llms.txt), listing your best pages with a one-line description for each, so a language model can find your useful content without crawling your entire navigation. It is a proposal, not a standard, and no major AI company documents that its crawlers or AI answers use the file.
The format is real, well specified, and quick to publish. The benefit is unproven. Below, the usual claims are checked against what Google and the AI companies have published, and against 21 days of this site’s own request logs.
TL;DR: llms.txt is a curated markdown link list, normally at your site root. Google says Google Search ignores it, and no AI company has confirmed using it. In 21 days of our own Cloudflare logs, GPTBot, OAI-SearchBot, ClaudeBot and PerplexityBot never asked for our /llms.txt, although requests under each of those names reached the rest of the site between about 480 and 1,200 times. It costs one small file to add, so publish it as cheap optionality if you like, but do it with a correctly configured robots.txt already in place, because that is the file with a documented effect on AI crawlers today. If you want to keep some of them out, see how to block AI crawlers in WordPress.
What the file actually looks like
The proposed format is markdown with a defined shape: an H1 with your site name (the only required part), an optional blockquote summary, optional paragraphs of context, then H2 sections containing bullet lists of links, each with a short description after a colon.
# Odie Themes
> Free WordPress tools and technically honest guides for theme
> and image configuration problems.
## Guides
- [Why WordPress images look blurry after upload](https://example.com/guides/wordpress-image-blurry-after-upload/): Why the 2560px cap creates a -scaled file and how to raise or disable it.
- [WordPress llms.txt](https://example.com/guides/wordpress-llms-txt/): What the file is, how to add one, and what it does not do.
## Tools
- [Robots.txt generator](https://example.com/tools/wordpress-robots-txt-generator/): Build a robots.txt with correct AI crawler rules.
## About this site
- [About](https://example.com/about/): Who runs the site.Descriptions should be one sentence and factual, not marketing copy. The premise is that a machine reads the file, and padded adjectives waste the tokens you were trying to save. The example uses absolute links, which every version of the proposal accepts. Since version 2.1 (November 2026), relative links are allowed too, resolved against an optional Base URL: line or against the address the file was fetched from.
The proposal on llmstxt.org was revised in August and again in November 2026, and older tutorials miss the changes:
- A file can sit at a subpath, such as
/docs/llms.txt, and covers the pages under that path. Where more than one file applies, agents should use the most specific one. - Each page can offer a clean markdown copy at the same URL with
.mdadded (page.html.md) or swapped in (page.md), linked from the HTML with<link rel="alternate" type="text/markdown">. A page can also point to the llms.txt that covers it withrel="describedby", in a<link>element or an HTTPLink:header. - A section called “Optional” no longer means anything special. The first version used it for links a tool could leave out when it needed a shorter context. Version 2 removed that meaning, and version 2.1 dropped the convention from the proposal and its examples in favor of plain descriptive headings, like the ones in the example above.
You will also see llms-full.txt, a file holding the full text of a site as one markdown document. The current llmstxt.org proposal does not mention it. This site publishes one, because on a static site it is generated at build time and costs nothing to serve. On a WordPress site it means a large file to keep in sync with your content, for a benefit nobody has confirmed. Skip it unless you have a specific reason.
Does any AI company read llms.txt?
No public documentation from OpenAI, Anthropic, Google, or Perplexity states that their crawlers or search systems use llms.txt. Google is the most direct about it. The “Mythbusting” section of its guide to generative AI features in Search says you don’t need new machine-readable or AI text files to appear in Google Search, and adds:
It’s completely fine if you decide to create and maintain LLMS.txt files (or other similar files) for other services or systems that use these files. Doing so will neither harm nor help your site’s visibility or rankings in Google Search, as Google Search ignores them.
The same guide notes that Google “may discover, crawl, and index many kinds of files in addition to HTML on a website: this doesn’t mean that the file is treated in a special way.” So a Googlebot visit to your llms.txt would not mean Google uses it.
One Google tool does fetch the file. Lighthouse’s llms.txt audit, one of its agentic browsing checks, flags a page if requesting /llms.txt gives a server error, and marks the audit Not Applicable when the file is missing (a 404), “as providing the file is optional at the moment”. That is a site check in a developer tool, not a statement that Google Search or Google’s AI products read it.
The proposal’s own site says the AI labs publish llms.txt files for their own developer documentation. That shows they use the format for their docs. It does not show that their crawlers read yours, and our own logs found no sign of it.
Robots.txt is different: Google documents how it follows robots.txt, and each of the AI operators named further down documents robots.txt tokens for its crawlers.
So be careful with the claims you accept:
| Claim you will see | Status |
|---|---|
| ”llms.txt is the new robots.txt for AI” | False. robots.txt is a standard that AI operators document; llms.txt is a proposal. |
| ”Adding llms.txt improves your Google rankings” | False for Google Search. Google says Search ignores llms.txt files. |
| ”AI crawlers already fetch llms.txt files” | Not on this site: 0 requests from GPTBot, OAI-SearchBot, ClaudeBot or PerplexityBot in 21 days. |
| ”ChatGPT reads your llms.txt” | Unconfirmed by OpenAI. |
| ”It’s a cheap file to publish” | True, and this is the only solid argument for it. |
The reasonable position is cheap optionality. A static text file costs you one upload, zero page-load time, and no risk. If the convention gets adopted, you already have one. If it never does, you lost a few minutes. Just do not let anyone bill it as an AI visibility strategy.
Adding it to WordPress
Option 1: static file at the root (recommended)
Write the file locally, then upload it over SFTP into the same directory as your wp-config.php and index.php.
WordPress does not intercept it, because the default WordPress rewrite block in .htaccess only routes requests that do not already match a real file or directory:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]A real llms.txt on disk fails the !-f condition, so Apache serves it directly and PHP never runs. On nginx, a try_files $uri $uri/ /index.php line should have the same effect. The nginx try_files documentation says it checks the listed files in order, uses the first one it finds, and falls back to the last parameter only when none exists. We tested the Apache case, not nginx.
If your host does not let you write files to the web root, use option 2 or 3 instead.
Option 2: a plugin, or your SEO plugin’s switch
Plugins can build the file from your published posts and pages, which is useful if you publish often, because a hand-written list goes stale. If you already run an SEO plugin, look there first: Yoast SEO, All in One SEO and Rank Math each have an llms.txt setting. Each path below comes from the vendor’s own documentation, read on 2 December 2026. Menus move between versions, so check yours.
| Product | Where the setting is | Worth knowing |
|---|---|---|
| Website LLMs.txt (plugin) | Its listing names Settings → LLMs.txt in one place and Tools → Llms.txt in another, so check your version | Version 8.6.5, 50,000+ active installs, tested up to WordPress 7.2 on wordpress.org. It writes the file to your site root, or serves a copy from your uploads folder where the root is not writable. |
| Yoast SEO | Yoast SEO → Settings → Site features → AI tools → llms.txt | Yoast says the feature is not available on multisite. |
| All in One SEO | All in One SEO → Sitemaps → LLMs.txt tab | AIOSEO says the feature is on by default, so a site running it may already publish an llms.txt. Some tutorials give a different menu. |
| Rank Math | Turn on the LLMS Txt module in Rank Math SEO → Dashboard, then edit it in Rank Math SEO → General Settings → Edit llms.txt | Rank Math says the file stays empty until you configure it. |
| WordPress.com (hosted sites) | Jetpack → SEO → GEO tab → “Generate an llms.txt file” | Premium, Business and Commerce plans. Uploading your own file needs Business or Commerce. |
The trade-off is real, though. You are adding a plugin, a settings page, and an update surface in exchange for automating a file no AI company has confirmed reading. Auto-generated lists also tend to dump every post with the excerpt as its description, which produces a long, undifferentiated file, the opposite of the curated map the format was designed for. If you use a plugin, prune what it outputs.
Option 3: serve it from a must-use plugin
If you cannot write to the web root but can add code, keep the file in wp-content/ and drop a small mu-plugin at wp-content/mu-plugins/llms-txt.php that serves it:
<?php
// wp-content/mu-plugins/llms-txt.php
// Serves wp-content/llms.txt at /llms.txt.
add_action( 'init', function () {
$path = parse_url( $_SERVER['REQUEST_URI'] ?? '', PHP_URL_PATH );
if ( '/llms.txt' !== $path ) {
return;
}
$file = WP_CONTENT_DIR . '/llms.txt';
if ( ! is_readable( $file ) ) {
return;
}
header( 'Content-Type: text/plain; charset=utf-8' );
readfile( $file );
exit;
} );The file lives in wp-content/, outside any theme, so it survives a theme switch and a theme update. Another version of this snippet reads the file from the active theme’s folder with get_stylesheet_directory() instead, which loses it on the first theme switch. We tested both on 2026-11-16 in WordPress Playground (WordPress 7.1.4, PHP 8.3):
| Version | Active theme | /llms.txt result |
|---|---|---|
Reads the theme folder, file in twentytwentyfive/ | Twenty Twenty-Five | 200, text/plain; charset=utf-8 |
| Same | Switched to Twenty Twenty-Four | 404, the theme’s HTML error page |
Reads WP_CONTENT_DIR, file in wp-content/ | Twenty Twenty-Four | 200, text/plain; charset=utf-8 |
| Same | Switched to Twenty Twenty-Five | 200, text/plain; charset=utf-8 |
| Same, file removed | Twenty Twenty-Five | 404, the theme’s HTML error page |
Use one source for the file
Let one thing produce /llms.txt. The Website LLMs.txt FAQ says every llms.txt plugin writes the same file at the same address, so two plugins overwrite each other’s work. WordPress.com’s help page says an uploaded file stops its generated one from being published.
A hand-written file and a plugin get in each other’s way too. Website LLMs.txt writes its file to the site root when it can, and since version 8.5.6 it stops rebuilding when it repeatedly finds an llms.txt it did not write. Anything that answers /llms.txt through WordPress, such as the mu-plugin in option 3, never runs while a real file sits in the root on Apache, because the rewrite rules in option 1 serve the file first. Either way, you change a setting and the old file keeps showing. That last point follows from how the rewrite rules work; we have not tested every plugin against a static file.
Before you add one, open https://yoursite.com/llms.txt. If a file is already there, find out what made it (an SEO plugin such as All in One SEO, a WordPress.com setting, or an old upload) and keep only one source.
Verify it is actually served
Do not assume. Check the status code and the content type:
curl -sI https://example.com/llms.txt
llms.txt in the web root and the default WordPress rewrite rules in place. This test server ran no full WordPress.You want 200 and Content-Type: text/plain. Two failure modes are common:
- You get a 404 HTML page. WordPress handled the request and found nothing. The file is not where you think it is, or the mu-plugin is reading a different path.
- You get
Content-Type: text/htmlwith a 200. Something is rendering the request through the theme, or a plugin is hijacking the route. Fix the header before worrying about the content.
Then open the URL in a browser and read it. If a link 404s or points at http:// when your site is HTTPS, fix it. A broken map is worse than no map.
Who requested our llms.txt: 21 days of logs
Whether anything reads the file is the open question, so on 2 December 2026 we pulled this site’s own Cloudflare request logs for /llms.txt. The table covers 11 November to 2 December 2026 (21 full days, 11:00 to 11:00 UTC), the period in which Cloudflare returned every request for the file unsampled.
| Crawler (name in the user agent) | Requests for /llms.txt | Requests to the whole site (estimate) | Of those, verified by Cloudflare |
|---|---|---|---|
| GPTBot (OpenAI) | 0 | about 1,200 | about 930 |
| OAI-SearchBot (OpenAI) | 0 | about 480 | about 280 |
| ChatGPT-User (OpenAI) | 0 | about 770 | about 70 |
| ClaudeBot (Anthropic) | 0 | about 610 | about 320 |
| PerplexityBot | 0 | about 740 | 0 |
| Googlebot | 3, none verified | about 5,800 | about 4,540 |
| Amazonbot | 2, both verified | about 1,500 | about 1,230 |
| meta-webindexer (Meta) | 10, all verified | about 2,980 | about 2,980 |
GPTBot, OAI-SearchBot, ClaudeBot and PerplexityBot never asked for the file, although Cloudflare verified hundreds of GPTBot, OAI-SearchBot and ClaudeBot requests to other URLs on the site in the same days. Claude-User, Claude-SearchBot and Perplexity-User did not request it either. The three Googlebot requests were not verified by Cloudflare, so they may not have come from Google at all.
In all, /llms.txt got 165 requests in those 21 days, and 157 were answered with a 200 (the other 8 were redirects). The largest single requester was a crawler calling itself SEOJuice-SearchBot, with 34. Most of the rest came from small crawlers, site checkers, scripts, and user agents that look like ordinary browsers. /llms-full.txt got about 86 requests, and the only OpenAI, Anthropic or Perplexity name among them was a single unverified ChatGPT-User request.
How we got the numbers, and the limits.
- We ran read-only queries against Cloudflare’s GraphQL Analytics API (the
httpRequestsAdaptiveGroupsdataset), one query per 24-hour window. For the 9 days before 11 November, Cloudflare returned only a 1-in-10 sample (about 90 estimated requests for/llms.txt). None of the four crawlers above appeared in that sample, but a bot with only a few requests can slip through a sample, so the table leaves those days out. - A user agent is a name the client chooses, so anything can call itself GPTBot. The last column counts the requests Cloudflare classed as coming from a verified bot, which it confirms by IP address or by a cryptographic signature. PerplexityBot’s 0 there means Cloudflare verified none of the requests using that name, so we cannot say whether they came from Perplexity.
- Whole-site numbers are Cloudflare’s sampled estimates, rounded to the nearest 10. The
/llms.txtcounts are exact. - This is one small site, and it does not run WordPress: odiethemes.com is a static site on Cloudflare Pages. The logs show the file answering with a 200 on every one of the 21 days (it returned
text/plainwhen we checked its headers on 2 December), and ourrobots.txtallows every crawler in the table. - A request is not proof of use. Even Meta’s 10 verified requests show only that its crawler downloaded the file.
Check your own logs
If your host gives you raw access logs in the usual Apache or nginx “combined” format, this lists the user agents that requested your file, most frequent first:
grep '"GET /llms.txt' access.log | awk -F'"' '{print $6}' | sort | uniq -c | sort -rnThe log’s name and folder depend on your host. A name in that list is only a claim. To check that a “GPTBot” really is OpenAI’s, compare its IP address with the operator’s published IP list, as described in how to block AI crawlers. On Cloudflare, the same data is in the GraphQL Analytics API, which on this site’s plan reached back 31 days, so save the numbers if you want to compare months.
What actually controls AI crawlers today
If your real goal is influencing how AI systems treat your site, robots.txt is the file with a documented mechanism. OpenAI, Anthropic, Google, Apple, Perplexity, Amazon and Common Crawl each document robots.txt tokens for their crawlers, and some of those tokens control training while others control whether you appear in AI search answers. The AI crawler token table lists each one with the operator’s own page.
Build yours with the robots.txt generator, which lets you allow or block the common AI crawlers explicitly instead of guessing at the syntax. Get that right first, then add llms.txt as the cheap speculative extra.
What not to do
Do not block an AI crawler in robots.txt and expect it to read your llms.txt. One file invites the model in, the other closes the door, and for a crawler that follows robots.txt the door wins. Allow the crawlers you want reading the file. If what you want gone is an AI panel in your dashboard, that is a different job, covered in disabling WordPress AI features.
Do not put a lone llms.txt in a random subfolder. The proposal allows a file at a subpath, but it covers only the pages under that path. A single file at /blog/llms.txt with no root file says nothing about the rest of your site.
Do not paste your whole sitemap into it. Four hundred links with generic excerpts is a crawl dump, not a curated map, and it defeats the only stated purpose of the format. List the pages you would point a new reader to first, and stop there. For scale, this site’s own hand-written /llms.txt has 65 links in 8 sections, about 11 KB.
Do not delay real work for it. Page speed, clean HTML, accurate structured data, and content people actually cite are known to matter. llms.txt is not known to matter. Order your effort accordingly.
Sources
- llms.txt proposal: llmstxt.org, Changes (v2 and v2.1)
- Google Search Central: Optimizing your website for generative AI features on Google Search, Introduction to robots.txt
- Chrome for Developers: Lighthouse llms.txt audit
- Cloudflare: Verified bots, GraphQL Analytics API
- WordPress.org Plugin Directory: Website LLMs.txt
- Yoast: How to enable llms.txt with Yoast SEO
- All in One SEO: How to Create an LLMS.txt Using All in One SEO
- Rank Math: How to Use llms.txt in Rank Math SEO
- WordPress.com: Add llms.txt to your site
- Apache HTTP Server 2.4: mod_rewrite
- nginx: ngx_http_core_module, try_files
William Lopez runs Odie Themes, which publishes the free WordPress tools, themes and guides on this site.
Questions
What is llms.txt in WordPress?
It is a plain markdown file, usually at yoursite.com/llms.txt, that lists your most useful pages with a one-line description each. The idea is that a language model reading it gets a clean map of your content instead of crawling your navigation, ads, and cookie banners.
Do AI companies actually read llms.txt?
There is no public confirmation from OpenAI, Anthropic or Perplexity that their crawlers use llms.txt, and Google says Google Search ignores it. In 21 days of this site's Cloudflare logs, GPTBot, OAI-SearchBot, ClaudeBot and PerplexityBot never requested our llms.txt, although requests under each of those names reached the rest of the site between about 480 and 1,200 times.
Where does llms.txt go on a WordPress site?
Usually the root of your domain, the same place robots.txt lives, so the URL is yoursite.com/llms.txt. The llmstxt.org proposal also allows a file in a subpath such as /docs/llms.txt, covering the pages under that path. Upload a root file next to your WordPress index.php; the web server serves real files without running WordPress.
Is llms.txt the same as robots.txt?
No. robots.txt is an established standard, and AI operators such as OpenAI, Anthropic, Google and Perplexity document robots.txt tokens for their crawlers. It controls whether a crawler may fetch your pages at all. llms.txt is an unratified proposal that suggests what to read.
Does adding llms.txt help SEO or rankings?
Not in Google Search. Google's guide to its generative AI features says creating LLMS.txt files 'will neither harm nor help your site's visibility or rankings in Google Search, as Google Search ignores them.' The file costs almost nothing, so its case is cheap optionality for other tools. Do not put it ahead of page speed, structured data, or content quality.
Should I use a plugin or a static file for llms.txt?
Use a static file if your best pages rarely change: it adds no PHP work and cannot break. Use a plugin if you publish often and want the list rebuilt for you. Pick one, not both, because two sources compete for the same URL and one of them silently wins.