Guides · AI search
llms.txt in every language: what it is and how to serve one per language
llms.txt is a markdown file at the root of a website that gives AI tools a map of it: what the site is, and links to the pages worth reading. A multilingual site needs one per language, so a tool working in German is sent to the German pages. Here's what goes in the file, how to create one, and how Lionrapid's edge proxy serves a version for every language you publish, built from the one you already have.
What is llms.txt?
llms.txt is a proposal published by Jeremy Howard on 3 September 2024 at llmstxt.org: a plain markdown file at /llms.txt that tells a language model what your site is and where its best pages are. Search engines have sitemaps; this is the short, readable version for AI tools and agents, with a line about each page instead of a bare list of addresses.
The format is simple:
- an H1 with the name of the site (the only required part)
- a short summary as a blockquote
- optional notes
- sections under H2 headings, each a list of links in the form
- [Page name](URL): what it covers
# Example Co
> Example Co makes invoicing software for small businesses in the Nordics.
## Product
- [Pricing](https://www.example.com/pricing): Plans and what each one includes
- [Invoicing](https://www.example.com/invoicing): Send, track and remind
## Guides
- [VAT in Finland](https://www.example.com/guides/vat-finland): Rates and filing deadlinesllms.txt vs robots.txt vs sitemap.xml
| File | Who it's for | What it says |
|---|---|---|
| robots.txt | Every crawler | Which bots may fetch which paths |
| sitemap.xml | Search engine crawlers | Every page address, with dates |
| llms.txt | AI tools and agents | What the site is, and the pages worth reading, with a line on each |
They work together: robots.txt lets the crawler in, the sitemap lists everything, and llms.txt points at what matters.
Why a multilingual site needs one per language
An llms.txt that lists only English pages sends every AI tool to English, whatever language it's working in. A tool answering in German should find your German pages; one answering in Finnish, the Finnish ones.
The clean layout mirrors your language paths: one file at the root for the default language and one under each language path (/de/, /fr/ and so on), each linking to the pages in its own language. A language you haven't reviewed yet shouldn't have one: an AI tool following it would read a draft.
How to create an llms.txt
- Name and summary. The H1 is your company or site name; the blockquote says what you do and for whom, in a sentence or two.
- Pick the pages. Product and pricing pages, the guides that answer your buyers' questions, your documentation. Leave out legal pages, tag archives and anything thin.
- One line per page. Its title as the link text, then what the page answers.
- Group them under H2 sections: product, guides, docs.
- Generate it, don't hand-write it. Build it from your CMS's page titles and descriptions so it never goes stale. Lionrapid's own map for AI tools is rendered from our CMS on every request, from each published page's search title and description.
- Publish it at
/llms.txtand check that robots.txt doesn't block it.
One per language, served by Lionrapid
Put your site behind Lionrapid's edge proxy and keep the one file you have. For every language you publish, the proxy serves /{lang}/llms.txt built from yours, with every link to your own site pointing at that language's pages: the German file sends AI tools to /de/pricing, the Finnish one to /fi/pricing. Links to other sites stay as they are.
A language you're still reviewing gets no file, just as it stays out of hreflang and the sitemaps. Add a page to yours and every language version follows.
The same proxy serves the translated pages those links lead to, from the server, with hreflang, a canonical per language, a translated title, meta and structured data, and a sitemap per language. One DNS record at your domain: no generator to run per language, no files to keep in sync. Why it matters for AI answers: generative engine optimization in every language.
One file from you. One in every language for AI.
FAQ
Your questions, answered
A markdown file at the root of a website, proposed at llmstxt.org in September 2024, that gives AI tools a short map of the site: its name, a summary and links to the pages worth reading, each with a line on what it covers.
At the root of the site, as /llms.txt, served as plain text. A multilingual site adds one per language under its language path, such as /de/.
On a multilingual site, yes: each language's file should link to the pages in that language, so an AI tool working in German reads your German pages. Lionrapid's edge proxy serves one for every published language, built from your own.
Write an H1 with your site's name, a short summary as a blockquote, then H2 sections listing your key pages as markdown links with a line on each. Generate it from your CMS so it stays current.
It gives AI tools a clean map of your best pages, in your words. The pages it points to still have to be readable and worth quoting: the GEO guide covers the rest.
Give AI tools a map in every language
Keep one file; the edge proxy serves it for every language you publish. Website routes come with every paid plan, from EUR 9.90 a month.