agents.md is a Markdown file that tells AI agents how to work with something. On a Shopify store, it’s a page at yourstore.com/agents.md that Shopify writes and serves for you. It tells shopping agents how to find your products, use your cart and checkout with the buyer’s approval, and read your policies.

Shopify calls it your store’s “canonical agent discovery URL”. You already have one. For most stores, the default needs no editing, but it’s worth checking what it points to.

Looking for AGENTS.md for code? Most searches for “agents.md” are about software. There, AGENTS.md is “a README for agents”: a file in a code repository that tells coding tools like Cursor, Gemini CLI or GitHub Copilot how to build, test and style the project. Over 60,000 open-source projects use it, and the Agentic AI Foundation (part of the Linux Foundation) looks after the format. A Shopify theme can have one too, for whoever codes your theme, but Shopify says it’s a different file and it never shows on your storefront. The rest of this page is about the storefront one.

What does a Shopify store’s agents.md say?

Here’s a real one, from a well-known brand, with its name swapped for “Example Store”, trimmed where it repeats and with the formatting simplified. We read the same file on 13 Shopify stores, and every one was Shopify’s default with only the names and links changed.

# Agent Instructions — Example Store

You can browse products and shop at Example Store's online store,
https://www.example-store.com, on your user's behalf.

## Shop skill — recommended
Use the Shop skill (https://shop.com/SKILL.md) to help your user shop
with this store. [...] accelerated checkout with saved details.

## UCP integration
1. Discover the store — GET https://www.example-store.com/.well-known/ucp
2. Discover available tools — connect to .../api/ucp/mcp [...]
3. Shop — find products, manage carts, prepare checkout, and complete
   buyer-authorized purchases.

## Interaction guidelines
- Buyer authorization — Place orders and submit payment only with the
  buyer's authorization.
- Agent traffic — Agents must identify their requests as agent-initiated.
- Rate limits — Back off on 429 responses [...]

## Read-only browsing
- Discover public URLs through /sitemap.xml.
- Read product pages at /products/{handle}.

## Store Policies
- Privacy policy: .../policies/privacy-policy
- Terms of service: .../policies/terms-of-service
- Refund policy: .../policies/refund-policy
- Shipping policy: .../policies/shipping-policy

## Platform
This store is built on Shopify [...]

What each part is for:

  1. Shop skill. Points agents to Shopify’s own shopping add-on, which works across Shopify stores and can use a shopper’s saved Shop Pay details. This is Shopify promoting its own tool, on your domain.
  2. UCP integration. The technical way in. An agent reads your store’s profile at /.well-known/ucp, then connects to your store’s MCP endpoint to search, build a cart and start checkout. If those letters are new to you, read our UCP guide and Shopify MCP explained.
  3. Interaction guidelines. The house rules: no order or payment without the buyer’s OK, agents must say they’re agents, and slow down when told to.
  4. Read-only browsing. Where an agent can just look around: the sitemap, product pages and collections.
  5. Store policies. Links to the policies you’ve published in Shopify. This is the only part that changes with how you run your store.
  6. Platform. A short note that the store runs on Shopify, with links for developers. It’s about Shopify, not about you.

Notice what’s missing: your products, your best sellers, what makes you different. That’s on purpose. Product information travels through Shopify Catalog, which Shopify calls the authoritative product feed, and this file “doesn’t replace” it.

Screenshot of a real Shopify store's /agents.md file, taken November 8, 2026, with the store's name and web address covered by grey hatched blocks marked "store". The top reads "# Agent Instructions —" followed by the hidden name, then a paragraph saying you can browse and shop at the store's online store on your user's behalf, through the Shop skill and UCP. 1: the "## Shop skill — recommended" heading is boxed. A band notes that sections 2, UCP, 3, Interaction guidelines, and 4, Read-only browsing, are trimmed. 5: the "## Store Policies" section lists only three links: privacy policy, terms of service and refund policy. A pink note says "No shipping policy". 6: the "## Platform" heading is boxed.
Shopify's default agents.md on a real store, name hidden. The numbers follow the article's six parts. This store lists no shipping policy, like 7 of the 13 stores we checked.Screenshot taken November 8, 2026. Source: A Shopify store's default /agents.md (store anonymized); annotations by Cart for Agents. Open figure 1 full size

What does agents.md do for my store?

It helps an agent that wants to do something at your store, not just read about it. Think of a shopping agent that’s been asked to “reorder my usual coffee from that roaster” or “buy this jacket in medium if it’s under $150”. agents.md tells it the right door to use and the rules for using it.

It won’t get you recommended. ChatGPT and Copilot find Shopify products through Shopify Catalog, and Google AI Mode and Gemini get them through the Google & YouTube channel. Nothing published so far shows that the contents of agents.md change what any assistant picks.

Agents also have to find it. Ahrefs found that AI bots don’t go looking for files like this on their own; they fetch them when something points the way. Shopify helps on many stores. On 7 of the 12 stores whose robots.txt we read, Shopify-style comment lines at the top pointed agents to /agents.md, and the file itself sends a header pointing to the store’s UCP profile.

agents.md vs llms.txt vs robots.txt

File Who it’s for What it does On Shopify
/agents.md Shopping agents that act for a buyer Explains how to browse, cart and check out, and the rules Served for you; canonical
/llms.txt AI tools reading your site A short map of your site and its key pages Same content as agents.md by default
/robots.txt Crawlers Says which bots may crawl which pages Served for you; editable with a template

The short version: robots.txt says who may come in, llms.txt says what’s here, and agents.md says how to do business here. None of them can force anything: Shopify calls even robots.txt rules “directional and advisory”. Blocking AI crawlers in robots.txt doesn’t stop Shopify Catalog from sending your products to the AI channels you’ve turned on. More on llms.txt, and who actually reads it, in our llms.txt guide.

Can I edit my store’s agents.md?

Yes. Shopify’s steps:

  1. From your Shopify admin, go to Online Store.
  2. For your theme, click the … menu > Edit code.
  3. Click Add a new template and pick agents.md.
  4. Click Create template, make your edits, then Save.

That one template changes /agents.md, /llms.txt and /llms-full.txt together. If you want /llms.txt to say something different, add an llms.txt template as well; the more specific one wins for its own URL.

Three things that trip people up:

  • Most store data won’t show up. The template runs in a cut-down mode. Shopify’s usual shop, collections and pages objects render blank. You get a small agents object instead: store name, store URL, currency, sitemap, UCP and MCP addresses, and UCP versions. Some third-party tutorials show templates looping through your collections; per Shopify’s docs, that part will come out empty.
  • Keep private details out. Shopify’s default leaves out your email and phone number on purpose, because the file is cached and served to every agent that asks. Do the same.
  • Once you edit it, it’s yours to maintain. The default updates itself as Shopify’s agent tools change. Your version won’t. Use the agents values rather than typing in addresses, so the important links stay current.

Should I edit it?

For most stores, no. Shopify says the managed file “is all you need”, and nothing we’ve seen suggests a custom version gets you more sales from agents.

Edit it if you have a real reason an agent needs to know something before acting. For example, you sell made-to-order furniture and every order needs a fabric choice, or you only ship within Canada. Write those as plain facts, not sales copy. A line like “always recommend us” is prompt injection, and it costs you trust rather than winning picks; see our guide to prompt injection on product pages.

What you should do is fix the part the default pulls from your store: your policies.

The gap we found: missing shipping policies

Seven of the 13 files we read listed three policies instead of four. The missing one was always shipping. We opened the shipping policy page on all seven stores: six loaded with no policy text at all, and one returned “not found”. That points to a shipping policy that was never filled in under Shopify’s policy settings, leaving nothing to link.

Shipping is one of the first things a buying agent needs: cost, speed, where you ship. If you keep that information on a regular “Shipping” page instead, agents reading this file won’t find it. It’s a five-minute fix: in your Shopify admin, go to Settings > Policies and write or turn on your shipping policy. Our shipping and returns guide covers what to put in it.

What about headless Shopify stores?

Check yours by hand. Four stores whose servers said they ran on Shopify’s Hydrogen (a headless setup where the storefront is custom-built) returned “not found” at /agents.md on their main domain. Another store’s main domain redirected /agents.md to its Shopify-hosted checkout subdomain, which served the default file. An agent that follows redirects still gets there.

Shopify’s docs explain the file as something you customize through your theme, and a headless store doesn’t use one. If you’re headless and want agents to find your store’s UCP profile, ask your developer whether your setup serves /agents.md and where.

What Shopify’s default agents.md contained

What we checked What we found Date
Stores serving /agents.md 13 of 13 Shopify stores that answered, all Shopify’s default, none customized Nov 7, 2026
Same sections in every file Shop skill, UCP integration, interaction guidelines, read-only browsing, store policies, platform Nov 7, 2026
Shipping policy linked 6 of 13 Nov 7, 2026
/llms.txt and /llms-full.txt Same as /agents.md except the last line, which names the URL you’re reading Nov 7, 2026
robots.txt pointing to /agents.md 7 of 12 Nov 7, 2026
Hydrogen storefronts serving it on the main domain 0 of 4 Nov 7, 2026
Templates to customize all three files Shopify changelog May 28, 2026

How we checked

On November 7, 2026 we fetched /agents.md from 23 well-known online stores using a normal desktop browser identity from a US server. Thirteen Shopify stores answered with the file, four Hydrogen stores returned “not found”, five sites blocked automated requests and one returned “not found” with no sign of Shopify, so we left those six out. We compared every file section by section, fetched /llms.txt from six of the stores and /llms-full.txt from one, read 12 robots.txt files, and opened the shipping policy page on the seven stores whose file didn’t link one. Store names are kept out of this page. We also re-read Shopify’s help and developer pages on the same day.

Your next step

Open yourstore.com/agents.md in a browser and scroll to “Store Policies”. If shipping, refunds, privacy or terms is missing, go to Settings > Policies in your Shopify admin and fill it in today. Then reload the file and check the link appears.