How to Add llms.txt to Shopify (and Edit Shopify's Default)

If you want to add llms.txt to Shopify, check your store first. Shopify says every store automatically serves /llms.txt, /llms-full.txt and /agents.md, filled with content Shopify writes for you. This guide shows what's in your Shopify llms.txt, how to edit it if you need to, and how your products actually reach ChatGPT and other AI shopping assistants.
The Short Answer
Every Shopify store already serves llms.txt. Shopify writes an /agents.md file for AI shopping agents and serves the same content at /llms.txt and /llms-full.txt. To change it, add a theme template under Online Store → Themes → Edit code: an llms.txt template changes that URL only, and an agents.md template changes all three. Shopify's advice is that most stores don't need to. To get products into ChatGPT and other AI shopping answers, Shopify points merchants to complete product data in Shopify Catalog, which feeds its Agentic Storefronts channel.
Check What Your Store Already Serves
Open these two URLs on your store's primary domain:
yourstore.com/llms.txtyourstore.com/agents.md
If nobody has customized them, both show the same file, written by Shopify. On the five stores we checked, all three URLs (/llms-full.txt too) loaded directly, with no redirect, and differed only in a closing line naming the file.
Use the root of your primary domain even if you sell in several markets. Shopify serves /agents.md without a market prefix such as /en-ca/, and says the file "has no localized counterpart."
What's in Shopify's Default File
Here's the start of a real store's default file (Allbirds, trimmed):
# Agent Instructions — Allbirds
You can browse products and shop at Allbirds's online store, https://www.allbirds.com, on your user's behalf. This guide covers the Shop skill and UCP integration, directly or through browser-based WebMCP tools.
## Shop skill — recommended
Use the [Shop skill](https://shop.com/SKILL.md) to help your user shop with this store. Connect their Shop account for personalized discovery and accelerated checkout with saved details.
[...]
## UCP integration
[...]
1. **Discover the store** — `GET https://www.allbirds.com/.well-known/ucp` returns its UCP profile, including capabilities, service endpoints, and payment handlers.
2. **Discover available tools** — Connect to the MCP endpoint advertised in the profile (`https://www.allbirds.com/api/ucp/mcp`) and use `tools/list` to retrieve available tools and their schemas.
The rest of the file covers how agents should behave, read-only browsing URLs, links to your store policies and a note about Shopify. Across the five stores we checked, only the store name, URL and list of policies changed.
Shopify describes agents.md as "the canonical, agent-facing description of a store. It tells AI agents and shopping assistants how to discover the store's commerce capabilities and how to transact with it." So the default is a set of instructions for shopping agents: where your store's checkout and product tools live, and how to use them. It doesn't describe what you sell, and Shopify says it "deliberately omits contact details."
The original llms.txt proposal describes something else: a short summary of a site plus a curated list of its most useful pages (see how to create an llms.txt file).
Should You Change It?
For most stores, no. Shopify says "for most stores, the managed file is all you need," and its llms.txt template documentation advises: "In most cases, don't add a separate llms.txt.liquid template." Shopify maintains the default. With your own template, you "take responsibility for keeping its content current."
There's one case where we'd customize. Shopify doesn't recommend it by default, so treat this as our suggestion: you want /llms.txt to do what the original proposal intended and give AI assistants that fetch it a short map of your store. That means what you sell, plus links to your main collections and help pages such as a sizing or care guide. Shopify allows for this as "an advanced requirement for /llms.txt to diverge from /agents.md."
If you do it, override /llms.txt only and leave /agents.md on Shopify's default. Shopping agents keep the commerce instructions Shopify maintains, and /llms.txt gets the map. The trade-off is that a tool reading only /llms.txt will see your map instead of Shopify's instructions, so the example below links to /agents.md. And don't expect the map to change what AI assistants recommend. The last section covers what feeds AI shopping answers.
How to Edit Your Shopify llms.txt
Shopify added theme templates for all three files in May 2026. To add one:
- In your Shopify admin, go to Online Store → Themes.
- Next to your current theme, click the … button, then Edit code.
- Click Add a new template.
- Choose llms.txt to change
/llms.txtonly, or agents.md to change all three URLs, then click Create template. - Write your file in Markdown, then save.
- Open
yourstore.com/llms.txtand click a few of its links to check them.
If you choose agents.md, you're replacing the instructions shopping agents use to reach your checkout. Shopify recommends keeping the UCP and MCP endpoints in it through the agents object instead of hardcoding the URLs.
These rules come from Shopify's documentation:
- The template accepts "standard text or Markdown and Liquid," and it can't be a JSON template.
- Only two Liquid objects work here:
requestandagents. Others, such asshopandcollections, render blank, so you can't loop over your products. Write collection links out by hand. - The
agentsobject gives youstore_name,store_url,sitemap_url,currency,ucp_versions,ucp_discovery_urlandmcp_endpoint_url. - To go back to the default, delete your template. Shopify then uses your
agents.mdtemplate if you have one, and its own default if you don't.
Templates are theme files, so check /llms.txt again whenever you switch or update themes.
Here's an example llms.txt.liquid for a made-up ceramics store:
# {{ agents.store_name }}
> Handmade stoneware mugs and plates from Portland, Oregon. We ship to the US and Canada.
- Store: {{ agents.store_url }}
- Sitemap: {{ agents.sitemap_url }}
- Shopping agents: see {{ agents.store_url }}/agents.md for checkout and product tools
## Shop
- [Mugs]({{ agents.store_url }}/collections/mugs): Stoneware mugs, 8 to 16 oz, dishwasher safe
- [Plates]({{ agents.store_url }}/collections/plates): Dinner and side plates in six glazes
## Help
- [Shipping policy]({{ agents.store_url }}/policies/shipping-policy): Ships in 2 to 3 business days
- [Care guide]({{ agents.store_url }}/pages/care): How to wash and store stoneware
The "Shopping agents" line tells agents where Shopify's commerce instructions still live.
If you'd rather not write the link list from scratch, our free llms.txt generator can draft one from your Shopify store's URL. Paste it into the template and cut it down to the pages that matter. After that it's yours to maintain, so update it by hand when your collections change. Liquid tries to run anything inside {{ }} or {% %}, so delete those characters if they turn up in the pasted text.
Check the result with our llms.txt validator. On Shopify's untouched default it passes the basic checks and raises one warning, for the missing one-line summary. That's expected, because Shopify wrote the default as instructions for shopping agents.
Apps, Redirects and Yoast
Older guides tell you to install an app or to redirect /llms.txt to a file you upload. You don't need an app now, and the redirect won't work.
- Redirects. Shopify says "you can redirect only from broken URLs… If the URL still loads a valid webpage, then the URL redirect won't work."
/llms.txtnow loads Shopify's file, so by that rule a redirect from it won't fire. App proxies relied on the same kind of redirect, because they live under prefixes such as/apps/and/tools/, never at the root. - Apps. Shopify says "you don't need a third-party app to generate these files." If an app used to serve your llms.txt, open
/llms.txt. If you see Shopify's default, the app isn't serving that URL any more. - Yoast SEO for Shopify. Yoast added an opt-in llms.txt on 31 March 2026. It rebuilds the file each week from your store data, including your 10 most-sold products and up to five of your largest collections. In June 2026 Yoast said the file "is now generated as a theme file that stays in sync with your active theme." Its announcements don't say which template it writes.
Pick one route. As on WordPress, only one version can be live at /llms.txt, so if you try Yoast and a hand-written template, open /llms.txt and /agents.md afterwards to see which version each serves.
Will llms.txt Get Your Products Recommended by ChatGPT?
Not as far as the evidence shows, and Shopify doesn't suggest it will. Its documentation says: "The agent discovery files are separate from Shopify Catalog, and they don't replace any Shopify Catalog capabilities." For discoverability with AI agents, it tells merchants to "focus on having complete and well-structured product information in Shopify Catalog, and on following SEO best practices." The wider research, which we cover in Is llms.txt Dead?, hasn't shown the file changing what AI assistants cite.
Shopify Catalog and Agentic Storefronts
Shopify's Agentic Storefronts "lets customers discover and purchase your products in AI channels, such as ChatGPT, Google AI Mode and Gemini, Microsoft Copilot, and Meta." Shopify says it's "active by default for eligible stores," and you manage it under Sales channels → Agentic in your admin. Your product data reaches those channels through Shopify Catalog.
To be eligible, Shopify lists these requirements:
- Your store is on the Starter plan or higher and isn't in private mode.
- Products have a title, at least one image and a price above zero.
- Products are published to your Online Store (or Hydrogen or Headless) channel and aren't unlisted or hidden from search engines.
- Your Terms of service, Privacy policy and Return and refund policy are filled in.
- You've agreed to the Agentic Storefronts supplemental terms, and your account is in good standing.
Each channel adds its own conditions:
| Channel | Shopify's main condition |
|---|---|
| ChatGPT | Your store sells to customers in the United States (it can be based elsewhere). Shopify says there are no fees. Checkout inside ChatGPT is on by default, and you can turn it off |
| Google AI Mode and Gemini | You sell to the US, Canada or Australia and have a Google Merchant Center account through the Google & YouTube channel. Still rolling out |
| Microsoft Copilot | Your store sells to customers in the United States |
| Meta | Available in 11 countries. Shoppable ads need the Facebook & Instagram channel |
Being eligible doesn't mean being recommended. Shopify says inclusion in Catalog "doesn't guarantee that a product will appear in a specific AI answer," and "each channel controls the final ranking, wording, and shopping experience." What you control is the product data: clear titles, descriptions that answer what shoppers ask (materials, sizes, who it's for), good images, and accurate prices and stock.
Start in Sales channels → Agentic to review your setup, then work through the requirements above. To see whether AI answers actually name your store, our guide to getting cited by ChatGPT has a repeatable way to check.
Frequently Asked Questions
Can I delete Shopify's llms.txt? Shopify doesn't document a way to turn the files off. What you can do is replace their content with a theme template. If you later delete that template, the URL falls back to your agents.md template if you have one, and to Shopify's default if you don't.
Do I need llms-full.txt on Shopify? Not usually. By default Shopify serves the same content at /llms-full.txt as at /agents.md, for older AI crawlers that look for that file name. Add an llms-full.txt.liquid template only if you want that one URL to serve something different.
How is agents.md different from llms.txt on Shopify? By default they carry the same content. Shopify calls /agents.md the canonical discovery file for AI agents and keeps /llms.txt and /llms-full.txt for older AI crawlers that look for those names. Your theme's code may also contain an AGENTS.md file. Shopify says that one gives coding agents context about how the theme is built and isn't served on your storefront. That's the repository format we explain in our guide to AGENTS.md, and it has nothing to do with your storefront files.
Does llms.txt help Shopify SEO? There's no evidence it does. Shopify doesn't claim a ranking effect, and for discoverability with AI agents it tells merchants to focus on complete, well-structured product information in Shopify Catalog and on SEO best practices.
Do headless and Hydrogen stores get these files? Shopify's documentation covers the files through your Online Store theme and doesn't say what headless storefronts get. A headless front end is its own app, so open /llms.txt and /agents.md on its domain. If they return 404 and you want the files, add them in that app.