How to Add LLMs.txt to Shopify

Get your llms.txt file live on your Shopify store

Quick summary: Shopify does not let you upload files directly to the root domain. You will need to use the theme file approach or a workaround. The file will be accessible at yourstore.myshopify.com/llms.txt or your custom domain equivalent.

Method 1: Theme File Upload (Recommended)

  1. Generate your llms.txt file using our free tool
  2. Log in to your Shopify admin
  3. Go to Online Store > Themes
  4. Click Actions > Edit code on your active theme
  5. In the Assets folder, click Add a new asset
  6. Name the file llms.txt and paste your generated content
  7. Save the file
  8. Create a URL redirect: Go to Online Store > Navigation > View URL redirects
  9. Add redirect from /llms.txt to /assets/llms.txt
  10. Test by visiting yourstore.com/llms.txt

Method 2: Page Redirect Workaround

  1. Generate your llms.txt file
  2. Go to Online Store > Pages in Shopify admin
  3. Create a new page with title "LLMs.txt" (set it to hidden from navigation)
  4. In the page content, paste your llms.txt content inside a pre-formatted code block to preserve formatting
  5. Save the page and note the handle (e.g., /pages/llms-txt)
  6. Go to Navigation > URL redirects
  7. Create redirect from /llms.txt to your page URL

Method 3: Using a Third-Party App

If you prefer a no-code approach, some Shopify apps allow file uploads and custom URL management. Search the Shopify App Store for "file manager" or "custom pages" apps. Note that most paid apps are unnecessary for this simple task — the theme file method above is free and reliable.

Important Shopify Notes

Troubleshooting

Redirect not working

Shopify URL redirects can take a few minutes to propagate. Clear your browser cache and try again. Ensure there is no conflicting page at /llms.txt.

File shows HTML instead of plain text

If using the page method, ensure the content is in a pre-formatted block. For the asset method, the file should serve as text/markdown automatically.

Ready to create your file?

Generate Your LLMs.txt