Skip to content

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:

  1. an H1 with the name of the site (the only required part)
  2. a short summary as a blockquote
  3. optional notes
  4. sections under H2 headings, each a list of links in the form - [Page name](URL): what it covers
A short example
# 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 deadlines

llms.txt vs robots.txt vs sitemap.xml

FileWho it's forWhat it says
robots.txtEvery crawlerWhich bots may fetch which paths
sitemap.xmlSearch engine crawlersEvery page address, with dates
llms.txtAI tools and agentsWhat 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

  1. 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.
  2. 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.
  3. One line per page. Its title as the link text, then what the page answers.
  4. Group them under H2 sections: product, guides, docs.
  5. 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.
  6. Publish it at /llms.txt and 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

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.