For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog inStart for free
  • Getting started
    • Overview
    • How it works
    • Quickstart
    • Project structure
    • Customer showcase
    • Changelog
  • Configuration
    • Overview
    • Site-level settings
    • Page-level settings
  • Writing content
    • Markdown basics
    • Rich media in Markdown
    • Fern Editor
    • Reusable snippets
  • AI features
    • Overview
    • Fern Writer
    • AI-generated examples
    • Markdown access
      • Overview
      • Customize LLM output
      • Agent directives
      • Analytics and integration
    • MCP server
    • API catalog discovery
  • Public API
    • GETJWT from Fern API key
    • GETAlgolia search credentials
    • GETCurrent user information
  • Fern Writer API
    • GETGet Fern Writer Install Link
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
Book a demoLog inStart for free
On this page
  • Generated files
  • Page descriptions
  • Learn more
AI featuresllms-txt

llms.txt and llms-full.txt

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Markdown access

Next

Customize LLM output

llms.txt is a standard for exposing website content to AI developer tools. Fern implements this standard, automatically generating and maintaining llms.txt and llms-full.txt Markdown files so AI tools can discover and index your documentation. For single pages, agents can also fetch Markdown directly.

llms.txt and llms-full.txt are root-level files Fern serves to non-human consumers, alongside robots.txt. robots.txt decides which crawlers reach your site and what AI training signals you broadcast; llms.txt and llms-full.txt shape what AI agents receive once they do.

Example of using llms.txt

Generated files

Fern generates two files for LLMs:

  • llms.txt contains a lightweight summary of your documentation site with each page distilled into a one-sentence description and URL. For sites with API endpoints, it also links to your OpenAPI specification as a standalone, machine-readable file so AI tools can parse your full API schema directly. For sites with WebSocket channels, it also links to your AsyncAPI specification.

  • llms-full.txt contains complete documentation content including the full text of all pages. For API documentation, this includes your complete API Reference with resolved OpenAPI specifications and SDK code examples for enabled languages.

Both files are available at any level of your documentation hierarchy (/llms.txt, /llms-full.txt, /docs/llms.txt, /docs/ai-features/llms-full.txt, etc.).

Examples: Eleven Labs llms.txt, Cash App llms-full.txt.

Page descriptions

Both files include page descriptions pulled from frontmatter. Fern uses the description field if present, otherwise falls back to subtitle.

Frontmatter
1---
2title: Fern Docs
3subtitle: Build beautiful documentation websites with Fern.
4---

The output format depends on whether you’re requesting an individual page or a section:

Individual pages
Section

Both llms.txt and llms-full.txt return the same format:

.../page/llms.txt and .../page/llms-full.txt
# Fern Docs
> Build beautiful documentation websites with Fern.

Learn more

Customize LLM output

Exclude pages, filter content with tags, or serve your own custom files.

Agent directives

Configure the default directive prepended to every page served to AI agents.

Analytics and integration

Track LLM traffic and surface llms.txt endpoints to readers.