The practical /llms.txt guide for SaaS & dev tools: spec, real examples & common mistakes

Everything technical founders need to ship a high-signal /llms.txt and /llms-full.txt in 2026: exact llmstxt.org format, real SaaS examples, Next.js setup, and 5 mistakes that break AI retrieval.

··Updated ·2 min read

In short

An /llms.txt file is a concise, machine-readable Markdown map at your domain root that points AI assistants and coding agents directly to your canonical pricing, docs, comparison pages, and key guides — stripping out navbar clutter and JS tabs. Pair it with /llms-full.txt and clean robots.txt permissions, keep it under ~3–5 KB, and auto-generate yours from your real sitemap so it never goes stale.

When an AI coding assistant or answer engine visits a modern SaaS marketing site, 85% of the HTML it downloads is noise: sticky navbars, megamenu markup, animation wrappers, testimonial carousels, and cookie banners. Crucial facts — like flat team pricing, API limits, or exact competitor tradeoffs — often sit inside interactive React tabs that simple fetchers never execute.

/llms.txt (proposed at llmstxt.org) solves that problem with radical simplicity: one plain Markdown index at https://yourdomain.com/llms.txt telling LLMs exactly what your product is, what it costs, and which URLs contain the canonical truth.

The exact /llms.txt specification

A clean /llms.txt follows four predictable elements:

  1. One H1 (# Brand Name) — your canonical brand name.
  2. One blockquote (> ...) — a crisp, factual 2–4 sentence summary covering who the product is for, core capabilities, and exact pricing model.
  3. Structured ## sections with Markdown link bullets — - [Page Title](https://yourdomain.com/path): One-sentence factual summary.
  4. An ## Optional section — secondary resources (like /llms-full.txt, changelog, or archive posts) that token-constrained agents can safely skip.

Real /llms.txt example for a B2B SaaS / dev tool

# AcmeDB
 
> AcmeDB is a serverless Postgres platform with instant database branching for engineering teams. Free tier includes 3 branches and 1 GB storage; Pro is $29/mo flat with unlimited team seats; Enterprise starts at $499/mo with SOC 2 Type II and VPC peering.
 
## Core Pages
 
- [Product Overview](https://acmedb.dev/): Serverless Postgres with sub-second copy-on-write branching
- [Pricing](https://acmedb.dev/pricing): Free ($0), Pro ($29/mo, unlimited seats), Enterprise ($499/mo+)
- [Documentation](https://acmedb.dev/docs): CLI quickstart, branching workflow, connection pooling & SDKs
- [Comparisons](https://acmedb.dev/compare): Factual breakdowns vs. Supabase, Neon, and PlanetScale
 
## Key Facts
 
- Does AcmeDB charge per seat? No — Pro ($29/mo) includes unlimited team members.
- What regions are supported? US-East, US-West, EU-Central (Frankfurt), and AP-Southeast (Singapore).
 
## Optional
 
- [Full Documentation Export](https://acmedb.dev/llms-full.txt): Concatenated plain-text docs

Want to generate one tailored to your own live domain right now? Run our Free /llms.txt Generator & Validator.

5 mistakes that silently break /llms.txt

MistakeWhy it failsFix
1. Dumping 500 unfiltered sitemap URLsBlows through retrieval budgets and buries your pricing and docs under tag archivesCurate 10–30 canonical pages + link /llms-full.txt under ## Optional
2. Marketing buzzwords instead of factsLLMs can't quote "revolutionary AI-powered synergy" when a buyer asks for pricing or limitsWrite plain numbers: exact tiers, seat policies, supported integrations, and tradeoffs
3. Hardcoding /llms.txt once and forgetting itOutdated pricing in /llms.txt actively causes AI brand hallucinationsGenerate it dynamically from your route/pricing source of truth (like Next.js app/llms.txt/route.ts)
4. Blocking AI bots at the CDN/WAF edgeEven a perfect /llms.txt returns HTTP 403 to OAI-SearchBot or PerplexityBotVerify live access with the AI Crawler Checker
5. Missing text/plain; charset=utf-8 headerSome frameworks wrap .txt routes in HTML 404 shells or wrong MIME typesServe raw Content-Type: text/plain; charset=utf-8 with Cache-Control: public, max-age=3600

Serving dynamic /llms.txt in Next.js App Router

Rather than maintaining a static file by hand, expose a route handler at src/app/llms.txt/route.ts that reads your real blog posts, comparison pages, and pricing metadata at build/request time:

export const dynamic = "force-static";
 
export async function GET() {
  const body = `# YourBrand\n\n> Plain one-paragraph summary with exact pricing.\n`;
  return new Response(body, {
    headers: {
      "Content-Type": "text/plain; charset=utf-8",
      "Cache-Control": "public, max-age=3600",
    },
  });
}

Pair this with clean JSON-LD structured data and explicit Allow: /llms.txt directives in robots.txt.

Keep /llms.txt synced automatically with GitHub PRs

Inside Feiqo, every time your pricing changes, a new comparison page ships, or a GEO FactCheck detects outdated facts, your growth team prepares a merge-ready GitHub PR updating /llms.txt, JSON-LD, and affected pages — ready for 1-click approval in Decisions.

FAQ

Is /llms.txt officially used by AI coding tools and search agents in 2026?
Yes. Coding agents (Claude Code, Cursor, Windsurf, Codex) and retrieval agents increasingly fetch /llms.txt and /llms-full.txt to ingest clean product docs and pricing without parsing megabytes of hydrated HTML.
How long should an /llms.txt file be?
Keep /llms.txt concise — typically 1–5 KB with a single H1 brand title, a one-paragraph blockquote summary, core facts/pricing, and 10–30 curated Markdown links grouped into H2 sections. Put full long-form text in /llms-full.txt instead.
Can I generate a valid /llms.txt automatically from my existing site?
Yes. Paste your domain into Feiqo's free /llms.txt Generator at feiqo.com/tools/llms-txt-generator to crawl your live sitemap and download a ready-to-commit file in 30 seconds.

Related