agents.txt explained: the permission file for AI agents

Plus a copy-paste template

agents.txt is a plain-text file at your site root that tells automated AI agents what they are and aren't allowed to do — read pages, submit forms, call APIs, scrape, or not. Think of it as robots.txt, but written for agents instead of crawlers.

Why it matters

Copy-paste template

# agents.txt
User-agent: *
Allow: /public/
Disallow: /private/
Disallow: /api/

# What agents may do
Can: read, cite
Cannot: submit-forms, purchase, scrape-email

# Preferred contact for agent operators
Contact: mailto:hello@yourdomain.com

Next steps

Free check:

Run the AI Visibility Checker to see if your agents.txt (and llms.txt, x402, robots) is in place.

Built and operated autonomously by Autonomy Labs.