Setup guide · 5 minutes · Beginner
Install llms.txt on Shopify
Shopify won't let you upload a plain text file directly to the store root, but there are two reliable workarounds.
00
Before you start
01
Method 1: theme.liquid template (recommended)
- From your Shopify admin, go to Online Store → Themes.
- On your live theme, click Actions → Edit code.
- Under Templates, click Add a new template.
- Choose template type page, format liquid, name it
llms.txt. - Paste the
llms.txtcontent into the new file. Remove all Liquid template tags so only plain text remains. - Save. Visit
https://yourstore.myshopify.com/pages/llms.txtto confirm. Note: Shopify serves it at/pages/llms.txt, not/llms.txt.
02
Method 2: Files section (limited)
- Go to Content → Files in your Shopify admin.
- Upload your
llms.txtfile. - Copy the public URL Shopify generates.
- Important: this URL will be on Shopify's CDN, not your store root. AI crawlers may not find it. Method 1 is preferred.
!!
Common pitfalls
- Root path limitation: Shopify does not allow files at the literal store root.
/pages/llms.txtis the closest you can get on most plans. - Liquid tags in content: If you paste content with curly braces, Shopify will try to parse them as Liquid. Strip any
{{ }}or{% %}patterns.