# Publish llms.txt and agents.md with NanoClaw

> Ask your NanoClaw agent in chat if your Shopify store serves llms.txt and agents.md, then have StoreSEO publish them, plus a report-only weekly status task.

Publishing llms.txt and agents.md with NanoClaw means asking your self-hosted agent in a chat which AI discovery files your Shopify store serves, then having StoreSEO generate the missing ones into your live theme after you reply yes.

## How do you set up NanoClaw for this?

### 1. Create a StoreSEO access token

In the StoreSEO app open Settings, AI Toolkit and generate a personal access token. Keep it out of chat messages and out of Git.

```text
Settings → AI Toolkit → create a token
```

### 2. Add StoreSEO to your agent's container

Run this on the machine that hosts NanoClaw, using your agent group's ID from ncl groups list. The header goes in as a JSON object. NanoClaw may ask an admin to approve the change.

```bash
ncl groups config add-mcp-server --id <group-id> --name storeseo \
  --url https://mcp.storeseo.com/mcp \
  --headers '{"Authorization":"Bearer YOUR_TOKEN"}'
```

### 3. Restart the agent's container

The new server takes effect after a restart. Then message your agent with its trigger word, @Andy by default, and ask for your store's SEO score.

```bash
ncl groups restart --id <group-id>
```

### 4. Or ask Claude Code to wire it into your fork (optional)

NanoClaw is customized by changing your own copy, and its README says to tell Claude Code what you want. Run this inside your NanoClaw folder if you would rather not type the command yourself.

```text
Add the remote MCP server https://mcp.storeseo.com/mcp to my agent as storeseo, authenticated with this Authorization: Bearer token, then restart the agent.
```

Then ask: "@Andy use StoreSEO to tell me whether my llms.txt and agents.md are live, when llms.txt last generated and which version is active."

## How does this work in NanoClaw?

Two files tell AI crawlers and shopping agents about your store: llms.txt, a curated map of your content, and agents.md, a description of who you are and how to buy. In a chat you message @Andy and ask if both are live. The agent calls storeseo_start, storeseo_get_llms_txt_status and storeseo_get_agents_md_status, all reads, and replies with what is served, when llms.txt was last generated and whether your settings changed since. The public URLs come back in the message, so you can tap them and read the files yourself.

Generation needs a clear heads up in the thread. storeseo_generate_llms_txt writes a template into your live theme and uploads a copy to Shopify Files in the same run, and it takes about one to two minutes, so the agent should say so, wait for your yes, then poll storeseo_get_llms_txt_status until generation is no longer ongoing. storeseo_generate_agents_md also publishes live and spends AI credit, and storeseo_reset_agents_md hands the file back to Shopify's default with no history. NanoClaw's container keeps running while you close the chat, so the agent can finish polling and message you the result.

A quiet scheduled task suits this job. Create one with ncl tasks create that reads both statuses every Monday and sends you a message only when something is missing, stale or due for a rebuild. StoreSEO can regenerate llms.txt on its own saved schedule, so the task does not need to generate anything. Keep generation, activation, deletion and reset in a chat where you can answer, because a scheduled run has nobody to say yes.

### Example session (illustrative)

**You:** @Andy use StoreSEO to check my llms.txt and agents.md.
→ `storeseo_start` (read-only)
→ `storeseo_get_llms_txt_status` (read-only)
→ `storeseo_get_agents_md_status` (read-only)
**Agent:** No llms.txt is live and agents.md is still Shopify's default. Generating llms.txt writes a template to your live theme and a copy to Shopify Files and takes a minute or two. Should I generate it?
**You:** Yes, generate llms.txt.
→ `storeseo_generate_llms_txt` (needs approval)

## What StoreSEO does: llms.txt and agents.md

llms.txt is a curated map of your store for AI crawlers, and agents.md tells AI shopping agents who you are and how to buy. StoreSEO generates both from your store data and publishes them to your live theme; the agent checks status, generates, switches llms.txt versions and resets agents.md to Shopify's default.

Tools: `storeseo_get_llms_txt_status`, `storeseo_generate_llms_txt`, `storeseo_list_llms_txt_versions`, `storeseo_activate_llms_txt_version`, `storeseo_delete_llms_txt_version`, `storeseo_get_agents_md_status`, `storeseo_generate_agents_md`, `storeseo_reset_agents_md`

Requires: agents.md generation spends AI Content Optimizer credit and needs at least one published product.

1. **Check what is live.** The agent reads the llms.txt status (settings, latest version, whether a rebuild is due, public URL) and the agents.md status (custom file or Shopify's default, public URL).
2. **Warn before publishing.** Generating llms.txt writes a template to your live theme and uploads a copy to Shopify Files in the same run, with no separate publish step. Generating agents.md publishes it live at once and spends credit. The agent says so and waits for your yes.
3. **Generate and wait.** llms.txt generation takes a minute or two; the agent polls the status until it finishes. agents.md returns the published text and its URL straight away.
4. **Manage versions.** StoreSEO keeps the latest ten llms.txt versions. The live file serves the active version, which is not always the newest, and any version can be made active again.
5. **Roll back.** Deleting a version is permanent. Resetting agents.md drops the custom file so Shopify's default serves again, and there is no history to restore it from.

## llms.txt and agents.md reference

| Setting or limit | What applies |
|---|---|
| llms.txt | Generated from your products, collections, pages and posts; served at your store's /llms.txt |
| Where it is written | A template in the live theme plus a copy in Shopify Files, in the same run |
| Schedule | llms.txt can regenerate on a saved schedule; settings passed with a run are saved for scheduled runs |
| Versions kept | The latest ten; the live file serves the active one |
| Generation time | About one to two minutes for llms.txt |
| agents.md | AI-written from your brand profile, top products, collections and contact details; served at /agents.md |
| agents.md publish | Live immediately; replaces Shopify's native default |
| agents.md reset | Shopify's default serves again within seconds; the custom text is gone for good |

## Rules NanoClaw follows

- The agent tells you that llms.txt generation writes to your live theme before it starts.
- agents.md generation publishes live and spends credit, so the agent says both and waits for your yes.
- Deleting an llms.txt version and resetting agents.md cannot be undone; the agent confirms each one.
- Deleting the active llms.txt version promotes the next newest automatically, so the agent says which version will go live.

**In NanoClaw:** A scheduled task prompt written as keep llms.txt up to date can be read as permission to call storeseo_generate_llms_txt on every run, publishing to your live theme while nobody is watching. NanoClaw tasks run as the agent, with whatever approval your fork applies, so word the prompt as read both statuses and report, and say explicitly that nothing is to be generated, activated, deleted or reset.

## What can you ask NanoClaw to do?

- @Andy use StoreSEO to tell me whether my llms.txt and agents.md are live, when llms.txt last generated and which version is active.
- @Andy explain what generating llms.txt will write to my theme and Shopify Files, and wait for my reply before you start.
- @Andy list my last llms.txt versions and tell me which one is serving at my store's /llms.txt.
- Is my llms.txt up to date, and which version is live right now?
- Generate a new llms.txt that includes products and collections but not blog posts. Warn me before it goes live.
- Show me my llms.txt versions and switch back to the one from last week.
- Does my store serve a custom agents.md or Shopify's default?
- Write an agents.md for my store and publish it. Tell me what it costs first.
- Reset agents.md to Shopify's default.

## Frequently asked questions

### Will a NanoClaw scheduled task regenerate llms.txt by itself?

Only if you word the task that way, and it is better not to. StoreSEO has its own saved schedule for llms.txt, so a task can simply read the status and message you when a rebuild is due.

### How do I undo agents.md from a NanoClaw chat?

Ask the agent to call storeseo_reset_agents_md, which makes Shopify's default file serve again within seconds. The custom text is gone for good, so the agent should confirm with you before it runs.

### What is the difference between llms.txt and agents.md?

llms.txt is a curated map of your store for AI crawlers and answer engines, served at /llms.txt. agents.md is the file AI shopping agents read to understand your brand and how to shop with you, served at /agents.md. StoreSEO can generate both.

### Does generating llms.txt change my theme?

Yes. The same run writes an llms.txt template into your live theme and uploads a copy to Shopify Files. There is no separate publish step, which is why the agent should warn you before it starts.

### Can I go back to an older llms.txt?

Yes. StoreSEO keeps the latest ten versions, and any of them can be made the active one, which republishes it to your storefront. Deleting a version is permanent.

### Can I undo a generated agents.md?

You can reset it, which makes Shopify's native default serve again within seconds. The custom text is discarded with no history, so keep a copy if you might want it back.

## llms.txt and agents.md with other agents

- [Publish llms.txt and agents.md with Claude](https://storeseo.com/agent/claude/llms-txt-agents-md)
- [Publish llms.txt and agents.md with ChatGPT](https://storeseo.com/agent/chatgpt/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Claude Code](https://storeseo.com/agent/claude-code/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Claude Cowork](https://storeseo.com/agent/claude-cowork/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Cursor](https://storeseo.com/agent/cursor/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Codex](https://storeseo.com/agent/codex/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Gemini CLI](https://storeseo.com/agent/gemini-cli/llms-txt-agents-md)
- [Publish llms.txt and agents.md with GitHub Copilot](https://storeseo.com/agent/github-copilot/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Windsurf](https://storeseo.com/agent/windsurf/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Grok](https://storeseo.com/agent/grok/llms-txt-agents-md)
- [Publish llms.txt and agents.md with ChatGPT dots](https://storeseo.com/agent/chatgpt-dots/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Grok Bot](https://storeseo.com/agent/grok-bot/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Muse](https://storeseo.com/agent/muse/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Manus](https://storeseo.com/agent/manus/llms-txt-agents-md)
- [Publish llms.txt and agents.md with OpenClaw](https://storeseo.com/agent/openclaw/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Hermes Agent](https://storeseo.com/agent/hermes-agent/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Paperclip](https://storeseo.com/agent/paperclip/llms-txt-agents-md)
- [Publish llms.txt and agents.md with OpenCode](https://storeseo.com/agent/opencode/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Zed](https://storeseo.com/agent/zed/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Kiro](https://storeseo.com/agent/kiro/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Antigravity](https://storeseo.com/agent/antigravity/llms-txt-agents-md)
- [Publish llms.txt and agents.md with Kimi Code](https://storeseo.com/agent/kimi/llms-txt-agents-md)

## More NanoClaw guides

- [NanoClaw and StoreSEO overview](https://storeseo.com/agent/nanoclaw)
- [Audit your store's SEO with NanoClaw](https://storeseo.com/agent/nanoclaw/seo-audit)
- [Optimize meta tags and content with NanoClaw](https://storeseo.com/agent/nanoclaw/optimize-meta)
- [Optimize images and alt text with NanoClaw](https://storeseo.com/agent/nanoclaw/image-seo)
- [Get products ready for AI search with NanoClaw](https://storeseo.com/agent/nanoclaw/ai-search-readiness)
- [Set up structured data with NanoClaw](https://storeseo.com/agent/nanoclaw/structured-data)
- [Manage sitemaps and indexing with NanoClaw](https://storeseo.com/agent/nanoclaw/sitemaps)
- [Track keyword rankings with NanoClaw](https://storeseo.com/agent/nanoclaw/keyword-tracking)
- [Read Search Console and Analytics with NanoClaw](https://storeseo.com/agent/nanoclaw/google-reports)
- [Write SEO blog post drafts with NanoClaw](https://storeseo.com/agent/nanoclaw/blog-posts)

## Related documentation

- [How to generate llms.txt with StoreSEO](https://storeseo.com/docs/how-to-generate-llms-txt-with-storeseo)
- [Optimize your agentic discovery score](https://storeseo.com/docs/how-to-optimize-agentic-discovery-score-storeseo)
- [Set up your store for AI brand visibility](https://storeseo.com/docs/set-up-your-store-for-ai-brand-visibility)

---

Canonical: https://storeseo.com/agent/nanoclaw/llms-txt-agents-md
Last updated: October 2026.

Approval: Reads run straight away; StoreSEO tells the agent to preview and wait for your yes before it writes, spends credit or publishes, and your client's tool-approval setting is the hard stop.

Every agent guide: https://storeseo.com/agent · Connect the MCP server: https://storeseo.com/docs/connect-storeseo-mcp-to-your-ai-assistant · Pricing: https://storeseo.com/pricing · Install StoreSEO: https://apps.shopify.com/storeseo
