How to Add llms.txt to WordPress (Free Plugin or by Hand)
Create an llms.txt file for WordPress that lists your best pages for AI tools, keep it current automatically, and see which AI crawlers fetch it.
llms.txt is a small Markdown file at the root of your site that tells AI tools what the site is and where its best pages are. This guide shows what goes in it, how to add one to WordPress in a couple of minutes, and how to see which AI crawlers fetch it.
What llms.txt is
The format was proposed at llmstxt.org in September 2024. The idea is simple: AI tools work better with a short, clean summary than with a full HTML page of menus, scripts and ads. So a site publishes /llms.txt with:
- An
#heading with the site name. - A
>quote with a one-line summary. - Optional plain text with more context.
##sections, each a list of links with a short description.
Here is a small one:
# Example Bakery
> Sourdough recipes, baking guides and a weekly bread newsletter.
All recipes are tested at home and use metric weights.
## Pages
- [About](https://example.com/about/): Who runs the site and how recipes are tested
- [Start here](https://example.com/start/): The five recipes to bake first
## Posts
- [Beginner sourdough loaf](https://example.com/beginner-sourdough/): A step-by-step first loaf with photos
- [Sourdough starter from scratch](https://example.com/starter/): Make a starter in seven daysIt lives at https://yoursite.com/llms.txt, next to robots.txt and your sitemap.
llms.txt vs robots.txt
They do different jobs, and you can use both:
| robots.txt | llms.txt | |
|---|---|---|
| Purpose | Tells crawlers what not to fetch | Points AI tools to your best content |
| Format | User-agent and Disallow rules | Markdown links with descriptions |
| Blocks anything | Asks crawlers to stay out | No |
If you want AI training crawlers kept out, that is robots.txt’s job. See how to block AI crawlers with robots.txt. A common setup is to block training crawlers in robots.txt, and publish llms.txt for AI search and assistants that you want to cite you.
Option 1: WebDecoy (free, updates itself)
WebDecoy for WordPress builds llms.txt from your content and keeps it current.
- Install WebDecoy from Plugins > Add New Plugin, or from WordPress.org.
- Go to WebDecoy > Settings > Good Bots and scroll to llms.txt.
- Tick Serve llms.txt.
- Optional: write a Summary (the tagline is used if you leave it empty), add an Introduction, choose which content types to list (pages and posts by default; WooCommerce products or any other public type if you like) and set Links per section.
- Save, then click View your live llms.txt.
What WebDecoy puts in the file:
- Your site name, summary and introduction.
- One section per content type, with each item’s title, link and a one-line description from its excerpt.
- Only published content. Private, draft and password-protected posts are left out, and so are posts you marked noindex in Yoast SEO, Rank Math or SEOPress, hidden WooCommerce products, and cart, checkout and account pages.
The file rebuilds when you publish, edit or delete a post, so it never goes stale. The settings page shows a preview before you turn it on.
If another plugin already serves llms.txt (Yoast SEO, Rank Math, All in One SEO or Website LLMs.txt), or there is an llms.txt file on your server, WebDecoy leaves that one in place and tells you which.
Option 2: Write it by hand
For a small site that rarely changes, a hand-written file works:
- Write the file in the format above, or fill in our free llms.txt generator and download it. Keep it to the pages you want AI tools to read first, not every post you have.
- Save it as
llms.txtand upload it to your web root, the folder withwp-config.php, over SFTP or your host’s file manager. - Open
https://yoursite.com/llms.txtto check it.
You will need to edit it whenever you add or remove important pages.
Check it is working
Fetch it from the command line:
curl -sI https://yoursite.com/llms.txt
curl -s https://yoursite.com/llms.txt | head -20You want a 200 status and a text/plain or text/markdown content type. If you get your theme’s “page not found” page, a cache or your web server is answering first. Purge your cache and check your permalink settings.
See which AI crawlers read it
Publishing llms.txt is half of it. The other half is knowing who reads it.
WebDecoy’s AI Traffic page in WordPress counts AI crawler visits by name (GPTBot, ClaudeBot, PerplexityBot, OAI-SearchBot and over 200 others), with fetches of llms.txt included in each crawler’s count. It also counts visitors that AI assistants such as ChatGPT, Perplexity and Claude send to your pages. No account is needed.
Quick checklist
- Decide what AI tools should read first: your about page, key guides, product pages.
- Turn on llms.txt in WebDecoy, or upload a hand-written file.
- Check
/llms.txtreturns 200 with your content. - Keep training crawlers out with robots.txt if you want to.
- Watch the AI Traffic page to see which crawlers visit.
Install WebDecoy from WordPress.org to add llms.txt to WordPress in one click.
Frequently Asked Questions
What is llms.txt? +
llms.txt is a Markdown file at the root of a site, at /llms.txt, that gives AI tools a short summary of the site and a list of links to its most useful pages. It was proposed at llmstxt.org in September 2024.
How do I add llms.txt to WordPress? +
Install the free WebDecoy plugin, go to WebDecoy Settings, Good Bots, llms.txt, tick Serve llms.txt and save. WordPress then answers /llms.txt with your published pages and posts, and updates it as you publish. You can also write the file by hand and upload it to your web root.
Is llms.txt the same as robots.txt? +
No. robots.txt tells crawlers what they may not fetch. llms.txt is a guide that points AI tools to your best content. It does not allow or block anything, so use robots.txt to keep crawlers out.
Does llms.txt help SEO? +
llms.txt does not change Google rankings. Its purpose is to give AI tools and assistants a clean map of your content. Keep it accurate and short, and use your normal sitemap for search engines.
Can I see if AI crawlers read my llms.txt? +
Yes. WebDecoy counts AI crawler visits, including fetches of llms.txt, on its AI Traffic page in WordPress. You can also check your server access logs for requests to /llms.txt.
Continue your investigation
- Install the free WordPress plugin
llms.txt, automatic robots.txt and AI crawler counts, with no account.
- Block AI crawlers with robots.txt
The rules to copy, and which AI crawlers to keep out.
Share this post
Like this post? Share it with your friends!
Want to see WebDecoy in action?
Get a personalized demo from our team.