# llms.txt Generator: Create llms.txt for Any Website (`bigkerm/llms-txt-generator`) Actor

llms.txt generator: enter a website URL and get a ready-to-upload llms.txt file (plus optional llms-full.txt) built from your real pages, titles and descriptions. Also checks your existing llms.txt and which pages robots.txt blocks. $0.05 per website.

- **URL**: https://apify.com/bigkerm/llms-txt-generator.md
- **Developed by:** [Kerm Labs](https://apify.com/bigkerm) (community)
- **Categories:** AI, SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $35.00 / 1,000 llms.txt created

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## llms.txt Generator: Create llms.txt for Any Website

llms.txt generator for any website. Enter a URL and get a ready-to-upload **llms.txt** file in the llmstxt.org format, built from your real pages, titles and meta descriptions, plus an optional **llms-full.txt** with the text of every page as Markdown. It also checks the llms.txt you already have (is it valid?) and lists the pages robots.txt blocks.

**Quick start:** 1) Put your website in "Website URL". 2) Click Start. 3) Open `llms.txt` in the run's Storage tab (key-value store), check it, and upload it to your site root so it loads at `https://yoursite.com/llms.txt`.

**Cost:** $0.05 per website, any size up to 300 pages, plus a $0.00005 run start fee. Websites that are down, block the crawler, or disallow it in robots.txt are not charged.

| In one run | |
|---|---|
| Ready-to-upload llms.txt (H1, summary, sections, one link per page with its description) | Yes |
| llms-full.txt with each page's text as clean Markdown | Optional, same price |
| Check of your existing llms.txt against the llmstxt.org format | Yes |
| Pages blocked by robots.txt, and AI crawlers your robots.txt blocks | Yes |
| Your own site name, summary, details and sections | Optional |
| Several websites in one run | Yes, $0.05 each |

### What is llms.txt?

llms.txt is a plain Markdown file at the root of a website (`/llms.txt`) that tells AI tools such as ChatGPT, Claude, Perplexity and coding assistants what the site is and which pages matter, with one link per page. The format is defined at llmstxt.org:

```
## Your Site Name

> One-line summary of what the site or product is.

Optional details for AI tools.

### Docs

- [Getting started](https://example.com/docs/start): Install and first steps.
- [API reference](https://example.com/docs/api): Every endpoint.

### Optional

- [Blog archive](https://example.com/blog/archive)
```

llms-full.txt is the companion file: the full text of those pages in one Markdown file, so an AI tool can read your whole site in one request.

### How it works

1. Reads your robots.txt and obeys it (for `User-agent: *` and for our own agent, `LlmsTxtGeneratorBot`).
2. Reads your home page, your sitemap and the pages they link to on the same website, up to "Max pages".
3. Leaves out pages marked noindex, error pages, redirects to other sites, duplicate URLs (canonical tags, `/index.html`) and non-HTML files.
4. Takes each page's title (with the repeated " | Site name" part removed) and meta description, and groups pages into sections by URL folder (`/docs/` becomes "## Docs"). Tag, category, author and pagination pages go into "## Optional". Blog and news posts come after the reference sections.
5. Writes `llms.txt` (and `llms-full.txt` if you asked for it) to the run's key-value store, and one dataset row per website with the URL list and any problems.

### Input

| Field | What it does | Default |
|---|---|---|
| `startUrls` | Website URL, one per line. `example.com` works. | required |
| `maxPages` | Pages to read and list (1 to 300). The price does not change with it. | 50 |
| `generateFullText` | Also create llms-full.txt (up to 5 MB). | off |
| `siteName` | The H1 title. Empty: taken from your home page. | |
| `siteDescription` | The `>` summary line. Empty: your home page's meta description. | |
| `details` | A paragraph after the summary. | |
| `sections` | Your own sections, one per line as `Section name: text in the URL`, like `Docs: /docs/`. Empty: automatic by URL folder. | |
| `optionalUrlPatterns` | URLs containing these texts go to "## Optional". | |
| `excludeUrlPatterns` | URLs containing these texts are not read or listed (`/regex/` also works). | |
| `includeDescriptions` | Add each page's meta description after its link. | on |
| `maxCrawlDepth` | Clicks away from the home page. | 5 |
| `maxSecondsPerSite` | Time limit per website; the file is written from the pages read so far. | 180 |

Example:

```json
{
  "startUrls": ["https://example.com"],
  "maxPages": 100,
  "generateFullText": true,
  "sections": ["Docs: /docs/", "Guides: /guides/", "Pricing: /pricing"],
  "optionalUrlPatterns": ["/blog/"]
}
```

### Output

**Key-value store** (Storage tab of the run):

- `llms.txt`: the file for the first website, ready to upload.
- `llms-full.txt`: only with "Also create llms-full.txt".
- `llms-<host>.txt` and `llms-full-<host>.txt`: one per website when you run several.
- `OUTPUT`: a short run summary.

**Dataset**: one row per website.

| Field | Meaning |
|---|---|
| `status` | `ok`, `robots-blocked`, `unreachable`, `blocked`, `server-error`, `error`, `not-html`, `no-pages` or `timeout`. Only `ok` is charged. |
| `generated` | true when an llms.txt was created. |
| `siteName`, `pagesIncluded`, `sections`, `urls` | What went into the file. |
| `llmsTxtUrl`, `llmsFullTxtUrl` | Direct links to the files. |
| `llmsTxt` | The file text (first 8 KB) for a quick look. |
| `existingLlmsTxt` | What your site serves at /llms.txt now: `present`, `valid`, `problems`, `warnings`, link and section counts. |
| `existingLlmsFullTxt` | Whether /llms-full.txt exists. |
| `pagesBlockedByRobots`, `blockedByRobotsSample` | Pages robots.txt kept us from reading (so they are not in the file). |
| `aiBotsBlocked` | AI crawlers your robots.txt blocks (GPTBot, ClaudeBot, PerplexityBot and others). |
| `pagesSkipped` | Pages left out and why (noindex, 404, redirect, duplicate). |
| `problems` | Plain-English notes: invalid existing llms.txt, JavaScript-built pages, time limit reached, and so on. |

### FAQ

**How do I create an llms.txt file?** Enter your website URL and click Start. When the run finishes, open `llms.txt` in the Storage tab, read it once (rename sections or remove pages you do not want AI tools to see), then upload it to the root of your website.

**What is llms.txt?** A Markdown file at `/llms.txt` that gives AI tools a short summary of your site and a list of its important pages, so they can answer questions about you correctly. See the example above.

**Where do I put the llms.txt file?** In the root folder of your website, next to robots.txt, so it opens at `https://yoursite.com/llms.txt`. On WordPress, upload it with your host's file manager or an SEO plugin that supports llms.txt. On Shopify, Webflow or Wix, use a redirect or the platform's file upload. Serve it as plain text.

**What is the difference between llms.txt and llms-full.txt?** llms.txt is a short index with one link per page. llms-full.txt contains the full text of those pages in one file. Most sites start with llms.txt; documentation sites often publish both.

**How do I check if my llms.txt is valid?** Run the Actor on your site. The `existingLlmsTxt` field says whether the file you already serve follows the llmstxt.org format (one H1 title first, links as `- [name](url): notes` under `##` sections) and lists any problems.

**Is llms.txt the same as robots.txt?** No. robots.txt tells crawlers what they may fetch. llms.txt tells AI tools what your site is about and where the useful pages are. This Actor reports both: which pages robots.txt blocks, and which AI crawlers it blocks.

**Does it run JavaScript?** No. It reads the HTML your server sends, like most AI crawlers do. Pages built only by JavaScript may have generic titles; the `problems` field says how many.

**Will it overload my site?** No. At most 2 requests at a time per website with a short pause between them, robots.txt Crawl-delay is respected (up to 2 seconds), and it stops at "Max pages".

**How much does it cost?** $0.05 per website that gets an llms.txt, whatever the page count. Unreachable or blocked websites are free. You can set a maximum charge per run in Apify.

### Use it from code or an AI agent

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("bigkerm/llms-txt-generator").call(run_input={"startUrls": ["https://example.com"]})
print(client.key_value_store(run["defaultKeyValueStoreId"]).get_record("llms.txt")["value"])
```

MCP clients (Claude Desktop, Cursor, VS Code) can call it through `https://mcp.apify.com?tools=bigkerm/llms-txt-generator`. A good prompt: "Create an llms.txt for example.com with bigkerm/llms-txt-generator and show it to me."

### Limits

- Up to 300 pages and 50 websites per run. llms-full.txt stops at 5 MB (about 100 KB per page).
- Same website only: the start host and its www or non-www twin. Subdomains are not included.
- No JavaScript rendering, no login, no proxy. Sites that block data-center traffic return `blocked` and are not charged.

### More from Kerm Labs

[SEO Audit & Broken Link Checker with llms.txt Generator](https://apify.com/bigkerm/website-health-ai-readiness-audit): a full website audit with a 0-100 score, broken links, AI crawler access for 15 bots, SSL, DNS and domain expiry. Use it when you want to know what else to fix beyond llms.txt.

[PDF Text Extractor & PDF to Markdown](https://apify.com/bigkerm/document-to-markdown-tables-ocr): PDF, Word, PowerPoint and Excel to clean Markdown, tables as CSV, and RAG chunks with OCR for scans.

# Actor input Schema

## `startUrls` (type: `array`):

The website to create an llms.txt for, like https://example.com or example.com. Add more lines to do several websites in one run (each one is a separate llms.txt and a separate charge).

## `maxPages` (type: `integer`):

How many pages to read and list, starting from the home page and the sitemap. The price is the same for any number of pages.

## `generateFullText` (type: `boolean`):

Also write llms-full.txt: the readable text of every listed page as Markdown, in one file (up to 5 MB). Same price.

## `siteName` (type: `string`):

The name at the top of llms.txt. Leave empty to take it from your home page.

## `siteDescription` (type: `string`):

The one-line summary under the title (the > line). Leave empty to use your home page's meta description.

## `details` (type: `string`):

Optional paragraph after the summary: what AI tools should know about your site, products or docs.

## `sections` (type: `array`):

Group pages your own way, one rule per line as 'Section name: text in the URL', like 'Docs: /docs/' or 'Products: /shop/'. A page goes to the first rule that matches; the rest go under 'Pages'. Leave empty to group pages by URL folder automatically.

## `optionalUrlPatterns` (type: `array`):

Pages whose URL contains one of these texts go into the '## Optional' section, which AI tools may skip when short on space, like /blog/ or /changelog. Tag, category, author and pagination pages go there automatically.

## `excludeUrlPatterns` (type: `array`):

Pages whose URL contains one of these texts are not read or listed, like /admin/ or ?utm\_. For a regular expression put it between slashes, like /print/|/amp/. The home page is always read.

## `includeDescriptions` (type: `boolean`):

Add each page's meta description after its link (- [Title](url): description). Descriptions repeated across many pages are left out.

## `maxCrawlDepth` (type: `integer`):

How many clicks away from the home page to go. Pages in the sitemap count as one click.

## `maxSecondsPerSite` (type: `integer`):

Stop reading pages after this many seconds and write the llms.txt from what was read.

## Actor input object example

```json
{
  "startUrls": [
    "https://crawlee.dev"
  ],
  "maxPages": 30,
  "generateFullText": false,
  "includeDescriptions": true,
  "maxCrawlDepth": 5,
  "maxSecondsPerSite": 180
}
```

# Actor output Schema

## `llmsTxt` (type: `string`):

No description

## `llmsFullTxt` (type: `string`):

No description

## `overview` (type: `string`):

No description

## `files` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://crawlee.dev"
    ],
    "maxPages": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigkerm/llms-txt-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": ["https://crawlee.dev"],
    "maxPages": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("bigkerm/llms-txt-generator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://crawlee.dev"
  ],
  "maxPages": 30
}' |
apify call bigkerm/llms-txt-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigkerm/llms-txt-generator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ujmGs3K6cLQjXQch8/builds/IphZbL4pzl9mqSrwQ/openapi.json
