Skip to content

ai.txt

The ai.txt file is a machine-readable declaration of how AI systems are permitted to use your content for training, inference, summarization, and attribution.

A plain-text manifest at your site root that AI crawlers and inference systems can fetch to understand your licensing terms. It complements robots.txt (which controls access) by specifying usage rights once the content has been read.

robots.txt answers “can you crawl this?” ai.txt answers “what can you do with what you crawled?” As AI training and inference become regulated, having an explicit, parseable licensing statement at a known location reduces ambiguity for crawler operators and gives you a defensible record of your stated terms.

DirectiveValuesPurpose
User-Agent* or specific botWhich AI systems the rules apply to
Allow-AI-TrainingYes / NoMay this content be used to train models?
Allow-AI-InferenceYes / NoMay this content be retrieved at inference time?
Allow-AI-SummarizationYes / NoMay this content be summarized in AI answers?
Allow-AI-AttributionRequired / OptionalMust AI systems cite the source?
LicenseSPDX identifierThe content license (e.g., CC-BY-4.0)
AttributionFree textHow you want to be credited
ContactURL or textWhere to direct licensing questions
# ai.txt - AI Content Licensing
#
# Site: Example
# URL: https://example.com
User-Agent: *
Allow-AI-Training: Yes
Allow-AI-Inference: Yes
Allow-AI-Summarization: Yes
Allow-AI-Attribution: Required
# Content License
License: CC-BY-4.0
Attribution: Example (https://example.com)
Contact: See https://example.com for contact information

Place ai.txt at the root of your site, alongside robots.txt:

https://your-site.com/ai.txt

If your site already has an ai.txt, AEOrank’s generated file is a recommended template — review and merge with your existing terms before replacing.