# Using TraceFast with AI

[Create an API key for your agent →](https://tracefast.xyz/settings/api/keys)

There are two ways to bring TraceFast to an AI. An **assistant** that helps you
write code reads the documentation. An **agent** that does the work calls the
data itself — as MCP tools, or over REST.

| Resource | For | What it is |
|---|---|---|
| [`llms.txt`](https://docs.tracefast.xyz/llms.txt) | AI assistants — Claude, ChatGPT, Cursor | the index of these docs, each page linked as Markdown. Paste the link into your assistant |
| [`llms-full.txt`](https://docs.tracefast.xyz/llms-full.txt) | assistants with a large context | every page of these docs in one file |
| [MCP server](/api/mcp-server) | AI agents | `https://tracefast.xyz/mcp` — the API's methods as tools, with an API key or by signing in with your TraceFast account |
| [x402](/api/x402) | AI agents without an account | most REST methods at `https://mpp.tracefast.xyz/api/v1`, paid per call in USDC on Base, no key. The methods and their prices in plain text: [`mpp.tracefast.xyz/llms.txt`](https://mpp.tracefast.xyz/llms.txt) |
| [OpenAPI catalogue](https://tracefast.xyz/api/v1/openapi.json) | code generators and agents | every REST method, its parameters and its response schema — see [discovery](/api#discovery) |
| [`tracefast.xyz/llms.txt`](https://tracefast.xyz/llms.txt) | assistants that link to the app | the pages of the TraceFast app and what each one shows |

## Markdown of every page

Every page of these docs has a Markdown copy at the same address with `.md`
added — for example [`/api/x402.md`](https://docs.tracefast.xyz/api/x402.md).
An assistant reads it without the site around it.

Every API response names the page of the method that answered in `meta.docs`.
An agent that meets a method it does not know can read that page — or its
`.md` copy — before it calls the method again.

## Which one to choose

* **To write code against the API** — give your assistant `llms.txt`, then
  [API keys](/api/authentication) and [Conventions](/api/conventions).
* **For an agent in Claude Code, Cursor or claude.ai** — connect the
  [MCP server](/api/mcp-server). The agent sees the tools and their
  descriptions, and calls them under your plan.
* **For an agent with no TraceFast account** — [x402](/api/x402): the agent
  pays for each call and needs no key.

## Related pages

* [TraceFast API](/api) — the three ways to call and what each needs
* [Connect an AI agent over MCP](/api/mcp-server) — setup for each client, results and refusals
* [Paying with x402](/api/x402) — the key-less way, for AI agents
* [All API methods](/api/methods) — every method on one page
