Install your Agentic Kit on Squarespace
Squarespace, like Wix, doesn't allow direct uploads of arbitrary files to
the root of your domain. To serve /agents.json, /llms.txt, and
/agent-instructions.md you have two options.
Option A (recommended) — Cloudflare in front of Squarespace
Best long-term solution. Serves the files at true root paths, no Squarespace contortions.
Step 1 — Move DNS to Cloudflare
- Sign up at cloudflare.com (free plan is fine).
- Add your domain. Cloudflare imports your existing DNS records.
- Update your domain registrar's nameservers to Cloudflare's two nameservers.
- Wait for the DNS update to propagate.
Step 2 — Create a Cloudflare Worker
- Workers & Pages → Create → Hello World.
- Name it
agentic-kit-router. - Replace the worker code with this — paste your three files' literal contents in the indicated spots:
const AGENTS_JSON = `PASTE THE FULL CONTENTS OF agents.json HERE`;
const LLMS_TXT = `PASTE THE FULL CONTENTS OF llms.txt HERE`;
const AGENT_INSTRUCTIONS = `PASTE THE FULL CONTENTS OF agent-instructions.md HERE`;
export default {
async fetch(req) {
const path = new URL(req.url).pathname;
if (path === "/agents.json")
return new Response(AGENTS_JSON, { headers: { "content-type": "application/json" } });
if (path === "/llms.txt")
return new Response(LLMS_TXT, { headers: { "content-type": "text/plain" } });
if (path === "/agent-instructions.md")
return new Response(AGENT_INSTRUCTIONS, { headers: { "content-type": "text/markdown" } });
return fetch(req);
},
};
- Click Deploy.
- Add Triggers → Routes for:
your-site.com/agents.jsonyour-site.com/llms.txtyour-site.com/agent-instructions.md
Step 3 — Verify
Open each URL in a browser. You should see the file content.
Option B — Squarespace Code Injection (auto-discovery only)
If you can't move DNS, you can at least make the files discoverable from
your <head> by hosting them somewhere public (GitHub Gist, Netlify, S3)
and linking to those URLs.
Step 1 — Host the files publicly
Pick one:
- GitHub Gist — paste each file as a public gist, copy the Raw URL.
- Netlify Drop — drag a folder of the three files to app.netlify.com/drop, copy the URLs.
- AWS S3 / Cloudflare R2 — upload, mark public, copy URLs.
Step 2 — Add discovery links
- In Squarespace, go to Settings → Advanced → Code Injection.
- In the Header field, paste:
<link rel="alternate" type="application/json" title="Agent Action Map" href="HOSTED_URL_FOR_agents.json">
<link rel="alternate" type="text/plain" title="LLM Context" href="HOSTED_URL_FOR_llms.txt">
<link rel="alternate" type="text/markdown" title="Agent Runbook" href="HOSTED_URL_FOR_agent-instructions.md">
- Replace each
HOSTED_URL_FOR_*with the actual URL. - Save.
This gets the files indexed by AI bots that crawl your <head>. It's
not as clean as Option A, but it works.
Verify
Open your homepage, View Page Source, and search for rel="alternate"
to confirm the tags rendered.
Troubleshooting
Code Injection greyed out. Code Injection is available on Business plan and above. If you're on the Personal plan, you'll need to upgrade — or use Option A (Cloudflare) which doesn't require Squarespace plan changes.
Cloudflare Worker doesn't fire. Make sure the Routes are scoped to your production hostname, not just the Cloudflare preview hostname. Routes also require an active orange-cloud proxy on the relevant DNS records.
Need a hand? Reply to your purchase receipt and we'll help directly.