Crux
GuidesAdvanced

LLMs & AI Assistants

Machine-readable docs for Claude, ChatGPT, Cursor, and other AI tools.

Crux docs expose an llms.txt endpoint — a machine-readable index of every page in this documentation. AI assistants can consume it to understand Crux's full API surface without you having to paste docs manually.

How to use it

Point your AI tool at the endpoint:

https://crux.dev/llms.txt

Most tools accept this as a URL or context source:

ToolHow to use
Claude (claude.ai)Paste the URL in chat or attach as a file
CursorAdd as a doc source in settings, or @Docs → add URL
ChatGPTPaste the URL in chat for browsing-enabled models
Claude CodeUse WebFetch or paste the URL
Custom agentsFetch /llms.txt and include in your system prompt

What it contains

The llms.txt response is a structured index of all documentation pages with their titles, descriptions, and URLs. It follows the llms.txt specification — a lightweight standard for making documentation AI-accessible.

Using Crux docs in your own agents

If you're building an agent with Crux and want it to have knowledge of Crux itself (for meta-tooling, code generation, etc.), fetch the index at build time:

const response = await fetch('https://crux.dev/llms.txt')
const docsIndex = await response.text()

const metaPrompt = prompt({
  id: 'crux-aware-agent',
  system: `You are an assistant that helps build Crux prompts.

## Crux Documentation Index
${docsIndex}`,
  // ...
})

The endpoint is statically generated at build time and cached indefinitely. It updates when the docs are redeployed.

Next steps

On this page