Adding llms.txt to Magento (Adobe Commerce)
Published:
Magento (Adobe Commerce) reaches an llms.txt two ways: an extension that generates it from your catalog, or a static file you control in the web root.
Option 1 — an LLMs.txt extension (auto-generated)
Marketplace extensions generate /llms.txt from your store data. They typically let you choose which entities feed the file (products, categories, CMS pages) and how often it regenerates — compatible with current Magento 2.4.x. Best for large catalogs that change often.
Option 2 — a static file in the web root
On self-hosted Magento you control the server, so place a hand-written llms.txt in the public web root (the pub/ directory, alongside index.php). It's served at /llms.txt directly — best when you want to curate the content by hand.
Keep it lean
Don't dump the whole catalog. Link your top categories, best sellers and key policy pages under H2 headings, with absolute HTTPS links — a short file is easier for an agent to use.
Validate
Paste your domain into the validator to confirm the file is reachable and every link resolves. Re-check after big catalog changes.