AgentFlare

Guides · For publishers · Beginner

robots.txt, llms.txt & Sitemaps for AI Crawlers

AgentFlare keeps robots.txt, llms.txt, sitemap.xml and pricing.json free and open, so an agent can learn the rules and prices before paying. Only .data.json and .full.md files are metered per crawl.

LevelBeginner
Reading time6 min
Steps66 with code
Sources5primary docs
✓ Open accessFree

You're reading the full report — free for humans. The machine-readable dataset for this section is open to all agents too — no payment required.

⚡ Agents: fetch .data.json → agents: allowed (no charge) · verify at https://esa.aisa.one/api/v1/access/verify

This guide is for publishers who want AI crawlers to find their content and for agent developers who need to read a site before spending money. You will fetch the free discovery files in the order an agent does, interpret what robots.txt, llms.txt and pricing.json say, tell free teasers from paid deep payloads, and send the crawler header correctly. You will also see how AgentFlare publishes the same files, so you can mirror the pattern on your own site and tie it to directory pricing.

How the flow works

For publishersDrawn from the AISA agent and publisher documentation
Publisher-side access decision flow: 1. Crawler to Your edge: GET /dir/file; 2. Your edge to AISA verify: POST verify: URL, token, UA; 3. AISA verify to Your edge: decision: allow / pay / block; 4. Your edge to Your origin: fetch when granted; 5. Your edge to Crawler: 200 content; 6. Your edge to Crawler: or 402 / 403 JSONCrawlerany agentYour edgeCDN / gatewayAISA verify/api/v1/access/verifyYour origincontent1. GET /dir/file2. POST verify: URL, token, UA3. decision: allow / pay / block4. fetch when granted5. 200 content6. or 402 / 403 JSON

Before you start

  • curl installed on your machine
  • A publisher site or a target site to inspect
  • An AISA crawler token only for the paid fetch step

Step by step

  1. Read robots.txt first

    robots.txt is the first free file an agent reads. AgentFlare opens the whole site to AI crawlers: the wildcard group and named groups for GPTBot, ClaudeBot, PerplexityBot, Google-Extended, CCBot, Bytespider, Googlebot and Bingbot each carry Allow: /. The last line, Sitemap: https://agentflare.org/sitemap.xml, points to the sitemap. Allowing crawling here does not make deep data free; pricing is enforced separately.

    bash
    curl -s https://agentflare.org/robots.txt
  2. Follow llms.txt to the map

    llms.txt is a map written for machines. It says every article exists at one path in three forms: HTML, a free Markdown teaser (.md), and a metered .data.json / .full.md (L2). It names the verify endpoint https://esa.aisa.one/api/v1/access/verify, tells agents to set crawlerAutoPrice=true with an X-Crawler-Token header (this replaces the earlier X-AISA-Crawler-Token), and links pricing.json. Each section has its own llms.txt.

    bash
    curl -s https://agentflare.org/llms.txt
  3. Check pricing.json before fetching

    pricing.json is the directory price map. Its tiers field splits L1_free (index pages, .html articles, .md teasers, llms.txt, sitemap.xml, robots.txt) from L2_paid (*.data.json and *.full.md). directory_pricing_usd lists a price per directory, and rules gives a urlPattern, mode, price and priority for each. Anything not matched stays free because default_mode is allow. Fetching this file costs nothing.

    bash
    curl -s https://agentflare.org/pricing.json
  4. Fetch the free teaser, then the paid file

    Request the .md teaser with no token; it is free. For the deep payload, add the X-Crawler-Token header and an honest User-Agent. One request is at most one charge, and fetching the same URL twice charges twice. Never send the crawler token in Authorization: Bearer, which is reserved for the gateway layer. Keep the token out of logs and show only a prefix.

    bash
    # free teaser
    curl -s https://PUBLISHER-SITE/research/report.md
    
    # paid deep payload
    curl https://PUBLISHER-SITE/research/report.data.json \
      -H 'X-Crawler-Token: YOUR_CRAWLER_TOKEN' \
      -A 'MyBot/1.0 (+https://example.com/bot)'
  5. Handle 402 and 403 responses

    A 402 means payment-side action is needed. Read the error field: invalid_token means register or fix the header, and insufficient_balance means top up and retry. Denials never charge. A 403 access_blocked is a publisher policy choice, and payment does not unlock it. Do not retry that URL; instead pivot to the purchasable pay-mode directories listed in the site's pricing.json. On AgentFlare, the members directory is the blocked one.

    bash
    curl -i https://PUBLISHER-SITE/members/page.data.json \
      -H 'X-Crawler-Token: YOUR_CRAWLER_TOKEN'
    # a 403 access_blocked means: do not retry, read pricing.json instead
    curl -s https://PUBLISHER-SITE/pricing.json
  6. Publish the same files on your site

    Mirror the AgentFlare pattern. Keep robots.txt, llms.txt, sitemap.xml and pricing.json open as the free tier, and add a Sitemap line to robots.txt. Put paid rules only on .data.json and .full.md paths. AgentFlare's notes say to import the rules array into cdn-agent Content Controls (ai_publisher_rules), where patternType, mode, price, billingType and priority map 1:1 to the publisher rule schema.

    text
    User-agent: *
    Allow: /
    
    User-agent: GPTBot
    Allow: /
    
    Sitemap: https://PUBLISHER-SITE/sitemap.xml

AgentFlare tiers and directory prices

Path or directoryModePrice USD
robots.txt, llms.txt, sitemap.xml, .html, .md teasersL1_free0
/news/ .data.json and .full.mdpay0.005
/crypto/, /markets/, /social/, /predictions/pay0.01
/research/ and /scholar/pay0.02
/guides/ .data.json and .full.mdallow0
/members/ .data.json and .full.mdblock0

Common pitfalls

  • Allow: / in robots.txt only permits crawling. Deep .data.json and .full.md files are still priced by the rules in pricing.json.
  • Do not send the crawler token in Authorization: Bearer. That header is reserved for the gateway layer; the token belongs in X-Crawler-Token.
  • Do not top up or retry after a 403 access_blocked. It is a publisher policy, and payment does not unlock the resource.
  • Fetching a priced URL twice charges twice. Read pricing.json first and cache what you pay for.

Key takeaways

  • Discovery files are free: robots.txt, llms.txt, sitemap.xml and pricing.json let an agent learn rules and prices before paying.
  • Teasers (.html, .md) are open for SEO and GEO; only .data.json and .full.md are metered per crawl.
  • Send X-Crawler-Token with an honest User-Agent; on 403 access_blocked, pivot to the pay-mode directories in pricing.json.

FAQ

What does an AI agent read first on a publisher site?

The free discovery files: robots.txt for crawl permissions and the sitemap link, llms.txt for the site map and access instructions, and pricing.json for the directory price map. All three cost nothing to fetch.

Does allowing GPTBot in robots.txt make my deep data free?

No. AgentFlare allows many AI crawlers in robots.txt, yet .data.json and .full.md files in priced directories are metered per crawl through the rules in pricing.json.

Which header identifies my crawler?

X-Crawler-Token. Send it with your genuine User-Agent on requests to publisher sites. Without it, priced resources answer 402. Do not use Authorization: Bearer for the crawler token.

How do I see what a directory costs?

Fetch pricing.json and read directory_pricing_usd or the rules array. On AgentFlare, news is 0.005, research and scholar are 0.02, and crypto, markets, social and predictions are 0.01.

How this page is made. Written from 5 primary sources — the AISA agent and publisher documentation and AgentFlare's own files (pricing.json, robots.txt, llms.txt, live responses, .data.json field lists). Each step links the sources it relies on; steps naming a header, endpoint, error code or figure that the sources do not contain are removed. Refreshed weekly.

Sources & citations

  1. Header name: X-Crawler-Token esa.aisa.one
  2. AgentFlare robots.txt agentflare.org
  3. AgentFlare llms.txt (header and structure) agentflare.org
  4. AgentFlare pricing.json (directory price map) agentflare.org
  5. AISA Agent Integration Guide — API reference esa.aisa.one