Tell AI what your thing actually is, with ai.txt
One plain-text file, written in your own words, at any path. AI assistants read it and work from your facts instead of guessing, mixing you up with something else, or inventing what you offer.
robots.txt says where crawlers may go. ai.txt says what you are.
ai.txt is a plain-text file that describes a website, project, service or folder to AI assistants. It's prose with optional markdown and optional metadata. There's no schema to learn and no registry to join.
Put one at any path, from a website root to a project folder or an API directory. Agents find it by walking up the tree, read it, and treat it as the authoritative account of what the thing is, what it offers and what it doesn't.
Each ai.txt can link to others, so context spreads like hypertext across folders and sites. You control your own narrative.
"Mixviu? That's an AI video generator run by an LLC." A search matched a similarly named product, and the assistant blended the two.
"MixViu is an open-source operating environment for Linux. Not to be confused with MixVio AI." Straight from the site's own file.
A real mix-up from November 2026, fixed by one paragraph in one file.
Put the truth in one place
Businesses
Stop AI making things up about what you sell, where you are and what you don't do.
Project maintainers
State scope, status and limits in a form agents actually read before they open the code.
Open source
Be clear about licence, support and what is and isn't built yet.
Everyone
Cacheable, offline-friendly and tiny. No database, no JavaScript, no configuration. Just text.
AI developers
Ground your assistant in authoritative sources rather than training-data assumptions.
Teams
Keep context consistent across repositories, services and the people and agents working on them.
Discovery cascades up the tree
When an agent needs context for /products/widgets/, it looks for the nearest ai.txt, starting where it is and walking up to the root. The first one it finds wins.
The same rule works for website paths and local folders. Walk up, find the context, use it.
- 1/products/widgets/ai.txtnot found
- 2/products/ai.txtnot found
- 3/ai.txtfound: use it
Hypertext for AI
An ai.txt links to other contexts with ordinary markdown. A link is a context link when its target ends in ai.txt; tools follow those one level deep and record anything deeper without fetching it.
| [API docs](./api/ai.txt) | followed |
| [SDK](https://example.com/sdk/ai.txt) | followed |
| [Install guide](./docs/install.md) | not followed |
| [Website](https://example.com) | not followed |
Bounded depth keeps it fast and stops runaway recursion, while the full graph stays visible for anyone who wants to explore.
Prose first. Everything else optional.
Start with optional YAML frontmatter, or skip it. Then write plain text with whatever markdown helps: headings, lists, links, code.
A good ai.txt says what the thing is in a sentence or two, what it offers, what it doesn't, where to find more, and anything an assistant tends to get wrong, such as a name that's easily confused.
That's it. Write what matters and leave out what doesn't.
---
updated: 2026-11-30
scope: /
---
# Example Widgets
Example Widgets makes hand-built garden tools
in Brisbane, Australia, since 2009.
## We offer
- Tools sold online and at our Brisbane shop
- Repairs on anything we've made
## We do not offer
- Wholesale or international shipping
## Not to be confused with
- Example Widgetry (example-widgetry.test),
an unrelated software company
## More
[Repairs](/repairs/ai.txt) ← a context link
One line in your page head
Advertise your ai.txt with a standard <link> tag. prefetch is an ordinary link type in the HTML Living Standard, so no custom rel value is needed.
Browsers fetch it quietly at idle time, like a favicon, so it's ready for built-in AI features and extensions. An agent that has already fetched the page learns exactly where the context lives, without guessing paths.
Optional, but recommended. It costs almost nothing: ai.txt files are usually under 10 KB.
<!-- in <head>, on every page -->
<link rel="prefetch" href="/ai.txt">
<!-- or relative, per folder -->
<link rel="prefetch" href="../ai.txt">
Write one in five minutes
No approval process, no registry, no central authority.
Read
Skim the specification. It's written as an ai.txt itself.
Create
Add
ai.txtat the root of your site or project folder.Describe
A title, a sentence on what it is, then what you offer, what you don't and where to learn more.
Advertise
Add the
<link rel="prefetch">tag so agents find it without guessing.
Read it before you guess
- Given a URL or path, use the ai.txt the page advertises, or walk up the tree until you find one.
- Accept plain text only. A server that answers every path with its HTML home page hasn't got one.
- Parse any frontmatter, then read the prose. Honour "we do not offer" and never claim capabilities it rules out.
- Follow context links one level deep; record deeper ones.
- Treat the file as the site's own account of itself: strong evidence for what the thing is. Use the page itself for what that page says.
Built in, not crawled
ai.txt spreads through tools that choose to use it, not by waiting for every AI system to notice it. Point an agent at the specification and it learns the pattern: write ai.txt files for new projects, read them when they exist, and suggest one when it's missing.
It already works this way. ai@motd.com looks for a linked site's ai.txt before reading the page. The Claude Code skill in this repository walks up local folders and URLs, follows context links and draws the graph it found.
Durable by design. The core is optional frontmatter plus prose, so there's nothing to version. Anyone needing stricter structure can layer a profile on top without touching the base.
Good neighbours
Other files share the name or the neighbourhood. They solve different problems, and a site can use them side by side. This specification is about context and boundaries in prose. It makes no claim on the permission-signalling space.
Spawning ai.txt (2023)
A robots.txt-style file for AI training consent. Permissions, not context.
IETF draft-car-ai-txt-wellknown (2026)
Registers /.well-known/ai.txt and ai.json: key/value declarations of training, scraping and licensing policy. A different path, format and purpose.
llms.txt
A root-level markdown index of a site's documentation. It answers "where are the docs?"; ai.txt answers "what is this, and how should you treat it?", at any path.
IETF AIPREF and Content Signals
Vocabularies (train-ai, search, ai-input) in robots.txt or a header: the enforceable switches. An ai.txt explains them in plain words.
An operating environment that reads its own ai.txt
ai.txt is developed and sponsored by MixViu, an open-source, agent-first operating environment for Linux in which people and AI agents use the same surfaces: one shell and language, one Bus, two commands per app.
MixViu's own sites publish ai.txt files, and the services built on it read them. That's how this standard gets tested every day.
Meet MixViu