ai.txt is an emerging IETF standard that allows website owners to communicate machine-readable policies to AI crawlers and LLM agents.

How ai.txt differs from robots.txt

Featurerobots.txtai.txt
PurposeControl crawling accessControl use of content (training, retrieval, citation)
StandardLong-standing (1994)Emerging IETF draft (2025)
Supported byAll major crawlersGPTBot, ClaudeBot, Google-Extended (partial)
GranularityPath-levelUse-case level (train, retrieve, cite)

Basic ai.txt template

Create a file at /ai.txt on your website root:

# ai.txt - AI Crawler Policies for example.com
# Allow all AI crawlers for retrieval (real-time answers)
User-agent: *
Retrieve: allow
# Block training on my content
Train: disallow
# Allow citation with attribution
Cite: allow
# Block specific paths from AI retrieval
Disallow: /private/

Directives explained

DirectiveMeaningValues
TrainUse content to train/fine-tune AI modelsallow, disallow
RetrieveUse content in real-time retrieval (RAG)allow, disallow
CiteInclude citations/sourcesallow, disallow, require-attribution
DisallowPaths AI crawlers cannot accessURL paths

How to link ai.txt from HTML

Add to of your pages:

<link rel="ai-text" href="/ai.txt" type="text/plain">

Will AI crawlers respect ai.txt?

  • GPTBot has announced support for ai.txt (as of 2026)
  • Google-Extended has partial support (Training directives)
  • ClaudeBot supports the Train directive
  • PerplexityBot supports Retrieve and Cite

Not all crawlers support all directives yet, but the standard is rapidly being adopted.

Check your AI SEO Score — free, instant, no sign-up required

Get My Free AI SEO Score → View Full Audit Report