1. /llms.txt vs. /llms-full.txt vs. robots.txt vs. sitemap.xml
HTML marketing pages carry heavy navigation menus, modals, cookie banners, and client-side JavaScript bundles. Even worse, JavaScript SPAs frequently return nearly empty HTML before hydration. Hosting /llms.txt complements your existing crawl stack without replacing robots.txt or sitemap.xml:
| Root File | Primary Audience | Purpose |
|---|---|---|
| /llms.txt | AI Search & Coding Agents | Concise Markdown index of brand summary, key pages, pricing, and API docs. |
| /llms-full.txt | RAG Pipelines & IDEs | Full uncompressed Markdown documentation, pricing specs, and FAQs in one file. |
| /robots.txt | All Web & AI Crawlers | Explicit Allow/Disallow rules and Sitemap: pointer. |
| /sitemap.xml | Google, Bing & Search Bots | Exhaustive XML index of every canonical page with ISO <lastmod> dates. |
2. Exact Markdown Specification & Copy-Paste SaaS Template
The specification follows four clean Markdown sections in order: an # H1 title, a > blockquote direct summary, categorized ## H2 bullet lists with [Link](url): description lines, and an optional link to /llms-full.txt. You can auto-generate yours immediately with our Free /llms.txt Generator:
# Your Brand Name (yourdomain.com)
> Concise 1-2 sentence factual summary explaining what your platform does, who it serves, and starting pricing.
## Core Product & Pricing
- [Platform Overview](https://yourdomain.com/): Architecture, use cases, and core features.
- [Pricing & Plans](https://yourdomain.com/pricing): Transparent tiers starting free, Pro at $5/mo, Agency at $15/mo.
- [Product Documentation](https://yourdomain.com/docs): Setup guides, SDK quickstarts, and authentication.
## API & Machine-Readable Resources
- [XML Sitemap](https://yourdomain.com/sitemap.xml): Canonical page index for search crawlers.
- [Full Technical Corpus](https://yourdomain.com/llms-full.txt): Uncompressed Markdown documentation and FAQ answers.
See how top engineering brands expose AI manifests and crawler configs in our live reports for anthropic.com and vercel.com, or inspect our own live manifest at aeoauditing.com/llms.txt.
3. Hosting & HTTP Header Setup (Static Hosting, Nginx & Next.js)
Place llms.txt in your public root (public/llms.txt in Next.js/Vite or repository root on static edge hosts) and configure explicit UTF-8 text/markdown headers so crawlers never see a binary download prompt:
# Edge _headers file (Cloudflare Pages / Netlify)
/llms.txt
Content-Type: text/plain; charset=utf-8
Cache-Control: public, max-age=3600, s-maxage=86400
Access-Control-Allow-Origin: *
/llms-full.txt
Content-Type: text/plain; charset=utf-8
Cache-Control: public, max-age=3600, s-maxage=86400
Access-Control-Allow-Origin: *
Never list Sitemap: https://yourdomain.com/llms.txt inside robots.txt. Google Search Console flags .txt files inside Sitemap: directives as XML errors. Keep only XML sitemaps in Sitemap: lines.
4. /llms.txt Implementation FAQ
What is llms.txt?
It is a standardized Markdown manifest at your domain root giving AI search crawlers and coding assistants a concise, token-efficient map of your canonical pages.
What is the difference between llms.txt and llms-full.txt?
/llms.txt acts as a compact table of contents with links and summaries, while /llms-full.txt includes full uncompressed documentation and FAQs in one file.
Does llms.txt replace robots.txt or sitemap.xml?
No. Keep /robots.txt for crawler permissions and /sitemap.xml for search indexing alongside /llms.txt.
What HTTP Content-Type header should /llms.txt return?
Return text/plain; charset=utf-8 or text/markdown; charset=utf-8 with HTTP 200 OK.