Setup guide · 3 minutes · Beginner
Install llms.txt on Netlify
On Netlify, anything in your publish directory at the project root becomes available at the corresponding URL. Adding <code>llms.txt</code> takes about three minutes.
01
Find your publish directory
- Open your project's
netlify.tomlor check the deploy settings in the Netlify dashboard. - Look for the
publishfield. Common values:public,dist,build,_site(Jekyll),out(Next.js export),.next(Next.js). - If using a static site generator: place
llms.txtin thepublic/orstatic/directory of your source — the generator will copy it to the publish directory.
02
Add the file
- Place your
llms.txtat the root of the publish directory (or thestatic//public/source directory). - Commit and push to your Git repository.
- Netlify will rebuild and deploy automatically.
- Visit
https://yoursite.com/llms.txtafter the build completes.
!!
Common pitfalls
- Wrong directory: Files placed in
src/or other source-only directories won't be included in the build output unless your generator copies them. Always use the static asset directory. - Build cache: If your file appears in the repo but not at the URL, trigger a clean build from Netlify dashboard's Deploys → Trigger deploy → Clear cache and deploy.