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
- Autonomous agents (and the models that drive them) are starting to act, not just read. They need explicit permission boundaries.
- A clear
agents.txtreduces abuse and tells well-behaved agents exactly how to use your site safely. - It is one of the 8 surfaces AI-visibility checkers now score — sites without it score lower.
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
- Drop the file at
https://yourdomain.com/agents.txt. - Score your site on our AI Visibility Index.
- Want it done for you? Get the Full AI Visibility Report — €19.
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.