Install your Agentic Kit on Shopify
Shopify does not let you upload arbitrary files at the root path of your
domain. The cleanest workaround is to upload via the Files area, then
create URL Redirects from /agents.json, /llms.txt, and
/agent-instructions.md to the CDN URLs Shopify gives back.
You'll be done in under 10 minutes.
Step 1 — Upload the three files to Shopify Files
-
In Shopify admin, go to Content → Files.
-
Click Upload files.
-
Select all three files from the ZIP:
agents.jsonllms.txtagent-instructions.md
-
Once uploaded, click each row to copy its CDN URL. They look like:
https://cdn.shopify.com/s/files/1/0123/4567/files/agents.json?v=1700000000Copy each of the three URLs into a notepad — you need them in step 2.
Step 2 — Create URL redirects
- Go to Online Store → Navigation.
- Click View URL redirects (top right).
- Click Create URL redirect and add these three redirects, one at a time:
| Redirect from | Redirect to |
|---|---|
/agents.json | the CDN URL you copied for agents.json |
/llms.txt | the CDN URL you copied for llms.txt |
/agent-instructions.md | the CDN URL you copied for agent-instructions.md |
Save each one.
Step 3 — Verify
Open each URL in a new tab:
https://your-store.com/agents.jsonhttps://your-store.com/llms.txthttps://your-store.com/agent-instructions.md
Each should serve the file content (Shopify performs a 301 redirect to the CDN URL behind the scenes — agents follow redirects fine).
Step 4 (recommended) — Add the auto-discovery snippet
Tell AI bots where to find these files directly from your <head>.
- Go to Online Store → Themes.
- Next to your live theme, click Actions → Edit code.
- Open
layout/theme.liquid. - Find the closing
</head>tag and paste this immediately before it:
<link rel="alternate" type="application/json" title="Agent Action Map" href="/agents.json">
<link rel="alternate" type="text/plain" title="LLM Context" href="/llms.txt">
<link rel="alternate" type="text/markdown" title="Agent Runbook" href="/agent-instructions.md">
- Click Save.
Alternative: a Cloudflare proxy (advanced)
If you front your Shopify domain with Cloudflare, you can serve the three files directly from a Cloudflare Worker or R2 bucket — no Shopify redirects needed. This gives true root-served files. We recommend this only if you already use Cloudflare for routing.
Troubleshooting
Redirect creates a loop.
Make sure the destination URL is the full https://cdn.shopify.com/...
URL — not a relative path.
File downloads instead of displaying in the browser.
Shopify CDN serves them with Content-Disposition: attachment. This is
fine for AI agents — they read the bytes either way. To force inline
display you'd need a small proxy (see the Cloudflare alternative above).
?v=... cache buster makes the URL ugly.
Ignore it. Agents follow the redirect and reach the file regardless of
the query string.
Need a hand? Reply to your purchase receipt and we'll help directly.