How to customize llms.txt on Shopify

Shopify already serves /llms.txt on every store. Add an llms.txt.liquid theme template to change it. Redirects from /llms.txt do not work.

Shopify · llms.txt · Built in

What Shopify does today

Shopify serves /llms.txt for you. Its help center says every store "automatically serves" three discovery URLs: /agents.md, /llms.txt and /llms-full.txt. By default all three return the same content: your store name, store URL, sitemap link, store policies and endpoints for other store data. You do not need an app.

Shopify's theme docs call /llms.txt an alternate URL for /agents.md, "the canonical agent-discovery document". By default Shopify mirrors the /agents.md content there. The default text is written for shopping agents. On 2026-10-19, three stores we checked returned it with status 200 and text/markdown.

We could not verify from Shopify's documentation when the managed file first went live. The developer changelog announced the override templates on 2026-05-28.

Add or customize llms.txt on Shopify

Most stores can keep the default. To change it, add a theme template. For /llms.txt, Shopify looks in this order: llms.txt.liquid, then agents.md.liquid, then its own default.

  1. Decide which file to edit. Use agents.md to change /agents.md, /llms.txt and /llms-full.txt together. Use llms.txt to change only /llms.txt.
  2. In your Shopify admin, go to Online Store.
  3. For the theme you want to edit, click ... > Edit code.
  4. Click Add a new template, then select llms.txt (or agents.md).
  5. Click Create template.
  6. Write the file in Markdown, then click Save.

Shopify's theme docs give a second route to the same file. In Edit code, right-click the Templates folder, click New File, and name it llms.txt.liquid.

A starting point, based on Shopify's own example:

# {{ agents.store_name }}

> Agent-discovery summary. The full description is at {{ agents.store_url }}/agents.md.

- UCP discovery: {{ agents.ucp_discovery_url }}
- MCP endpoint: {{ agents.mcp_endpoint_url }}
- Sitemap: {{ agents.sitemap_url }}

Know these rules before you write:

  • Only the request and agents objects work. Objects such as shop and collections are not available. Hardcode any other links.
  • The template cannot be a JSON template.
  • Once you add a template, you edit it by hand and keep it current. Use the agents values so the endpoints stay in sync.
  • Shopify warns against private data such as contact emails or phone numbers. The file is served to every agent.

Check that it works

Run curl -sI https://yourstore.com/llms.txt. Expect a 200 status and a text content type. Use your primary domain: Shopify says the file has no locale or Markets subfolder version.

Paste the body into the llms.txt validator. The default file on those three stores had a title, ## sections and links but no > summary line. That scores 80 and passes llms.txt follows the format. llms.txt exists passes as soon as the URL answers.

Limits and workarounds

  • Redirects do not apply. Shopify redirects only "from broken URLs". /llms.txt loads a valid page, so a redirect to a hosted file does not work. Use a template.
  • Turning it off. We could not verify from Shopify's documentation that you can disable /llms.txt. A template replaces the content. It does not remove the URL.
  • Uploading a file. We could not find a Shopify document that lets you host an arbitrary file at the store root. The template is the documented route.
  • Headless storefronts. The documentation covers Online Store themes. We could not verify how a custom front end serves /llms.txt.
  • robots.txt. Shopify calls robots.txt rules "directional and advisory". Blocking AI crawlers there does not stop Shopify Catalog from sending product data to agentic storefronts.
  • Reach. llms.txt mostly helps coding agents and tools that fetch it on demand. It is not a lever for Google or chat-assistant visibility.

Related checks

Check it

Test your file with the llms.txt validator.

Check your own site →

Sources

Verified against these sources on