| name | install-llmify |
| description | Install and configure the LLMify Craft CMS plugin step by step |
Install and Configure LLMify for Craft CMS
This guide tells an AI agent how to install and set up the LLMify plugin in a Craft CMS 5 project.
Step 1: Install the Plugin
Run the following commands in the Craft project root:
composer require samuelreichor/craft-llmify
php craft plugin/install llmify
If the project uses DDEV:
ddev composer require samuelreichor/craft-llmify
ddev craft plugin/install llmify
Step 2: Enable Sections
- In the Craft control panel, go to LLMify → Content.
- Enable each section that should produce markdown output using the Enable for Section toggle.
- Set an LLM Title and LLM Description for each enabled section — these populate the
llms.txt file.
Step 3: Add Template Tags
Wrap the content you want converted to markdown with the {% llmify %} tag in your Twig templates:
{% llmify %}
<h1>{{ entry.title }}</h1>
<div>{{ entry.bodyContent }}</div>
{% endllmify %}
Multiple {% llmify %} blocks per template are supported — their content is merged into a single markdown file.
To exclude specific parts within an llmify block:
{% llmify %}
<h1>{{ entry.title }}</h1>
{% excludellmify %}
<nav>...</nav>
{% endexcludellmify %}
<div>{{ entry.bodyContent }}</div>
{% endllmify %}
You can also exclude content by adding the exclude-llmify CSS class to any HTML element. This class name is configurable via the config file.
Step 4: Generate Markdown
Generate markdown for all enabled entries using one of these methods:
To clear all generated markdown and start fresh:
php craft llmify/markdown/clear
Step 5: Check the Dashboard
Go to LLMify → Dashboard to see an overview of your setup:
- Site setup score — shows how complete your site-level configuration is (LLM title, description, note, front matter fields).
- Section statistics — content-level stats per section showing how many entries have markdown generated.
Step 6: Verify the Output
After generating markdown, verify these URLs are accessible:
/llms.txt — Summary file listing all enabled entries
/llms-full.txt — Full content of all entries
/.well-known/llms.txt — RFC 8615 compliant discovery endpoint
/raw/{entry-uri}.md — Individual markdown page (if markdownUrlPrefix is set)
Test auto-serve markdown with:
curl -H "Accept: text/markdown" https://your-site.com/your-entry-url
Full Documentation
For detailed configuration options and advanced usage, see the LLMify documentation.