Content and technical

Do You Need llms.txt? What Actually Makes a Site Agent-Ready

Written by: Published: Last updated: 8 min read

Quick Summary

Summarize this article instantly with your preferred AI model.

llms.txt is optional. Access isn’t. What really makes a site agent-ready: access, raw HTML, clear facts. Illustration: AI agents taking a clear main path past a small signpost.

Short answer

You don’t need llms.txt to be read or cited by AI engines. It is an optional, proposed summary file, and it grants or blocks nothing. A site is agent-ready when AI crawlers are allowed in, the important content sits in the raw HTML instead of being loaded by JavaScript, pages are cleanly structured, URLs are stable, and facts about your brand are stated plainly.

Key takeaways

  • llms.txt is a courtesy. It summarizes your site for AI agents, but it does not control access and won’t fix a blocked crawler.
  • Access comes first. robots.txt, your CDN’s bot settings and being in the underlying search index decide whether an engine can read you at all.
  • Many AI crawlers read raw HTML. If your product facts or prices only appear after JavaScript runs, assume an AI crawler may never see them.
  • Agents need facts they can lift. Clear headings, plain statements about who you are and what you sell, and stable URLs do more than any new file.

What is llms.txt?

llms.txt is a proposed convention, published at llmstxt.org, for a plain Markdown file at the root of your site (yourdomain.com/llms.txt). It gives large language models and AI agents a short summary of the site and a curated list of links to the pages that matter most, so an agent doesn’t have to work it out from navigation menus and footers.

The idea is sensible, and adding the file costs very little. Its role is easy to misread, though. llms.txt doesn’t allow or deny any crawler, and nothing in it tells an engine to cite you. The bots that power ChatGPT search, Gemini, Perplexity and Claude are documented by their vendors as following robots.txt and user-agent rules. None of that documentation makes llms.txt a condition for reading or citing a page.

Why does llms.txt get so much attention?

Mostly because it looks like robots.txt, and robots.txt really does matter. A file at the site root with a technical name feels like the kind of switch that should change your visibility overnight. It is also concrete. You can ship it in an afternoon and tick a box, which feels better than rewriting your product pages.

The risk is opportunity cost. Picture a team that spends its AI search budget on llms.txt while a CDN setting quietly blocks AI crawlers and key facts sit behind JavaScript. That team has fixed the least important thing first. The rest of this post covers what an engine or agent actually needs, in order of importance.

What actually makes a site agent-ready?

An AI engine or agent reading your site runs through the same sequence every time. Can it get in? Can it read what it fetched? Can it make sense of it, and trust it enough to quote? Each layer below depends on the one before it.

LayerWhat the agent needsTypical failureWeight vs llms.txt
AccessSearch bots and user fetchers allowed in robots.txt and through your CDN or firewallA "block AI bots" toggle or a template Disallow ruleFar higher: a blocked bot reads nothing
IndexPages present in the index the engine searches (Google, Bing, Brave, or the engine’s own)Stray noindex tags, no sitemap, slow pagesFar higher
RenderingKey content in the HTML the server sendsPrices, specs or FAQs injected by JavaScriptHigher
StructureHeadings, lists and tables that match the questions buyers askWalls of text, content hidden in tabs or imagesHigher
Entity factsA plain statement of who you are, what you sell, where, and for whomVague taglines and inconsistent names across sitesHigher
Stable URLsCanonical URLs that don’t change or breakSession parameters, frequent slug changes, redirect chainsHigher
llms.txtAn optional curated summary of key pagesMissing (usually harmless)Optional extra

Work from the top. A missing llms.txt rarely costs you anything, while a blocked crawler costs you everything on that engine.

Layer 1: Can AI crawlers get in?

Three gates decide this. The first is robots.txt, where a Disallow rule for OAI-SearchBot, PerplexityBot, Claude-SearchBot or Googlebot, or a blanket User-agent: * block, closes the site to that bot. The second is your CDN or firewall. Bot-management features can block AI user-agents whatever robots.txt says, and some CDNs offer a one-click setting to do exactly that. The third is the index. Gemini and AI Overviews read Google’s index, Microsoft Copilot reads Bing’s, and Claude’s web search uses a provider (Anthropic lists Brave Search).

One common mix-up is worth repeating. GPTBot is OpenAI’s training crawler. Blocking it keeps your content out of future training but leaves you in ChatGPT search, which reads the web through OAI-SearchBot and fetches pages for users with ChatGPT-User. The reverse mistake, blocking the search bots along with the training bots, is the one that costs visibility. The 15-minute crawler access audit walks through every check.

Layer 2: Can they read what they fetched?

A browser downloads your HTML, runs your JavaScript and then shows the page. Many AI crawlers are simpler and just read whatever is in the HTML they fetch. Rendering JavaScript at scale is expensive, and you should not assume every AI crawler does it. If your product specs, prices, reviews or FAQ answers only appear after a script runs, an AI engine may see an empty shell.

Usually the fix is server-side rendering or static generation for the pages that matter, so the content arrives in the first response. Then check accordions and tabs. Content that is collapsed in the HTML is fine. Content that loads only when someone clicks is a problem.

  1. 1View the raw source. Open a key page, choose "View page source" (not the inspector), and search for a sentence from the main content. If it isn’t there, a non-rendering crawler can’t see it.
  2. 2Fetch it as a bot. Use curl or a similar command with an AI crawler’s user-agent string and compare the response with what a browser shows. A challenge page or a 403 means your firewall is in the way.
  3. 3Check the facts as well as the words. Prices, specs, locations and opening hours are the details engines quote. Make sure they appear in the HTML as text, and not only in images or scripts.
  4. 4Check your schema. JSON-LD belongs in the rendered HTML too, and markup injected late by a tag manager may never be read. See schema markup for AI search.

Layer 3: Can they make sense of it?

Once an engine has your page, it looks for passages that answer the question it was asked. Clear headings, short paragraphs that lead with the answer, and lists and tables for comparisons are all easier to lift from than long, undivided prose. Headings phrased the way buyers ask ("How long does installation take?") help the engine match the passage to the question.

Entity clarity matters as much as layout. Near the top of your home and about pages, say in plain words what the company is called, what you sell, who it is for and where you operate. Use the same name, address and description on your site, your social profiles and the directories that list you, because conflicting facts make an engine less sure which version to repeat. For examples of rewriting pages so engines quote them, see writing pages AI engines quote.

Layer 4: Stable URLs and fresh facts

Engines and agents keep links. Move a cited page without a redirect and the citation breaks, so the engine has to find a new source, which may be a competitor. Keep canonical URLs stable, redirect anything you must move in a single hop, and avoid URL parameters that create duplicate versions of the same page.

Keep the facts on those URLs current, too. An agent comparing options will happily repeat last year’s price or a discontinued product if that is what your page says. Our guide to content freshness for AI search covers what to update and how to date changes honestly.

If you add llms.txt, how should you do it?

Treat it as a well-kept table of contents. Keep it short and accurate, and list only pages you would be happy for an engine to quote.

  • Start with one line about the company: the name, what you sell and who it is for. Use the same plain statement as your about page.
  • List your most important pages with one-line descriptions: core product or service pages, pricing, comparison pages, documentation and contact details.
  • Link only to canonical URLs that return a normal page to bots. Skip redirects and pages behind a login.
  • Keep it in sync. An llms.txt that lists retired pages is worse than none, so review it whenever you change your main navigation.
  • Say the same thing to machines as to people. The summary should match what the pages say. Anything else drifts toward cloaking, which you should never do.

Then measure what matters. With or without llms.txt, an agent-ready site proves itself when AI engines name and cite you on the questions your buyers ask. The GEO readiness checklist puts access, readability and entity checks in one list, and a free StarRise AI Readiness Report shows whether the main AI crawlers are open or blocked on your site alongside how ChatGPT describes you.

Frequently asked questions

Does llms.txt improve AI search rankings or citations?

There is no good evidence that it does on its own. The AI search crawlers documented by OpenAI, Google, Perplexity and Anthropic are controlled through robots.txt and user-agent rules, and none of that documentation makes llms.txt a requirement. Treat it as a helpful summary rather than a ranking factor.

Is llms.txt the same as robots.txt?

No. robots.txt tells crawlers what they may and may not fetch, and major AI search bots follow it. llms.txt is a proposed Markdown summary of your key pages for AI agents, and it doesn’t allow or block anything.

What does "agent-friendly website" mean?

A site that AI engines and AI agents can reach, read and understand without a human browser. In practice, crawlers are allowed through robots.txt and your CDN, key content is in the raw HTML, pages are clearly structured, URLs are stable, and facts about the business are stated plainly and consistently.

Do AI crawlers run JavaScript?

Don’t count on it. Many AI crawlers read the HTML your server sends rather than rendering the page like a browser. Put the content that matters, such as product details, prices and FAQ answers, in the initial HTML, and check by viewing the page source.

Should I block AI bots to protect my content?

Separate training from search. Blocking training crawlers such as GPTBot or ClaudeBot is a business choice and doesn’t remove you from AI search. Blocking search bots and user fetchers, such as OAI-SearchBot, PerplexityBot or Claude-SearchBot, removes you from those engines’ answers.