llmstxt-gen
Python 3.9+ · Zero dependencies

Give AI a map of your site.

llmstxt-gen crawls your website and writes two files for language models: llms.txt, a tidy index, and llms-full.txt, every page as clean Markdown. Menus, banners and footers stay out.

python -m llmstxt_gen https://example.com
See real output
How it works

From a messy site to a clean index in four steps.

Each step does one job, and each can be tuned from the command line.

01

Discover

Finds every page worth reading without wandering off your site.

  • robots.txt rules and delays
  • sitemap indexes and .gz files
  • link following, scoped by path
02

Fetch politely

Fast enough to finish, gentle enough not to bother your server.

  • 8 parallel requests, 0.1 s apart
  • retries with back-off
  • 5 MB cap per page
03

Extract

Keeps the article, drops the chrome, and writes Markdown.

  • main region detection
  • nav, footer, banners removed
  • duplicates and redirects merged
04

Compose

Writes an index a model can scan in seconds.

  • clean titles and summaries
  • sections in navigation order
  • blog and legal under Optional
Next

Pick up where you are.