Drupal is a registered trademark of Dries Buytaert
drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)!

domain_llms_txt

6 sites Security covered
View on drupal.org

Domain LLMs.txt extends the LLMs.txt module with per-domain support for sites using the Domain Access module. It allows each domain in a multisite setup to serve its own unique /llms.txt file — with separate header content and an independent set of sections per domain.
The llms.txt specification defines a standard way for websites to provide information to Large Language Models (LLMs) such as ChatGPT, Claude, and Gemini. Without this module, all domains in a Domain Access setup share a single /llms.txt file, which is not useful when domains represent different brands, regions, or languages.

Features

  • Per-domain header content — each domain gets its own header for the /llms.txt file, stored as a Domain Config override. Supports text formats, so you can use Token Filter to include dynamic tokens in the header.
  • Per-domain sections — each llms_txt_section entity is assigned to exactly one domain. Only sections belonging to the active domain appear in that domain's /llms.txt output.
  • Draggable section ordering — reorder sections per domain using a familiar drag-and-drop interface.
  • Domain operations integration — configuration links ("LLMs.txt Header" and "LLMs.txt Sections") appear directly in the domain operations dropdown on the Domain records page.
  • Automatic route override — the module transparently replaces the default /llms.txt controller with a domain-aware version. No additional configuration is needed for the route to work.

Post-Installation

  1. Go to Admin > Configuration > Domain records (/admin/config/domain).
  2. In the operations dropdown for any domain, you will see two new links:
    • LLMs.txt Header — opens a form where you can edit the header content for that domain's /llms.txt file. Select a text format and enter your content. If your text format has Token Filter enabled, you can use tokens here.
    • LLMs.txt Sections — shows a draggable list of sections assigned to that domain. You can reorder them, edit existing sections, or add new ones. Each new section is automatically assigned to the domain you're managing.
  3. Visit /llms.txt on each domain to verify the output. The file is served as text/markdown and includes the domain-specific header followed by the domain's sections.
  4. Grant the "Administer llms.txt per domain" permission to the roles that should be able to edit domain-level llms.txt configuration.

Additional Requirements

  • Token Filter — enables token replacement inside text format fields. Useful for including dynamic content (e.g., site name, lists of content) in the llms.txt header.
  • Domain Config UI — part of the Domain package. While not required, having it enabled provides a consistent admin experience for other per-domain configuration.

Similar projects

  • LLMs.txt — the base module that this project extends. Provides a single global /llms.txt file with header and sections, but has no domain awareness.
  • Domain Robots.txt — provides a similar per-domain override pattern for robots.txt. Domain LLMs.txt follows the same architectural approach.

Activity

Total releases
3
First release
Apr 2026
Latest release
1 month ago
Release cadence
7 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
1.0.3 Stable Apr 27, 2026
1.0.1 Stable Apr 14, 2026
1.0.0 Stable Apr 14, 2026