> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morphllm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Context (llms.txt)

> Give your coding agent full Morph context in ~5k tokens

## What this is

When your coding agent needs to integrate Morph, it needs to know the API format, tool definitions, and best practices. The [llms.txt](https://docs.morphllm.com/llms.txt) file contains all of this in a single document (\~5k tokens) that fits in any model's context window.

For the full unabridged docs (every page), see [llms-full.txt](https://docs.morphllm.com/llms-full.txt).

## How to use it

### Option 1: Add to your project config

Paste the contents of [llms.txt](https://docs.morphllm.com/llms.txt) into your project's agent configuration:

* **Claude Code**: Add to your project's `CLAUDE.md`
* **Cursor**: Add to `.cursorrules` or Settings → Rules for AI
* **Codex**: Add to `AGENTS.md`
* **Custom agent**: Include in your system prompt

### Option 2: Fetch at runtime

```typescript theme={null}
const morphDocs = await fetch('https://docs.morphllm.com/llms.txt').then(r => r.text());
// Include in your agent's system prompt or tool context
```

## What's included

The llms.txt file covers every Morph product with working code examples:

* **Fast Apply**: The `<instruction>/<code>/<update>` format, models, TypeScript/Python/cURL examples
* **Compact**: Compression API, query parameter, keepContext tags, native + OpenAI-compatible formats
* **WarpGrep**: Multi-turn search protocol, built-in tools, repo structure format
* **Model Router**: Prompt complexity classification, provider model mapping
* **Fast Models**: Open-weight model catalog with pricing
* **Agent Tools**: Copy-paste `edit_file` and `codebase_search` JSON schemas
* **MCP Server**: Zero-config setup for Claude Code, Cursor, Windsurf
* **Authentication**: API key usage

<Note>
  The curated file is \~5k tokens. The auto-generated [llms-full.txt](https://docs.morphllm.com/llms-full.txt) contains every docs page unabridged.
</Note>

## Next steps

<CardGroup cols={2}>
  <Card title="MCP Integration" icon="plug" href="/mcpquickstart">
    Zero-config integration for Claude Code, Cursor, Codex
  </Card>

  <Card title="SDK Quickstart" icon="bolt" href="/quickstart">
    Code examples for TypeScript and Python
  </Card>
</CardGroup>
