
# llms.txt: What It Is and How AI Agents Use It

**llms.txt is a Markdown file at the root of a website that gives language models a short summary of the project and links to its key documentation.** An agent fetches it once and knows what the service does, how to connect, and where to read next. 0x.cloud publishes one at `https://0x.cloud/llms.txt`, so Claude, ChatGPT, Cursor or Codex can find the API, the OpenAPI spec and the MCP server without guessing.


**On this page:** [what it is](#what-is-llms-txt) · [format](#format) · [vs robots.txt](#vs-robots-txt) · [0x.cloud llms.txt](#agents) · [create your own](#create)

## What is llms.txt {#what-is-llms-txt}

Jeremy Howard of fast.ai proposed the format in September 2024; the spec lives at [llmstxt.org](https://llmstxt.org/), and version 2 of the proposal came out in August 2026. The problem it solves: HTML pages full of navigation, scripts and ads waste a model's context window, while a compact Markdown file fits in whole. The agent scans llms.txt, picks the link it needs, and reads only that.

The file sits at the site root (`/llms.txt`) or under a path such as `/docs/llms.txt`, where it covers the pages under `/docs/`. When several apply, agents use the most specific one.

What v2 added (per llmstxt.org, checked Nov 20, 2026):

- Markdown versions of pages at the same URL plus `.md` (`page.html.md` or `page.md`).
- Link relations to find them: `rel="alternate" type="text/markdown"` for the Markdown version and `rel="describedby"` for the llms.txt, as a `<link>` tag or an HTTP `Link:` header.
- `## Optional` is still a convention for secondary links, but it no longer has special machine meaning.

## llms.txt format and example {#format}

The llmstxt.org structure, in order:

1. An H1 with the project name. This is the only required part.
2. A blockquote with a short summary.
3. Optional paragraphs or lists with details, no headings.
4. H2 sections with lists of links: `[name](url): notes`.
5. By convention, an `## Optional` section for secondary links an agent can skip.

A minimal llms.txt example:

```markdown
# My Service

> Notification API. Prepaid balance, prices in USD.

- Auth: Authorization: Bearer <key> header.

## Docs

- [Quickstart](https://example.com/docs/start.md): first request in 2 minutes
- [OpenAPI](https://example.com/openapi.json): every endpoint and field

## Optional

- [Changelog](https://example.com/changelog.md)
```

Many sites also publish **llms-full.txt**, the whole documentation in one file. It isn't part of the llmstxt.org spec, but it's a common pattern: the short file for navigation, the long one for deep reading.

## llms.txt vs robots.txt and sitemap.xml {#vs-robots-txt}

| File | Audience | Purpose |
|---|---|---|
| `robots.txt` | crawlers | allows or blocks access |
| `sitemap.xml` | search engines | lists every page to index |
| `llms.txt` | AI assistants and agents | compact context and key links |

llms.txt replaces neither. It's optional, and search engines don't promise to use it for rankings. But OpenAI, Anthropic and Google (Gemini) publish one for their own developer docs, and Chrome Lighthouse checks for it in its agentic browsing audit. The real payoff is practical: an agent working on your task right now finds the right docs fast.

## How agents use the 0x.cloud llms.txt {#agents}

See it yourself:

```bash
curl -s https://0x.cloud/llms.txt
```

It follows the llmstxt.org layout: a `# 0x.cloud` heading, a summary blockquote, then short sections:

- **Billing:** hourly or by period, unused balance returned on delete, restore within 24 hours, the `ttl_hours` auto-delete timer.
- **Plans** plus the public pricing endpoint, no key needed: `GET https://0x.cloud/v1/public/pricing`. It also shows exact hourly prices, for example s1-2 at $0.054725 an hour.
- **For agents:** the REST API at `https://0x.cloud/v1` and the OpenAPI 3.1 spec at `https://0x.cloud/v1/openapi.json` (your first call is in the [API quickstart](https://0x.cloud/kb/api-mcp/api-quickstart)); the MCP server at `https://0x.cloud/v1/mcp` with key or OAuth sign-in (see the [0x.cloud MCP server](https://0x.cloud/mcp) page); the server creation flow; links to `llms-full.txt` (full API reference), `AGENTS.md` (rules for agents) and `agent-skill.md` (a step-by-step playbook).

For automatic MCP discovery there's also `https://0x.cloud/.well-known/mcp.json`: endpoint, transport and sign-in methods.

In practice: you ask an agent to spin up a server, it reads llms.txt and follows the documented path instead of improvising:

1. The agent works in your account with your key or an OAuth sign-in.
2. A request with `"dry_run": true` returns the exact price and a `pricing_fingerprint` valid for 10 minutes. Nothing is created.
3. The agent shows you the price and waits for your OK.
4. It sends the same request without `dry_run`, with that `pricing_fingerprint` and an `Idempotency-Key` header for safe retries. If the price changed in between, the API returns 409 `price_changed` and the agent asks you again.

The full flow is in how an AI agent creates a server.

### Feeding llms.txt to your agent

- **Claude Code, Codex and other terminal agents** can fetch the page themselves; just ask in the prompt.
- **Cursor:** paste the link into your message and the agent fetches it. If you connect the 0x.cloud MCP server, the agent rules also arrive through it as MCP resources.
- **ChatGPT or Claude in the browser:** paste the link; the assistant reads it when web access is on.

A ready-made prompt:


```text
Read https://0x.cloud/llms.txt and, if needed, the llms-full.txt it links to. Summarize how to create a server through the 0x.cloud API. Then get the exact price of an hourly s1-2 server with Ubuntu 24.04 using dry_run and show me the amount. Don't create anything until I confirm.
```


The agent gets a key from your dashboard or an OAuth sign-in in its MCP client. `dry_run` needs the `servers.create` permission; with a read-only key the agent sees public prices only. **A new key defaults to `servers.*`, which means it can delete servers and run commands on them as root.** For this prompt keep `servers.read` and `servers.create`, remove `servers.delete` and `servers.exec` unless you need them, and set a monthly spend cap. Only the owner can change permissions and limits, in the dashboard. What agents can do on 0x.cloud is summed up on [cloud for AI agents](https://0x.cloud/ai).

**Check the price first.** `dry_run` returns the exact price and creates nothing. If you then let the agent create an hourly s1-2 (1 vCPU, 2 GB RAM, $7.99/mo), an hour costs $0.054725 and a day about $1.31, and deleting it stops billing and returns the unused amount to your balance. The key's spend cap stops the agent from creating anything new past the limit, but an hourly server that already exists keeps billing: delete the test server yourself or have the agent set `ttl_hours` (an auto-delete timer). All plans: [VPS pricing with hourly billing](https://0x.cloud/pricing).

## How to create an llms.txt for your site {#create}

Mintlify, GitBook, Wix and WordPress plugins (Yoast SEO, AIOSEO) can generate the file for you; llmstxt.org keeps a list. A generator gives you a draft, but you still have to add the facts an agent would get wrong. By hand:

1. Write the H1 and a one-sentence blockquote.
2. Add the 3 to 5 facts an agent would otherwise get wrong: API base URL, auth method, limits.
3. Link 5 to 15 key pages, ideally their Markdown versions.
4. Move nice-to-have links under `## Optional`.
5. Publish at `/llms.txt` and test it:

```bash
curl -sI https://example.com/llms.txt | head -n 3   # expect 200 and text/plain or text/markdown
curl -s https://example.com/llms.txt | grep -o 'https://[^)]*' | xargs -n1 curl -s -o /dev/null -w '%{http_code} %{url_effective}\n'
```

The second command checks every link in the file. The usual failures: links that return 404, or a file that exists in the CMS but never reached production. The best check, per llmstxt.org: give an agent only your llms.txt and ask it a few questions about your service. A wrong answer shows what the file is missing.

**Keep it current.** A stale llms.txt is worse than none, because the agent trusts it. Update it whenever the docs change.


[Create server: s1-2, $7.99/mo](https://0x.cloud/cabinet/create?plan=s1-2)


## llms.txt FAQ

**What is an llms.txt file?**
A Markdown file at the root of a site (/llms.txt) with a short project summary and links to the most important docs. AI assistants read it to understand a service in a single request.

**How is llms.txt different from robots.txt?**
robots.txt tells crawlers what they may access. llms.txt doesn't block anything: it gives a model compact context and links to read on demand while it helps a user.

**Where is the 0x.cloud llms.txt?**
At https://0x.cloud/llms.txt. A longer version with the full API description, llms-full.txt, is linked from inside the file.

**Does llms.txt help SEO?**
It's a community proposal, not a search engine standard, and it doesn't promise rankings. Agents and assistants read it while they work, and Chrome Lighthouse checks for it in its agentic browsing audit.

**What does it cost to let an agent try 0x.cloud?**
Nothing until it creates a server: dry_run only quotes the price. An hourly s1-2 then runs about $0.054725 an hour (about $1.31 a day), and deleting it returns the unused balance. Servers are in Warsaw.
